作者 唐旭辉

输出字段调整

... ... @@ -57,4 +57,5 @@ type UserInfoBase struct {
UserCompanyId int64 `json:"user_company_id"`
Name string `json:"name"`
Phone string `json:"phone"`
Status int8 `json:"status"`
}
... ...
... ... @@ -632,8 +632,9 @@ func GetUserData(usercompanyid int64) (protocol.UserInfoBase, error) {
}
uinfo = protocol.UserInfoBase{
UserCompanyId: ucompany.Id,
Name: ucompany.NickName,
Name: userdata.NickName,
Phone: userdata.Phone,
Status: ucompany.Enable,
}
return uinfo, nil
}
... ...
... ... @@ -131,3 +131,23 @@ type ResponseAddUser struct {
// AdminName string `json:"admin_name"` //主管名称
// } `json:"data"`
// }
//发送验证码短信
type RequestSmsCodeSend struct {
Phone string `json:"phone"`
}
func (r *RequestSmsCodeSend) Format() []byte {
var bt []byte
bt, _ = json.Marshal(r)
return bt
}
//GetPath 实现IUCenterParam接口
func (r *RequestSmsCodeSend) GetPath() (string, string) {
return "/sendSms", "POST"
}
//短信验正码 登录
type RequestLoginSms struct {
}
... ...
... ... @@ -19,7 +19,7 @@ const (
type IUCenterParam interface {
Format() []byte
GetPath() (string, string) //返回请求路径path,请求方式mathod
Valid() error
// Valid() error
}
type UCenterClient struct {
... ...