正在显示
4 个修改的文件
包含
24 行增加
和
2 行删除
@@ -57,4 +57,5 @@ type UserInfoBase struct { | @@ -57,4 +57,5 @@ type UserInfoBase struct { | ||
57 | UserCompanyId int64 `json:"user_company_id"` | 57 | UserCompanyId int64 `json:"user_company_id"` |
58 | Name string `json:"name"` | 58 | Name string `json:"name"` |
59 | Phone string `json:"phone"` | 59 | Phone string `json:"phone"` |
60 | + Status int8 `json:"status"` | ||
60 | } | 61 | } |
@@ -632,8 +632,9 @@ func GetUserData(usercompanyid int64) (protocol.UserInfoBase, error) { | @@ -632,8 +632,9 @@ func GetUserData(usercompanyid int64) (protocol.UserInfoBase, error) { | ||
632 | } | 632 | } |
633 | uinfo = protocol.UserInfoBase{ | 633 | uinfo = protocol.UserInfoBase{ |
634 | UserCompanyId: ucompany.Id, | 634 | UserCompanyId: ucompany.Id, |
635 | - Name: ucompany.NickName, | 635 | + Name: userdata.NickName, |
636 | Phone: userdata.Phone, | 636 | Phone: userdata.Phone, |
637 | + Status: ucompany.Enable, | ||
637 | } | 638 | } |
638 | return uinfo, nil | 639 | return uinfo, nil |
639 | } | 640 | } |
@@ -131,3 +131,23 @@ type ResponseAddUser struct { | @@ -131,3 +131,23 @@ type ResponseAddUser struct { | ||
131 | // AdminName string `json:"admin_name"` //主管名称 | 131 | // AdminName string `json:"admin_name"` //主管名称 |
132 | // } `json:"data"` | 132 | // } `json:"data"` |
133 | // } | 133 | // } |
134 | + | ||
135 | +//发送验证码短信 | ||
136 | +type RequestSmsCodeSend struct { | ||
137 | + Phone string `json:"phone"` | ||
138 | +} | ||
139 | + | ||
140 | +func (r *RequestSmsCodeSend) Format() []byte { | ||
141 | + var bt []byte | ||
142 | + bt, _ = json.Marshal(r) | ||
143 | + return bt | ||
144 | +} | ||
145 | + | ||
146 | +//GetPath 实现IUCenterParam接口 | ||
147 | +func (r *RequestSmsCodeSend) GetPath() (string, string) { | ||
148 | + return "/sendSms", "POST" | ||
149 | +} | ||
150 | + | ||
151 | +//短信验正码 登录 | ||
152 | +type RequestLoginSms struct { | ||
153 | +} |
@@ -19,7 +19,7 @@ const ( | @@ -19,7 +19,7 @@ const ( | ||
19 | type IUCenterParam interface { | 19 | type IUCenterParam interface { |
20 | Format() []byte | 20 | Format() []byte |
21 | GetPath() (string, string) //返回请求路径path,请求方式mathod | 21 | GetPath() (string, string) //返回请求路径path,请求方式mathod |
22 | - Valid() error | 22 | + // Valid() error |
23 | } | 23 | } |
24 | 24 | ||
25 | type UCenterClient struct { | 25 | type UCenterClient struct { |
-
请 注册 或 登录 后发表评论