作者 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 {
@@ -495,31 +495,31 @@ type MiniUserFollowingMarkReadRequest struct { @@ -495,31 +495,31 @@ type MiniUserFollowingMarkReadRequest struct {
495 } 495 }
496 496
497 type UserItem struct { 497 type UserItem struct {
498 - Id int64 `json:"id,omitempty"` // 用户ID  
499 - CompanyId int64 `json:"companyId,omitempty"` // 公司ID  
500 - CompanyName string `json:"companyName,omitempty"` // 公司名称  
501 - CompanyCode string `json:"companyCode,omitempty"` // 公司编码(邀请码)  
502 - CompanyLogo *string `json:"companyLogo,omitempty"` // 公司LOGO  
503 - Flag int `json:"flag,omitempty"` // 标识 1:管理员 2:普通用户 (有绑定角色是管理员)  
504 - Name string `json:"name,omitempty"` // 名称  
505 - Avatar string `json:"avatar,omitempty"` // 头像  
506 - Phone string `json:"phone,omitempty"` // 手机号 唯一  
507 - Position string `json:"position,omitempty"` // 职位  
508 - Enable int `json:"enable,omitempty"` // 启用状态 1:启用 2:禁用  
509 - AuditStatus *int `json:"auditStatus,omitempty"` // 审核状态 0:待审核 1:审核通过 2:拒绝  
510 - Follower []int64 `json:"followers,omitempty"` // 关注我的人 (冗余)  
511 - Following []int64 `json:"following,omitempty"` // 我关注的人 (冗余)  
512 - Departments []int64 `json:"departments,omitempty"` // 所属部门  
513 - AccountFrom string `json:"accountFrom,omitempty"` // 账号来源 后台新增、扫码注册 498 + Id int64 `json:"id,omitempty"` // 用户ID
  499 + CompanyId int64 `json:"companyId,string,omitempty"` // 公司ID
  500 + CompanyName string `json:"companyName,omitempty"` // 公司名称
  501 + CompanyCode string `json:"companyCode,omitempty"` // 公司编码(邀请码)
  502 + CompanyLogo *string `json:"companyLogo,omitempty"` // 公司LOGO
  503 + Flag int `json:"flag,omitempty"` // 标识 1:管理员 2:普通用户 (有绑定角色是管理员)
  504 + Name string `json:"name,omitempty"` // 名称
  505 + Avatar string `json:"avatar,omitempty"` // 头像
  506 + Phone string `json:"phone,omitempty"` // 手机号 唯一
  507 + Position string `json:"position,omitempty"` // 职位
  508 + Enable int `json:"enable,omitempty"` // 启用状态 1:启用 2:禁用
  509 + AuditStatus *int `json:"auditStatus,omitempty"` // 审核状态 0:待审核 1:审核通过 2:拒绝
  510 + Follower []int64 `json:"followers,omitempty"` // 关注我的人 (冗余)
  511 + Following []int64 `json:"following,omitempty"` // 我关注的人 (冗余)
  512 + Departments []int64 `json:"departments,omitempty"` // 所属部门
  513 + AccountFrom string `json:"accountFrom,omitempty"` // 账号来源 后台新增、扫码注册
514 } 514 }
515 515
516 type Account struct { 516 type Account struct {
517 - CompanyId int64 `json:"companyId"` // 公司ID  
518 - CompanyName string `json:"companyName"` // 公司名称  
519 - Logo string `json:"logo"` // 公司图标  
520 - UserId int64 `json:"userId"` // 用户ID  
521 - Name string `json:"name"` // 名称  
522 - Position string `json:"position"` // 职位 517 + CompanyId int64 `json:"companyId,string"` // 公司ID
  518 + CompanyName string `json:"companyName"` // 公司名称
  519 + Logo string `json:"logo"` // 公司图标
  520 + UserId int64 `json:"userId"` // 用户ID
  521 + Name string `json:"name"` // 名称
  522 + Position string `json:"position"` // 职位
523 } 523 }
524 524
525 type Department struct { 525 type Department struct {