...
|
...
|
@@ -16,7 +16,7 @@ info( |
|
|
service Core {
|
|
|
@doc "用户申请加入公司"
|
|
|
@handler miniUserApplyJoinCompany
|
|
|
post /mini/user/apply-join-company(MiniUserApplyJoinCompanyRequest) returns (MiniUserApplyJoinCompanyResponse)
|
|
|
post /mini/user/apply_join_company(MiniUserApplyJoinCompanyRequest) returns (MiniUserApplyJoinCompanyResponse)
|
|
|
@doc "用户登录"
|
|
|
@handler miniUserLogin
|
|
|
post /mini/user/login (MiniUserLoginRequest) returns (MiniUserLoginResponse)
|
...
|
...
|
@@ -29,7 +29,7 @@ service Core { |
|
|
service Core {
|
|
|
@doc "切换账号"
|
|
|
@handler miniUserSwitchAccount
|
|
|
post /mini/user/switch-account (MiniUserSwitchAccountRequest) returns (MiniUserLoginResponse)
|
|
|
post /mini/user/switch_account (MiniUserSwitchAccountRequest) returns (MiniUserLoginResponse)
|
|
|
@doc "用户信息"
|
|
|
@handler miniUserInfo
|
|
|
post /mini/user/info (MiniUserInfoRequest) returns (MiniUserInfoResponse)
|
...
|
...
|
@@ -38,22 +38,31 @@ service Core { |
|
|
post /mini/user/statistics (UserStatisticsRequest) returns (UserStatisticsResponse)
|
|
|
@doc "用户审核列表"
|
|
|
@handler miniUserAuditList
|
|
|
post /mini/user/audit-list (UserSearchRequest)returns(UserSearchResponse)
|
|
|
post /mini/user/audit_list (UserSearchRequest)returns(UserSearchResponse)
|
|
|
@doc "用户审核"
|
|
|
@handler miniUserAudit
|
|
|
post /mini/user/audit (MiniUserAuditRequest)
|
|
|
@doc "部门用户列表"
|
|
|
@handler miniUserDepartmentUsers
|
|
|
post /mini/user/department-users (MiniUserDepartmentUsersRequest)
|
|
|
post /mini/user/department_users (MiniUserDepartmentUsersRequest)
|
|
|
@doc "用户列表"
|
|
|
@handler miniUsersList
|
|
|
post /mini/user/user-list (MiniUsersListRequest)
|
|
|
post /mini/user/user_list (MiniUsersListRequest)
|
|
|
@doc "用户快讯"
|
|
|
@handler miniUserNews
|
|
|
post /mini/user/news (MiniUserNewsRequest)returns(MiniUserNewsResposne)
|
|
|
@doc "关注我的人"
|
|
|
@handler miniUserFollower
|
|
|
post /mini/user/follower (MiniUserFollowedSearchRequest)returns(MiniUserFollowedSearchResponse)
|
|
|
@doc "我关注的人"
|
|
|
@handler miniUserFollowing
|
|
|
post /mini/user/following (MiniUserFollowedSearchRequest)returns(MiniUserFollowedSearchResponse)
|
|
|
@doc "我关注的人-最新未读列表(未读标红)"
|
|
|
@handler miniUserFollowingLatestUnreadList
|
|
|
post /mini/user/following/latest_unread_list (MiniUserFollowedSearchRequest)returns(MiniUserFollowedSearchResponse)
|
|
|
@doc "我关注的人-标记已读"
|
|
|
@handler miniUserFollowingMarkRead
|
|
|
post /mini/user/following/mark_read (MiniUserFollowingMarkReadRequest)
|
|
|
@doc "关注"
|
|
|
@handler miniUserFollow
|
|
|
post /mini/user/follow (FollowRequest)
|
...
|
...
|
@@ -115,6 +124,23 @@ type( |
|
|
ArticleId int64 `json:"articleId,optional"` // 按文章ID(返回文章可见的用户)
|
|
|
RoleId int64 `json:"roleId,optional"` // 按角色角色关联的用户
|
|
|
}
|
|
|
MiniUserNewsRequest{
|
|
|
AuthorId int64 `json:"authorId,optional"` // 特定作者ID
|
|
|
LastArticleId int64 `json:"lastArticleId,optional"`// 最后文章ID
|
|
|
Size int `json:"size"` // 数量
|
|
|
}
|
|
|
MiniUserNewsResposne{
|
|
|
List []UserNewsItem `json:"list"`
|
|
|
Total int64 `json:"total"`
|
|
|
}
|
|
|
UserNewsItem{
|
|
|
NewsId int64 `json:"newsId"` // 快讯ID
|
|
|
Type string `json:"type"` // 快讯类型 文章:Article 讨论:Discuss ...
|
|
|
Title string `json:"title"` // 标题
|
|
|
Summary string `json:"summary"` // 快讯概要
|
|
|
Time int64 `json:"time"` // 时间
|
|
|
ReadFlag bool `json:"readFlag"` // 已读标识 true:已读 false:未读
|
|
|
}
|
|
|
MiniUserFollowedSearchRequest{
|
|
|
Page int `json:"page,optional"`
|
|
|
Size int `json:"size,optional"`
|
...
|
...
|
@@ -123,6 +149,11 @@ type( |
|
|
List []*UserFollowItem `json:"users"`
|
|
|
Total int64 `json:"total"`
|
|
|
}
|
|
|
|
|
|
MiniUserFollowingMarkReadRequest{
|
|
|
UserId int64 `json:"userId"`
|
|
|
}
|
|
|
|
|
|
UserItem {
|
|
|
Id int64 `json:"id,omitempty"` // 用户ID
|
|
|
CompanyId int64 `json:"companyId,omitempty"` // 公司ID
|
...
|
...
|
@@ -176,6 +207,7 @@ type( |
|
|
Position string `json:"position"` // 职位
|
|
|
Followed bool `json:"followed"` // 关注
|
|
|
MutualFollowed bool `json:"mutualFollowed"` // 互相关注标识
|
|
|
ReadFlag bool `json:"readFlag"` // 已读标识 true:已读 false:未读(小红点)
|
|
|
}
|
|
|
)
|
|
|
|
...
|
...
|
@@ -229,7 +261,7 @@ service Core { |
|
|
post /system/user/statistics (UserStatisticsRequest) returns (UserStatisticsResponse)
|
|
|
@doc "用户列表"
|
|
|
@handler systemUsersList
|
|
|
post /system/user/user-list (MiniUsersListRequest)
|
|
|
post /system/user/user_list (MiniUsersListRequest)
|
|
|
|
|
|
@doc "用户详情"
|
|
|
@handler systemUserGet
|
...
|
...
|
|