作者 yangfu

用户中心修改

... ... @@ -31,7 +31,7 @@ type RequestHeader struct {
/*Login */
type LoginRequest struct {
Uid string `json:"cuid" valid:"Required;"`
Uid int64 `json:"cuid" valid:"Required;"`
Token string `json:"credentials" valid:"Required;"`
ClientId string `json:"clientId"`
}
... ...
... ... @@ -9,7 +9,6 @@ import (
"net/http"
"opp/internal/utils"
"opp/services/agg"
"strconv"
"time"
"gitlab.fjmaimaimai.com/mmm-go/gocomm/identity/uid"
... ... @@ -36,7 +35,7 @@ func Login(header *protocol.RequestHeader, request *protocol.LoginRequest) (rsp
var (
user *models.User
userAuth *models.UserAuth
id, _ = strconv.ParseInt(request.Uid, 10, 64)
id = request.Uid
getUserRequest *protocol.UCenterServerLoginRequest = &protocol.UCenterServerLoginRequest{
Uid: id,
Token: request.Token,
... ...