...
|
...
|
@@ -33,6 +33,9 @@ service Core { |
|
|
@doc "用户信息"
|
|
|
@handler miniUserInfo
|
|
|
post /mini/user/info (MiniUserInfoRequest) returns (MiniUserInfoResponse)
|
|
|
@doc "用户统计"
|
|
|
@handler miniUserStatistics
|
|
|
post /mini/user/statistics (UserStatisticsRequest) returns (UserStatisticsResponse)
|
|
|
@doc "用户审核列表"
|
|
|
@handler miniUserAuditList
|
|
|
post /mini/user/audit-list (UserSearchRequest)returns(UserSearchResponse)
|
...
|
...
|
@@ -41,7 +44,10 @@ service Core { |
|
|
post /mini/user/audit (MiniUserAuditRequest)
|
|
|
@doc "部门用户列表"
|
|
|
@handler miniUserDepartmentUsers
|
|
|
post /mini/user/department-users (MiniUserDepartmentUsersRequest)returns (MiniUserInfoResponse)
|
|
|
post /mini/user/department-users (MiniUserDepartmentUsersRequest)
|
|
|
@doc "用户列表"
|
|
|
@handler miniUsersList
|
|
|
post /mini/user/user-list (MiniUsersListRequest)
|
|
|
@doc "关注我的人"
|
|
|
@handler miniUserFollower
|
|
|
post /mini/user/follower (MiniUserFollowedSearchRequest)returns(MiniUserFollowedSearchResponse)
|
...
|
...
|
@@ -105,6 +111,10 @@ type( |
|
|
Departments []*Department `json:"departments"`
|
|
|
Users []*UserItem `json:"users"`
|
|
|
}
|
|
|
MiniUsersListRequest{
|
|
|
ArticleId int64 `json:"articleId,optional"` // 按文章ID(返回文章可见的用户)
|
|
|
RoleId int64 `json:"roleId,optional"` // 按角色角色关联的用户
|
|
|
}
|
|
|
MiniUserFollowedSearchRequest{
|
|
|
Page int `json:"page,optional"`
|
|
|
Size int `json:"size,optional"`
|
...
|
...
|
@@ -117,6 +127,7 @@ type( |
|
|
Id int64 `json:"id,omitempty"` // 用户ID
|
|
|
CompanyId int64 `json:"companyId,omitempty"` // 公司ID
|
|
|
CompanyName string `json:"companyName,omitempty"` // 公司名称
|
|
|
CompanyCode string `json:"companyCode,omitempty"` // 公司编码(邀请码)
|
|
|
//DepartmentId int64 `json:"departmentId,omitempty"` // 部门ID
|
|
|
//Roles []int64 `json:"roleId,omitempty"` // 角色
|
|
|
Flag int `json:"flag,omitempty"` // 标识 1:管理员 2:普通用户 (有绑定角色是管理员)
|
...
|
...
|
@@ -216,6 +227,9 @@ service Core { |
|
|
@doc "用户统计"
|
|
|
@handler systemUserStatistics
|
|
|
post /system/user/statistics (UserStatisticsRequest) returns (UserStatisticsResponse)
|
|
|
@doc "用户列表"
|
|
|
@handler systemUsersList
|
|
|
post /system/user/user-list (MiniUsersListRequest)
|
|
|
|
|
|
@doc "用户详情"
|
|
|
@handler systemUserGet
|
...
|
...
|
|