|
@@ -18,9 +18,6 @@ service Core { |
|
@@ -18,9 +18,6 @@ service Core { |
18
|
@handler miniUserApplyJoinCompany
|
18
|
@handler miniUserApplyJoinCompany
|
19
|
post /mini/user/apply_join_company(MiniUserApplyJoinCompanyRequest) returns (MiniUserApplyJoinCompanyResponse)
|
19
|
post /mini/user/apply_join_company(MiniUserApplyJoinCompanyRequest) returns (MiniUserApplyJoinCompanyResponse)
|
20
|
@doc "用户登录"
|
20
|
@doc "用户登录"
|
21
|
- @handler miniUserWXLogin
|
|
|
22
|
- post /mini/user/wx-login (MiniUserLoginRequest) returns (MiniUserLoginResponse)
|
|
|
23
|
- @doc "用户登录"
|
|
|
24
|
@handler miniUserLogin
|
21
|
@handler miniUserLogin
|
25
|
post /mini/user/login (MiniUserLoginRequest) returns (MiniUserLoginResponse)
|
22
|
post /mini/user/login (MiniUserLoginRequest) returns (MiniUserLoginResponse)
|
26
|
}
|
23
|
}
|
|
@@ -78,16 +75,6 @@ service Core { |
|
@@ -78,16 +75,6 @@ service Core { |
78
|
}
|
75
|
}
|
79
|
|
76
|
|
80
|
type(
|
77
|
type(
|
81
|
- MiniUserWXLoginRequest {
|
|
|
82
|
- Code string `json:"code"` // 授权码
|
|
|
83
|
- }
|
|
|
84
|
- MiniUserLoginResponse {
|
|
|
85
|
- SessionKey string `json:"sessionKey"`
|
|
|
86
|
- OpenId string `json:"openId"`
|
|
|
87
|
- }
|
|
|
88
|
-)
|
|
|
89
|
-
|
|
|
90
|
-type(
|
|
|
91
|
MiniUserLoginRequest {
|
78
|
MiniUserLoginRequest {
|
92
|
LoginType string `json:"loginType"` // 登录类型 wechat-login whchat-phone-login phone-password-login phone-smscode-login
|
79
|
LoginType string `json:"loginType"` // 登录类型 wechat-login whchat-phone-login phone-password-login phone-smscode-login
|
93
|
WechatAuthCode string `json:"wechatAuthcode,optional"` // 微信登录 授权码
|
80
|
WechatAuthCode string `json:"wechatAuthcode,optional"` // 微信登录 授权码
|
|
@@ -104,7 +91,7 @@ type( |
|
@@ -104,7 +91,7 @@ type( |
104
|
Success bool `json:"success"` // 成功标识
|
91
|
Success bool `json:"success"` // 成功标识
|
105
|
}
|
92
|
}
|
106
|
MiniUserSwitchAccountRequest{
|
93
|
MiniUserSwitchAccountRequest{
|
107
|
- CompanyId int64 `json:"companyId"`
|
94
|
+ CompanyId int64 `json:"companyId,string"`
|
108
|
}
|
95
|
}
|
109
|
|
96
|
|
110
|
MiniUserInfoRequest {
|
97
|
MiniUserInfoRequest {
|
|
@@ -170,7 +157,7 @@ type( |
|
@@ -170,7 +157,7 @@ type( |
170
|
|
157
|
|
171
|
UserItem {
|
158
|
UserItem {
|
172
|
Id int64 `json:"id,omitempty"` // 用户ID
|
159
|
Id int64 `json:"id,omitempty"` // 用户ID
|
173
|
- CompanyId int64 `json:"companyId,omitempty"` // 公司ID
|
160
|
+ CompanyId int64 `json:"companyId,string,omitempty"` // 公司ID
|
174
|
CompanyName string `json:"companyName,omitempty"` // 公司名称
|
161
|
CompanyName string `json:"companyName,omitempty"` // 公司名称
|
175
|
CompanyCode string `json:"companyCode,omitempty"` // 公司编码(邀请码)
|
162
|
CompanyCode string `json:"companyCode,omitempty"` // 公司编码(邀请码)
|
176
|
CompanyLogo *string `json:"companyLogo,omitempty"` // 公司LOGO
|
163
|
CompanyLogo *string `json:"companyLogo,omitempty"` // 公司LOGO
|
|
@@ -189,7 +176,7 @@ type( |
|
@@ -189,7 +176,7 @@ type( |
189
|
AccountFrom string `json:"accountFrom,omitempty"` // 账号来源 后台新增、扫码注册
|
176
|
AccountFrom string `json:"accountFrom,omitempty"` // 账号来源 后台新增、扫码注册
|
190
|
}
|
177
|
}
|
191
|
Account {
|
178
|
Account {
|
192
|
- CompanyId int64 `json:"companyId"` // 公司ID
|
179
|
+ CompanyId int64 `json:"companyId,string"` // 公司ID
|
193
|
CompanyName string `json:"companyName"` // 公司名称
|
180
|
CompanyName string `json:"companyName"` // 公司名称
|
194
|
Logo string `json:"logo"` // 公司图标
|
181
|
Logo string `json:"logo"` // 公司图标
|
195
|
UserId int64 `json:"userId"` // 用户ID
|
182
|
UserId int64 `json:"userId"` // 用户ID
|