syntax = "proto3"; package api.manager; import "google/api/annotations.proto"; //import "google/protobuf/struct.proto"; import "google/protobuf/empty.proto"; import "api/common/common.proto"; import "api/websocket/websocket.proto"; option go_package = "git.ikuban.com/server/pw-protobuf/api/manager;manager"; option java_multiple_files = true; option java_package = "api.manager"; service Manager { // 管理员查询用户列表 rpc ManagerFindUserList (common.ManagerFindPersonListRequest) returns (common.ManagerFindPersonListReply){ option (google.api.http) = { post: "/api/manager/user/list", body:"*" }; }; // 管理员查询完善过资料的用户列表 rpc ManagerFindInformationUserList (common.ManagerFindPersonListRequest) returns (common.ManagerFindPersonListReply){ option (google.api.http) = { post: "/api/manager/user/list/information", body:"*" }; }; // 管理员查询已审核过信息的列表 rpc ManagerFindIsCheckQualityUserList (ManagerFindIsCheckQualityUserListRequest) returns (common.ManagerFindPersonListReply2){ option (google.api.http) = { post: "/api/manager/user/list/ischeckquality", body:"*" }; }; // 管理员查询优质用户列表 rpc ManagerFindHighQualityUserList (common.ManagerFindPersonListRequest) returns (common.ManagerFindPersonListReply){ option (google.api.http) = { post: "/api/manager/quality/user/list", body:"*" }; }; // 管理员查询精选用户 rpc ManagerFindCanHandpickUserList (common.ManagerFindCanHandpickUserListRequest) returns (common.ManagerFindCanHandpickUserListReply){ option (google.api.http) = { post: "/api/manager/handpick/user/list", body:"*" }; }; // 管理员批量更新精选用户 rpc ManagerSetHandpickUser (common.ManagerSetHandpickUserRequest) returns (google.protobuf.Empty){ option (google.api.http) = { post: "/api/manager/handpick/user/set", body:"*" }; }; // 管理员更新单个精选用户 rpc ManagerSetHandpickUserOne (common.ManagerSetHandpickUserOneRequest) returns (google.protobuf.Empty){ option (google.api.http) = { post: "/api/manager/handpick/user/set/one", body:"*" }; }; // 管理员标记优质用户 rpc ManagerMarkHighQualityUser (ManagerMarkHighQualityUserRequest) returns (google.protobuf.Empty){ option (google.api.http) = { post: "/api/manager/quality/user/set", body:"*" }; }; // 管理员批量取消标记优质用户 rpc ManagerReMarkHighQualityUser (ManagerReMarkHighQualityUserRequest) returns (google.protobuf.Empty){ option (google.api.http) = { post: "/api/manager/quality/user/remark", body:"*" }; }; // 管理员标记单个优质用户 rpc ManagerMarkHighQualityUserOne (common.PersonIDParam) returns (google.protobuf.Empty){ option (google.api.http) = { post: "/api/manager/quality/user/set/one", body:"*" }; }; // 管理员批量拉黑用户 rpc ManagerSetUserBlack (common.PersonIDList) returns (google.protobuf.Empty){ option (google.api.http) = { post: "/api/manager/black/user/more", body:"*" }; }; // 管理员取消标记优质用户 rpc ManagerDeleteHighQualityUser (common.PersonIDParam) returns (google.protobuf.Empty){ option (google.api.http) = { post: "/api/manager/quality/user/delete", body:"*" }; }; // 管理员更新用户性别 rpc ManagerUpdateUserSex (ManagerUpdateUserSexRequest) returns (google.protobuf.Empty){ option (google.api.http) = { post: "/api/manager/user/sex/update", body:"*" }; }; // 管理员更新用户语音 rpc ManagerUpdateUserVoice (common.ManagerUpdatePersonVoiceRequest) returns (google.protobuf.Empty){ option (google.api.http) = { post: "/api/manager/user/Voice/update", body:"*" }; }; // 管理员更新用户相册 rpc ManagerUpdateUserPictures (common.ManagerUpdatePersonPicturesRequest) returns (google.protobuf.Empty){ option (google.api.http) = { post: "/api/manager/user/pictures/update", body:"*" }; }; // 管理员更新用户签名 rpc ManagerUpdateUserSignature (common.ManagerUpdatePersonSignatureRequest) returns (google.protobuf.Empty){ option (google.api.http) = { post: "/api/manager/user/signature/update", body:"*" }; }; // 管理员更新用户头像 rpc ManagerUpdateUserAvatar (common.ManagerUpdatePersonAvatarRequest) returns (google.protobuf.Empty){ option (google.api.http) = { post: "/api/manager/user/avatar/update", body:"*" }; }; // 管理员更新用户昵称 rpc ManagerUpdateUserName (common.ManagerUpdatePersonNameRequest) returns (google.protobuf.Empty){ option (google.api.http) = { post: "/api/manager/user/name/update", body:"*" }; }; // 管理员更新用户权重 rpc ManagerUpdateUserWeight (common.ManagerUpdatePersonWeightRequest) returns (google.protobuf.Empty){ option (google.api.http) = { post: "/api/manager/user/weight/update", body:"*" }; }; // 管理员更新用户是否拉黑 rpc ManagerUpdateUserIsBlack (common.ManagerUpdatePersonIsBlackRequest) returns (google.protobuf.Empty){ option (google.api.http) = { post: "/api/manager/user/black/update", body:"*" }; }; // 管理员增加用户积分 rpc ManagerUpdateUserCredit (ManagerUpdateUserCreditRequest) returns (google.protobuf.Empty){ option (google.api.http) = { post: "/api/manager/user/credit/add", body:"*" }; }; // 管理员登录 rpc ManagerLogin (common.ManagerLoginRequest) returns (common.LoginToken){ option (google.api.http) = { post: "/api/manager/login", body:"*" }; }; // 当前在线人 rpc OnlinePerson (google.protobuf.Empty) returns (OnlinePersonReply){ option (google.api.http) = { post: "/api/manager/online/person", body:"*" }; }; // 管理员查询房间列表 rpc ManagerFindRoomList (common.ManagerFindRoomListRequest) returns (common.ManagerFindRoomListReply){ option (google.api.http) = { post: "/api/manager/room/list", body:"*" }; }; // 管理员查询聊天记录 rpc ManagerFindChatRecordList (common.ManagerFindChatRecordListRequest) returns (common.ChatRecordListReply){ option (google.api.http) = { post: "/api/manager/chat/list", body:"*" }; }; // 管理员查询纸条列表 rpc ManagerFindScripList (common.ManagerFindScripListRequest) returns (common.ManagerScripReply){ option (google.api.http) = { post: "/api/manager/scrip/list", body:"*" }; }; // 管理员查询纸条列表 rpc ManagerFindScripListV2 (common.ManagerFindScripListV2Request) returns (common.ManagerScripV2Reply){ option (google.api.http) = { post: "/api/manager/scrip/list/v2", body:"*" }; }; // 管理员更新纸条文字 rpc ManagerUpdateScripText (common.ManagerUpdateScripTextRequest) returns (google.protobuf.Empty){ option (google.api.http) = { post: "/api/manager/update/scrip/text", body:"*" }; }; // 管理员更新纸条图片 rpc ManagerUpdateScripPicture (common.ManagerUpdateScripPictureRequest) returns (google.protobuf.Empty){ option (google.api.http) = { post: "/api/manager/update/scrip/picture", body:"*" }; }; // 管理员删除纸条 rpc ManagerDeleteScrip (common.IDParam) returns (google.protobuf.Empty){ option (google.api.http) = { post: "/api/manager/delete/scrip", body:"*" }; }; // 管理员批量删除纸条 rpc ManagerDeleteScripMore (common.Ids) returns (google.protobuf.Empty){ option (google.api.http) = { post: "/api/manager/delete/scrip/more", body:"*" }; }; // 管理员查询举报列表 rpc ManagerFindReportList (common.ManagerFindReportListRequest) returns (common.ManagerFindReportListReply){ option (google.api.http) = { post: "/api/manager/report/list", body:"*" }; }; // 管理员查询某个举报者的举报详情列表 rpc ManagerFindReportDetailsList (common.ManagerFindReportDetailsListRequest) returns (common.ManagerFindReportDetailsListReply){ option (google.api.http) = { post: "/api/manager/report/details/list", body:"*" }; }; // 查询在线人数 rpc FindOnlinePerson (FindOnlinePersonRequest) returns (websocket.FindOnlinePersonReply){ option (google.api.http) = { post: "/api/manager/online/details/list", body:"*" }; }; // 管理员注销用户 rpc ManagerUserUnsubscribe (ManagerUserUnsubscribeRequest) returns (google.protobuf.Empty){ option (google.api.http) = { post: "/api/manager/user/unsubscribe", body:"*" }; }; // 查询在线可匹配人数 rpc FindOnlineCanMatchingPerson (google.protobuf.Empty) returns (websocket.FindOnlineCanMatchingPersonReply){ option (google.api.http) = { post: "/api/manager/user/matching/list", body:"*" }; }; // 管理员增加黑名单图片 rpc ManagerAddBlackPicture (ManagerAddBlackPictureRequest) returns (google.protobuf.Empty){ option (google.api.http) = { post: "/api/manager/black/picture/add", body:"*" }; }; // 管理员增加黑名单图片 rpc SendWebsocketMsg (common.PersonIDParam) returns (websocket.SendMsgReply){ option (google.api.http) = { post: "/api/manager/websocket/send", body:"*" }; }; // 管理员查询纸条列表 rpc ManagerFindScripAllList (ManagerFindScripAllListRequest) returns (common.ManagerScripReply){ option (google.api.http) = { post: "/api/manager/scrip/all/list", body:"*" }; }; // 通过小纸条 rpc SetScripPass (common.ScripID) returns (google.protobuf.Empty){ option (google.api.http) = { post: "/api/manager/scrip/pass", body:"*" }; }; // 通过AI视频任务 rpc UpdateAITaskIsFinish (UpdateAITaskIsFinishRequest) returns (google.protobuf.Empty){ option (google.api.http) = { post: "/api/manager/ai/task/finish", body:"*" }; }; // 查询任务 rpc FindAITask (FindAITaskRequest) returns (FindAITaskReply){ option (google.api.http) = { post: "/api/manager/ai/task/find", body:"*" }; }; } message FindAITaskRequest{ int64 page = 1; int64 pageSize = 2; } message FindAITaskReply{ repeated TaskInfo list = 1; bool last = 2; int64 total = 3; int64 page = 4; int64 pageSize = 5; } message TaskInfo{ int64 id = 1; string videoUrl = 2; string pictureUrl = 3; } message UpdateAITaskIsFinishRequest{ int64 id = 1; bool isPass = 2; } message ManagerFindScripAllListRequest{ int64 nextId = 1; int64 offset = 2; string status = 3; int64 personId = 4;//用户ID (number) int64 scripId = 5; } message ManagerAddBlackPictureRequest{ string pictureUrl = 1; } message ManagerUserUnsubscribeRequest{ int64 userId = 1; } message FindOnlinePersonRequest{ bool isFindAll = 1; } message ManagerUpdateUserSexRequest{ int64 userId = 1; int64 sex = 2; } message ManagerFindIsCheckQualityUserListRequest{ int64 page = 1; int64 pageSize = 2; int64 id = 3;// 用户ID string name = 4;// 姓名 int64 sex = 5; // 性别 } message ManagerUpdateUserCreditRequest{ string personId = 1; int64 num = 2; string title = 3; } message ManagerMarkHighQualityUserRequest{ repeated string passIds = 1; repeated string unPassIds = 2; } message ManagerReMarkHighQualityUserRequest{ repeated string userIds = 1; } message OnlinePersonReply{ int64 userManNum = 1; // 男用户在线数 int64 userWomanNum = 2; // 女用户在线数 int64 userOtherNum = 3; // 未填写性别的用户在线数 }