作者 yangfu

Merge branch 'dev' into test

@@ -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
@@ -420,7 +420,7 @@ type MiniUserLoginResponse struct { @@ -420,7 +420,7 @@ type MiniUserLoginResponse struct {
420 } 420 }
421 421
422 type MiniUserSwitchAccountRequest struct { 422 type MiniUserSwitchAccountRequest struct {
423 - CompanyId int64 `json:"companyId"` 423 + CompanyId int64 `json:"companyId,string"`
424 } 424 }
425 425
426 type MiniUserInfoRequest struct { 426 type MiniUserInfoRequest struct {
@@ -496,7 +496,7 @@ type MiniUserFollowingMarkReadRequest struct { @@ -496,7 +496,7 @@ type MiniUserFollowingMarkReadRequest struct {
496 496
497 type UserItem struct { 497 type UserItem struct {
498 Id int64 `json:"id,omitempty"` // 用户ID 498 Id int64 `json:"id,omitempty"` // 用户ID
499 - CompanyId int64 `json:"companyId,omitempty"` // 公司ID 499 + CompanyId int64 `json:"companyId,string,omitempty"` // 公司ID
500 CompanyName string `json:"companyName,omitempty"` // 公司名称 500 CompanyName string `json:"companyName,omitempty"` // 公司名称
501 CompanyCode string `json:"companyCode,omitempty"` // 公司编码(邀请码) 501 CompanyCode string `json:"companyCode,omitempty"` // 公司编码(邀请码)
502 CompanyLogo *string `json:"companyLogo,omitempty"` // 公司LOGO 502 CompanyLogo *string `json:"companyLogo,omitempty"` // 公司LOGO
@@ -514,7 +514,7 @@ type UserItem struct { @@ -514,7 +514,7 @@ type UserItem struct {
514 } 514 }
515 515
516 type Account struct { 516 type Account struct {
517 - CompanyId int64 `json:"companyId"` // 公司ID 517 + CompanyId int64 `json:"companyId,string"` // 公司ID
518 CompanyName string `json:"companyName"` // 公司名称 518 CompanyName string `json:"companyName"` // 公司名称
519 Logo string `json:"logo"` // 公司图标 519 Logo string `json:"logo"` // 公司图标
520 UserId int64 `json:"userId"` // 用户ID 520 UserId int64 `json:"userId"` // 用户ID