Browse Source

Merge remote-tracking branch 'origin/master'

master
jaydan 2 weeks ago
parent
commit
8f8902bc9d
  1. 12643
      background_management_gateway/v1/background_management_gateway.pb.go
  2. 61
      background_management_gateway/v1/background_management_gateway.proto
  3. 305
      background_management_gateway/v1/background_management_gateway.swagger.json
  4. 6452
      background_management_gateway/v1/background_management_gateway.swagger.yaml
  5. 1325
      background_management_gateway/v1/background_management_gateway_grpc.pb.go
  6. 1074
      background_management_gateway/v1/background_management_gateway_http.pb.go
  7. 1509
      live/v1/live.pb.go
  8. 44
      live/v1/live.proto
  9. 90
      live/v1/live_grpc.pb.go

12643
background_management_gateway/v1/background_management_gateway.pb.go

File diff suppressed because it is too large Load Diff

61
background_management_gateway/v1/background_management_gateway.proto

@ -515,6 +515,15 @@ service BackgroundManagementGateway {
};
}
//
rpc GetUserChatRecordList (GetUserChatRecordListReq) returns (GetUserChatRecordListResp){
option (google.api.http) = {
post: "/v1/live/chat/ban"
body: "*"
};
}
// **************** ******************
//
@ -1094,6 +1103,15 @@ service BackgroundManagementGateway {
// **************** App用户 *********************
//
rpc BanUser (BanUserReq)returns (metachat.api.service.common.Empty){
option (google.api.http) = {
post: "/v1/user/ban"
body: "*"
};
}
//
rpc BannedUser (BannedUserReq) returns (metachat.api.service.common.Empty) {
option (google.api.http) = {
@ -3079,6 +3097,38 @@ message ResetGuildPasswordReq {
string password = 2;
}
message GetUserChatRecordListReq{
// id
optional string public_id = 1;
//
optional string user_name = 2;
//
optional string phone = 3;
int64 offset = 4;
int64 limit = 5;
}
message GetUserChatRecordListResp{
message Item {
int64 uid = 1;
string public_id = 2;
string phone = 3;
string user_name = 4;
string avatar_url = 5;
int32 gender = 6;
//
int32 banner_time = 7;
//
int64 banned_at = 8;
//
string banned_reason = 9;
//
string operate_name = 10;
}
repeated Item items = 1;
int64 total = 2;
}
message SetDefaultHotValueReq {
int64 room_id = 1;
string start_time = 2;
@ -3598,6 +3648,17 @@ message DeleteReplyCommentReq {
int64 reply_comment_id = 1;
}
message BanUserReq {
// id
int64 uid = 1;
//
int64 duration_time = 2;
//
string banned_reason = 3;
// 1.2.3.4.
int32 type = 4;
}
message BannedUserReq {
int64 uid = 1;
int64 duration_time = 2;

305
background_management_gateway/v1/background_management_gateway.swagger.json

@ -5451,6 +5451,39 @@
]
}
},
"/v1/live/chat/ban": {
"post": {
"summary": "获取用户公屏禁言列表",
"operationId": "BackgroundManagementGateway_GetUserChatRecordList",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
"$ref": "#/definitions/v1GetUserChatRecordListResp"
}
},
"default": {
"description": "An unexpected error response.",
"schema": {
"$ref": "#/definitions/rpcStatus"
}
}
},
"parameters": [
{
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/v1GetUserChatRecordListReq"
}
}
],
"tags": [
"BackgroundManagementGateway"
]
}
},
"/v1/login/user_name": {
"post": {
"summary": "管理后台用户名和密码登录",
@ -7327,6 +7360,39 @@
]
}
},
"/v1/user/ban": {
"post": {
"summary": "用户封禁",
"operationId": "BackgroundManagementGateway_BanUser",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
"$ref": "#/definitions/servicecommonEmpty"
}
},
"default": {
"description": "An unexpected error response.",
"schema": {
"$ref": "#/definitions/rpcStatus"
}
}
},
"parameters": [
{
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/v1BanUserReq"
}
}
],
"tags": [
"BackgroundManagementGateway"
]
}
},
"/v1/user/banned": {
"post": {
"summary": "封禁用户",
@ -8357,6 +8423,7 @@
"list": {
"type": "array",
"items": {
"type": "object",
"$ref": "#/definitions/v1ContainerData"
}
},
@ -8384,6 +8451,7 @@
"list": {
"type": "array",
"items": {
"type": "object",
"$ref": "#/definitions/v1DailySignWeek"
}
}
@ -8395,6 +8463,7 @@
"list": {
"type": "array",
"items": {
"type": "object",
"$ref": "#/definitions/v1Image"
}
},
@ -8440,6 +8509,7 @@
"items": {
"type": "array",
"items": {
"type": "object",
"$ref": "#/definitions/v1LoginJumpItem"
}
}
@ -8455,7 +8525,8 @@
"$ref": "#/definitions/v1NoticeStatus"
},
"type": {
"$ref": "#/definitions/v1NoticeType"
"$ref": "#/definitions/v1NoticeType",
"title": "1.单个用户, 2.直播间内用户,3.全部在线用户,4.全部用户,5.正在请求登入(连接)用户"
},
"offset": {
"type": "string",
@ -8475,6 +8546,7 @@
"items": {
"type": "array",
"items": {
"type": "object",
"$ref": "#/definitions/v1NoticeData"
}
},
@ -8589,6 +8661,7 @@
"items": {
"type": "array",
"items": {
"type": "object",
"$ref": "#/definitions/background_management_gatewayv1QueryAcquireLotteryMediumRespItem"
}
}
@ -8638,6 +8711,7 @@
"items": {
"type": "array",
"items": {
"type": "object",
"$ref": "#/definitions/background_management_gatewayv1QueryAssetsDetailRespItem"
}
}
@ -8762,6 +8836,7 @@
"items": {
"type": "array",
"items": {
"type": "object",
"$ref": "#/definitions/v1QueryBannedUserRespItem"
}
},
@ -8804,6 +8879,7 @@
"items": {
"type": "array",
"items": {
"type": "object",
"$ref": "#/definitions/background_management_gatewayv1QueryBannerUserReleaseDynamicRespItem"
}
}
@ -8858,6 +8934,7 @@
"items": {
"type": "array",
"items": {
"type": "object",
"$ref": "#/definitions/background_management_gatewayv1QueryCategoryRespItem"
}
},
@ -8984,6 +9061,7 @@
"items": {
"type": "array",
"items": {
"type": "object",
"$ref": "#/definitions/background_management_gatewayv1QueryDynamicCommentRespItem"
}
}
@ -9133,6 +9211,7 @@
"items": {
"type": "array",
"items": {
"type": "object",
"$ref": "#/definitions/background_management_gatewayv1QueryDynamicRespItem"
},
"title": "此次返回的动态列表"
@ -9206,6 +9285,7 @@
"topic_list": {
"type": "array",
"items": {
"type": "object",
"$ref": "#/definitions/v1TopicItem"
}
},
@ -9301,6 +9381,7 @@
"items": {
"type": "array",
"items": {
"type": "object",
"$ref": "#/definitions/background_management_gatewayv1QueryGiftRespItem"
}
},
@ -9417,6 +9498,7 @@
"items": {
"type": "array",
"items": {
"type": "object",
"$ref": "#/definitions/v1QueryGiveRoomGiftRespItem"
}
},
@ -9440,6 +9522,7 @@
"items": {
"type": "array",
"items": {
"type": "object",
"$ref": "#/definitions/background_management_gatewayv1QueryGroupRespItem"
}
},
@ -9528,6 +9611,7 @@
"items": {
"type": "array",
"items": {
"type": "object",
"$ref": "#/definitions/background_management_gatewayv1QueryHomieExchangeRecordRespItem"
}
}
@ -9599,6 +9683,7 @@
"items": {
"type": "array",
"items": {
"type": "object",
"$ref": "#/definitions/background_management_gatewayv1QueryLabelRespItem"
}
},
@ -9648,6 +9733,7 @@
"items": {
"type": "array",
"items": {
"type": "object",
"$ref": "#/definitions/background_management_gatewayv1QueryLotteryGroupRespItem"
}
}
@ -9694,6 +9780,7 @@
"lottery_pool_statistics_items": {
"type": "array",
"items": {
"type": "object",
"$ref": "#/definitions/v1LotteryPoolStatisticsItem"
}
},
@ -9765,6 +9852,7 @@
"items": {
"type": "array",
"items": {
"type": "object",
"$ref": "#/definitions/background_management_gatewayv1QueryLotteryMediumRespItem"
}
}
@ -9799,6 +9887,7 @@
"items": {
"type": "array",
"items": {
"type": "object",
"$ref": "#/definitions/background_management_gatewayv1QueryLotteryPoolPrizePutInConditionRespItem"
}
}
@ -9895,6 +9984,7 @@
"items": {
"type": "array",
"items": {
"type": "object",
"$ref": "#/definitions/background_management_gatewayv1QueryProductPositionRespItem"
}
},
@ -10037,6 +10127,7 @@
"items": {
"type": "array",
"items": {
"type": "object",
"$ref": "#/definitions/v1ProductItem"
}
},
@ -10126,6 +10217,7 @@
"items": {
"type": "array",
"items": {
"type": "object",
"$ref": "#/definitions/background_management_gatewayv1QueryRechargeRecordRespItem"
}
}
@ -10291,6 +10383,7 @@
"items": {
"type": "array",
"items": {
"type": "object",
"$ref": "#/definitions/background_management_gatewayv1QueryRecommendProductRespItem"
}
},
@ -10338,6 +10431,7 @@
"items": {
"type": "array",
"items": {
"type": "object",
"$ref": "#/definitions/background_management_gatewayv1QueryRecommendRespItem"
}
},
@ -10439,6 +10533,7 @@
"items": {
"type": "array",
"items": {
"type": "object",
"$ref": "#/definitions/background_management_gatewayv1ReplyComment"
}
}
@ -10450,6 +10545,7 @@
"items": {
"type": "array",
"items": {
"type": "object",
"$ref": "#/definitions/v1QuerySalesCategoryRespItem"
}
},
@ -10465,6 +10561,7 @@
"items": {
"type": "array",
"items": {
"type": "object",
"$ref": "#/definitions/v1QueryUserBackpackGiftRespItem"
}
}
@ -10476,6 +10573,7 @@
"items": {
"type": "array",
"items": {
"type": "object",
"$ref": "#/definitions/v1QueryUserBackpackProductRespItem"
}
}
@ -10541,6 +10639,7 @@
"items": {
"type": "array",
"items": {
"type": "object",
"$ref": "#/definitions/background_management_gatewayv1QueryWithdrawCashRecordRespItem"
}
}
@ -10853,6 +10952,7 @@
"details": {
"type": "array",
"items": {
"type": "object",
"$ref": "#/definitions/protobufAny"
}
}
@ -10896,6 +10996,7 @@
"obj": {
"type": "array",
"items": {
"type": "object",
"$ref": "#/definitions/v1DailySignObj"
}
}
@ -10911,6 +11012,7 @@
"data": {
"type": "array",
"items": {
"type": "object",
"$ref": "#/definitions/v1AddAnchorReqData"
}
}
@ -11040,6 +11142,7 @@
"items": {
"type": "array",
"items": {
"type": "object",
"$ref": "#/definitions/v1AdvertChannelStatisticsRespItem"
}
}
@ -11178,7 +11281,32 @@
},
"status": {
"type": "integer",
"format": "int32"
"format": "int32",
"title": "1.禁止 2.允许"
}
}
},
"v1BanUserReq": {
"type": "object",
"properties": {
"uid": {
"type": "string",
"format": "int64",
"title": "用户id"
},
"duration_time": {
"type": "string",
"format": "int64",
"title": "封禁时间"
},
"banned_reason": {
"type": "string",
"title": "封禁理由"
},
"type": {
"type": "integer",
"format": "int32",
"title": "封禁类型1.用户,2.私信,3.动态,4.公屏禁言"
}
}
},
@ -11452,6 +11580,7 @@
"items": {
"type": "array",
"items": {
"type": "object",
"$ref": "#/definitions/v1ChannelOverviewRespItem"
}
}
@ -11575,6 +11704,7 @@
"ports": {
"type": "array",
"items": {
"type": "object",
"$ref": "#/definitions/v1Ports"
}
},
@ -12304,6 +12434,7 @@
"product_attribute_list": {
"type": "array",
"items": {
"type": "object",
"$ref": "#/definitions/v1ProductAttribute"
}
},
@ -12335,6 +12466,7 @@
"sku_list": {
"type": "array",
"items": {
"type": "object",
"$ref": "#/definitions/v1Sku"
}
},
@ -12483,6 +12615,7 @@
"role_list": {
"type": "array",
"items": {
"type": "object",
"$ref": "#/definitions/v1CreateUserGroupRoleReq"
}
}
@ -12525,6 +12658,7 @@
"items": {
"type": "array",
"items": {
"type": "object",
"$ref": "#/definitions/v1DailyOverviewRespItem"
}
}
@ -12633,6 +12767,7 @@
"obj": {
"type": "array",
"items": {
"type": "object",
"$ref": "#/definitions/v1DailySignObj"
}
}
@ -12859,6 +12994,7 @@
"media_items": {
"type": "array",
"items": {
"type": "object",
"$ref": "#/definitions/v1DynamicMediaItem"
}
}
@ -13083,6 +13219,7 @@
"list": {
"type": "array",
"items": {
"type": "object",
"$ref": "#/definitions/v1AccDailySign"
}
}
@ -13117,6 +13254,7 @@
"items": {
"type": "array",
"items": {
"type": "object",
"$ref": "#/definitions/v1GetAnchorBillStatisticsRespItem"
}
}
@ -13201,6 +13339,7 @@
"items": {
"type": "array",
"items": {
"type": "object",
"$ref": "#/definitions/v1AnchorItem"
}
}
@ -13226,6 +13365,7 @@
"items": {
"type": "array",
"items": {
"type": "object",
"$ref": "#/definitions/v1GetAppVersionConfigRespItem"
}
}
@ -13278,6 +13418,7 @@
"list": {
"type": "array",
"items": {
"type": "object",
"$ref": "#/definitions/v1Banner"
}
}
@ -13376,6 +13517,7 @@
"items": {
"type": "array",
"items": {
"type": "object",
"$ref": "#/definitions/v1GetGuildAnchorListReqRespItem"
}
},
@ -13507,6 +13649,7 @@
"items": {
"type": "array",
"items": {
"type": "object",
"$ref": "#/definitions/v1GuildBillItem"
}
},
@ -13602,6 +13745,7 @@
"items": {
"type": "array",
"items": {
"type": "object",
"$ref": "#/definitions/v1GetGuildListRespItem"
}
},
@ -13734,6 +13878,7 @@
"list": {
"type": "array",
"items": {
"type": "object",
"$ref": "#/definitions/v2RoomData"
}
},
@ -13788,6 +13933,7 @@
"list": {
"type": "array",
"items": {
"type": "object",
"$ref": "#/definitions/v1Ip"
}
}
@ -13811,6 +13957,7 @@
"items": {
"type": "array",
"items": {
"type": "object",
"$ref": "#/definitions/v1GetLiveHotSetListRspItem"
}
}
@ -13887,6 +14034,7 @@
"items": {
"type": "array",
"items": {
"type": "object",
"$ref": "#/definitions/v1GetLiveRecordListRspItem"
}
},
@ -13991,6 +14139,7 @@
"end_times": {
"type": "string",
"format": "int64",
"description": "房间类型 1. 个人直播间 2.公会直播间 3.广场",
"title": "直播结束时间戳,单位:秒"
},
"room_type_list": {
@ -14031,6 +14180,7 @@
"items": {
"type": "array",
"items": {
"type": "object",
"$ref": "#/definitions/v1GetLiveRoomListRspItem"
}
},
@ -14176,7 +14326,8 @@
"type": "string",
"title": "房间背景"
}
}
},
"title": "id\n int64 id = 1;"
},
"v1GetOnlineAnchorListReq": {
"type": "object",
@ -14194,6 +14345,7 @@
"list": {
"type": "array",
"items": {
"type": "object",
"$ref": "#/definitions/v1OnList"
}
}
@ -14210,6 +14362,7 @@
"list": {
"type": "array",
"items": {
"type": "object",
"$ref": "#/definitions/v1OnList"
},
"title": "在线用户列表"
@ -14261,6 +14414,7 @@
"list": {
"type": "array",
"items": {
"type": "object",
"$ref": "#/definitions/feedbackv1ReportData"
}
},
@ -14288,6 +14442,7 @@
"items": {
"type": "array",
"items": {
"type": "object",
"$ref": "#/definitions/v1GetRoomAnchorFlowStatisticsRespItem"
}
}
@ -14318,6 +14473,7 @@
"items": {
"type": "array",
"items": {
"type": "object",
"$ref": "#/definitions/v1GetRoomClassifyListRspItem"
}
}
@ -14343,6 +14499,7 @@
"list": {
"type": "array",
"items": {
"type": "object",
"$ref": "#/definitions/v1GetRoomListRspData"
}
},
@ -14361,11 +14518,13 @@
},
"user": {
"$ref": "#/definitions/v1QueryUserProfileRespItem",
"description": "热度值信息\n hot_live.v1.LiveHotSet hot = 3;",
"title": "房主信息"
},
"ban_status": {
"type": "integer",
"format": "int32"
"format": "int32",
"title": "禁播状态"
}
},
"title": "metachat.api.service.common.Page page = 4;"
@ -14380,7 +14539,92 @@
"type": "object",
"properties": {
"page": {
"$ref": "#/definitions/commonPage"
"$ref": "#/definitions/commonPage",
"title": "repeated room.v1.Scene data = 5;"
}
}
},
"v1GetUserChatRecordListReq": {
"type": "object",
"properties": {
"public_id": {
"type": "string",
"title": "用户id"
},
"username": {
"type": "string",
"title": "用户名称"
},
"phone": {
"type": "string",
"title": "手机号码"
},
"offset": {
"type": "string",
"format": "int64"
},
"limit": {
"type": "string",
"format": "int64"
}
}
},
"v1GetUserChatRecordListResp": {
"type": "object",
"properties": {
"items": {
"type": "array",
"items": {
"type": "object",
"$ref": "#/definitions/v1GetUserChatRecordListRespItem"
}
},
"total": {
"type": "string",
"format": "int64"
}
}
},
"v1GetUserChatRecordListRespItem": {
"type": "object",
"properties": {
"uid": {
"type": "string",
"format": "int64"
},
"public_id": {
"type": "string"
},
"phone": {
"type": "string"
},
"user_name": {
"type": "string"
},
"avatar_url": {
"type": "string"
},
"gender": {
"type": "integer",
"format": "int32"
},
"banner_time": {
"type": "integer",
"format": "int32",
"title": "封禁时间,单位秒"
},
"banned_at": {
"type": "string",
"format": "int64",
"title": "开始封禁时间"
},
"banned_reason": {
"type": "string",
"title": "封禁理由"
},
"operate_name": {
"type": "string",
"title": "运营人员名称"
}
}
},
@ -14390,6 +14634,7 @@
"items": {
"type": "array",
"items": {
"type": "object",
"$ref": "#/definitions/v1GuildAnchorListRespItem"
}
}
@ -14646,6 +14891,7 @@
"ports": {
"type": "array",
"items": {
"type": "object",
"$ref": "#/definitions/v1Ports"
}
},
@ -14784,7 +15030,8 @@
"LoginJumpStateFirst",
"LoginJumpStateAll"
],
"default": "LoginJumpStateNil"
"default": "LoginJumpStateNil",
"title": "- LoginJumpStateFirst: 首次\n - LoginJumpStateAll: 其他"
},
"v1LotteryPoolStatisticsItem": {
"type": "object",
@ -14898,7 +15145,8 @@
"NoticeStatusPublishSuccess",
"NoticeStatusPublishFail"
],
"default": "NoticeStatusNil"
"default": "NoticeStatusNil",
"title": "- NoticeStatusPublish: 发布\n - NoticeStatusNotPublish: 待发布\n - NoticeStatusPublishSuccess: 发布成功\n - NoticeStatusPublishFail: 发布失败"
},
"v1NoticeType": {
"type": "string",
@ -14910,7 +15158,8 @@
"NoticeTypeAllUser",
"NoticeTypeLoginUser"
],
"default": "NoticeTypeNil"
"default": "NoticeTypeNil",
"title": "- NoticeTypeUser: 单个用户\n - NoticeTypeLiveUser: 直播间内用户\n - NoticeTypeOnlineUser: 全部在线用户\n - NoticeTypeAllUser: 全部用户\n - NoticeTypeLoginUser: 正在请求登入(连接)用户"
},
"v1OnList": {
"type": "object",
@ -15252,6 +15501,7 @@
"product_attribute_list": {
"type": "array",
"items": {
"type": "object",
"$ref": "#/definitions/v1ProductAttribute"
}
},
@ -15284,6 +15534,7 @@
"sku_list": {
"type": "array",
"items": {
"type": "object",
"$ref": "#/definitions/v1Sku"
}
},
@ -15370,6 +15621,7 @@
"items": {
"type": "array",
"items": {
"type": "object",
"$ref": "#/definitions/v1QueryActionRecordRespItem"
}
}
@ -15522,6 +15774,7 @@
"items": {
"type": "array",
"items": {
"type": "object",
"$ref": "#/definitions/v1QueryBackgroundUserRespItem"
}
},
@ -15607,6 +15860,7 @@
"items": {
"type": "array",
"items": {
"type": "object",
"$ref": "#/definitions/v1QueryBackgroundUserRoleRespItem"
}
}
@ -15715,6 +15969,7 @@
"items": {
"type": "array",
"items": {
"type": "object",
"$ref": "#/definitions/v1QueryBannerUserSingleListRespItem"
}
}
@ -15805,6 +16060,7 @@
"items": {
"type": "array",
"items": {
"type": "object",
"$ref": "#/definitions/v1QueryBuffRespItem"
}
}
@ -15946,6 +16202,7 @@
"items": {
"type": "array",
"items": {
"type": "object",
"$ref": "#/definitions/v1QueryDesignationRespItem"
}
}
@ -16037,6 +16294,7 @@
"items": {
"type": "array",
"items": {
"type": "object",
"$ref": "#/definitions/v1QueryGiftWallRespItem"
}
}
@ -16258,6 +16516,7 @@
"items": {
"type": "array",
"items": {
"type": "object",
"$ref": "#/definitions/v1QueryHomePageGiftWallRespItem"
}
}
@ -16370,6 +16629,7 @@
"items": {
"type": "array",
"items": {
"type": "object",
"$ref": "#/definitions/v1QueryImSingleChatRecordRespItem"
}
}
@ -16591,6 +16851,7 @@
"items": {
"type": "array",
"items": {
"type": "object",
"$ref": "#/definitions/v1QueryModuleRespItem"
}
}
@ -16637,6 +16898,7 @@
"items": {
"type": "array",
"items": {
"type": "object",
"$ref": "#/definitions/v1QueryPrizeRespItem"
}
}
@ -16753,6 +17015,7 @@
"items": {
"type": "array",
"items": {
"type": "object",
"$ref": "#/definitions/v1QueryProductBugRecordListRespItem"
}
}
@ -16816,6 +17079,7 @@
"items": {
"type": "array",
"items": {
"type": "object",
"$ref": "#/definitions/v1QueryRechargeDiamondComboRespItem"
}
}
@ -16942,6 +17206,7 @@
"items": {
"type": "array",
"items": {
"type": "object",
"$ref": "#/definitions/v1QueryRedemptionCardRespItem"
}
}
@ -17028,6 +17293,7 @@
"items": {
"type": "array",
"items": {
"type": "object",
"$ref": "#/definitions/v1QueryRoleRespItem"
}
}
@ -17207,6 +17473,7 @@
"items": {
"type": "array",
"items": {
"type": "object",
"$ref": "#/definitions/v1QueryTopicRespItem"
}
}
@ -17453,6 +17720,7 @@
"items": {
"type": "array",
"items": {
"type": "object",
"$ref": "#/definitions/v1QueryUserGroupRespItem"
}
}
@ -17474,6 +17742,7 @@
"role_list": {
"type": "array",
"items": {
"type": "object",
"$ref": "#/definitions/v1UserGroupRole"
}
},
@ -17527,6 +17796,7 @@
"items": {
"type": "array",
"items": {
"type": "object",
"$ref": "#/definitions/v1QueryUserGroupUserMapRespItem"
}
}
@ -17573,6 +17843,7 @@
"items": {
"type": "array",
"items": {
"type": "object",
"$ref": "#/definitions/v1QueryUserLotteryStatisticsRespItem"
}
}
@ -17794,6 +18065,7 @@
"items": {
"type": "array",
"items": {
"type": "object",
"$ref": "#/definitions/v1QueryUserRespItem"
}
},
@ -17940,6 +18212,7 @@
"items": {
"type": "array",
"items": {
"type": "object",
"$ref": "#/definitions/v1QueryUserWinningRecordListRespItem"
}
}
@ -18088,6 +18361,7 @@
"items": {
"type": "array",
"items": {
"type": "object",
"$ref": "#/definitions/v1QueryWordRespItem"
}
}
@ -18241,7 +18515,8 @@
},
"weight": {
"type": "integer",
"format": "int32"
"format": "int32",
"title": "权重"
}
}
},
@ -19053,6 +19328,7 @@
"items": {
"type": "array",
"items": {
"type": "object",
"$ref": "#/definitions/v1BatchCreatePrizePoolPrizeReqItem"
}
}
@ -19221,6 +19497,7 @@
"product_attribute_list": {
"type": "array",
"items": {
"type": "object",
"$ref": "#/definitions/v1ProductAttribute"
}
},
@ -19252,6 +19529,7 @@
"sku_list": {
"type": "array",
"items": {
"type": "object",
"$ref": "#/definitions/v1Sku"
}
},
@ -19484,6 +19762,7 @@
"role_list": {
"type": "array",
"items": {
"type": "object",
"$ref": "#/definitions/v1UpdateUserGroupRoleReq"
}
}
@ -19639,7 +19918,8 @@
"type": "object",
"properties": {
"room_no": {
"type": "string"
"type": "string",
"title": "需要校验的房间号"
}
}
},
@ -19647,7 +19927,8 @@
"type": "object",
"properties": {
"use_state": {
"type": "boolean"
"type": "boolean",
"title": "true:为可用状态"
},
"room_no": {
"type": "string"
@ -19785,6 +20066,7 @@
"RoomStatusDisband"
],
"default": "RoomStatusNil",
"description": "- RoomStatusNil: 无状态\n - RoomStatusUp: 上播\n - RoomStatusOut: 下播\n - RoomStatusBan: 禁止\n - RoomStatusDisband: 解散",
"title": "房间状态"
},
"v2RoomType": {
@ -19796,6 +20078,7 @@
"Hall"
],
"default": "RoomTypeNil",
"description": "- Custom: 个人\n - Guild: 公会\n - Hall: 大厅",
"title": "房间类型"
}
}

6452
background_management_gateway/v1/background_management_gateway.swagger.yaml

File diff suppressed because it is too large Load Diff

1325
background_management_gateway/v1/background_management_gateway_grpc.pb.go

File diff suppressed because it is too large Load Diff

1074
background_management_gateway/v1/background_management_gateway_http.pb.go

File diff suppressed because it is too large Load Diff

1509
live/v1/live.pb.go

File diff suppressed because it is too large Load Diff

44
live/v1/live.proto

@ -61,11 +61,11 @@ service Live {
// Deprecated
rpc SetLiveUserAuth (SetLiveUserAuthReq) returns (NilResp);
//
rpc GetLiveUserChatList (GetLiveUserChatListReq) returns (GetLiveUserAuthListResp);
rpc GetLiveUserChatCount (GetLiveUserChatListReq) returns (Total);
//
rpc GetUserChatRecordList (GetUserChatRecordListReq) returns (GetUserChatRecordListResp);
rpc GetUserChatRecordCount (GetUserChatRecordListReq) returns (Total);
//
rpc SetLiveUserChat (SetLiveUserChatReq) returns (NilResp);
rpc SetUserChat (SetUserChatReq) returns (NilResp);
//
rpc SetDefaultHotValue (SetDefaultHotValueReq) returns (NilResp);
//
@ -641,13 +641,20 @@ message GetLiveUserAuthListResp {
repeated LiveUserAuthData items = 1;
}
message SetLiveUserChatReq {
int64 uid = 1;
BlackStatus status = 2;
int64 expire_time = 3;
message SetUserChatReq {
// id
int64 record_id = 1;
//
int64 uid = 2;
optional BlackStatus status = 3;
optional int64 expire_time = 4;
//
int64 user_id = 5;
//
optional string reason = 6;
}
message GetLiveUserChatListReq{
message GetUserChatRecordListReq{
//
int64 offset = 1;
//
@ -656,11 +663,22 @@ message GetLiveUserChatListReq{
repeated int64 uid_list = 3;
}
message GetLiveUserChatListResp {
message GetUserChatRecordListResp {
message Item {
int64 uid = 1;
BlackStatus status = 2;
int64 expire_time = 3;
// id
int64 record_id = 1;
// id
int64 uid = 2;
//
BlackStatus status = 3;
// 0
int64 expire_time = 4;
//
int64 user_id = 5;
int64 created_at = 6;
//
string reason = 7;
}
repeated Item items = 1;
}

90
live/v1/live_grpc.pb.go

@ -45,9 +45,9 @@ const (
Live_GetHotspotList_FullMethodName = "/live.v1.Live/GetHotspotList"
Live_GetLiveUserAuthList_FullMethodName = "/live.v1.Live/GetLiveUserAuthList"
Live_SetLiveUserAuth_FullMethodName = "/live.v1.Live/SetLiveUserAuth"
Live_GetLiveUserChatList_FullMethodName = "/live.v1.Live/GetLiveUserChatList"
Live_GetLiveUserChatCount_FullMethodName = "/live.v1.Live/GetLiveUserChatCount"
Live_SetLiveUserChat_FullMethodName = "/live.v1.Live/SetLiveUserChat"
Live_GetUserChatRecordList_FullMethodName = "/live.v1.Live/GetUserChatRecordList"
Live_GetUserChatRecordCount_FullMethodName = "/live.v1.Live/GetUserChatRecordCount"
Live_SetUserChat_FullMethodName = "/live.v1.Live/SetUserChat"
Live_SetDefaultHotValue_FullMethodName = "/live.v1.Live/SetDefaultHotValue"
Live_GetDefaultHotValueList_FullMethodName = "/live.v1.Live/GetDefaultHotValueList"
Live_GetProxyList_FullMethodName = "/live.v1.Live/GetProxyList"
@ -129,11 +129,11 @@ type LiveClient interface {
// 设置直播用户权限
// Deprecated
SetLiveUserAuth(ctx context.Context, in *SetLiveUserAuthReq, opts ...grpc.CallOption) (*NilResp, error)
// 获取用户禁言状态列表
GetLiveUserChatList(ctx context.Context, in *GetLiveUserChatListReq, opts ...grpc.CallOption) (*GetLiveUserAuthListResp, error)
GetLiveUserChatCount(ctx context.Context, in *GetLiveUserChatListReq, opts ...grpc.CallOption) (*Total, error)
// 获取用户禁言记录列表
GetUserChatRecordList(ctx context.Context, in *GetUserChatRecordListReq, opts ...grpc.CallOption) (*GetUserChatRecordListResp, error)
GetUserChatRecordCount(ctx context.Context, in *GetUserChatRecordListReq, opts ...grpc.CallOption) (*Total, error)
// 设置用户禁言状态
SetLiveUserChat(ctx context.Context, in *SetLiveUserChatReq, opts ...grpc.CallOption) (*NilResp, error)
SetUserChat(ctx context.Context, in *SetUserChatReq, opts ...grpc.CallOption) (*NilResp, error)
// 设置默认热度值
SetDefaultHotValue(ctx context.Context, in *SetDefaultHotValueReq, opts ...grpc.CallOption) (*NilResp, error)
// 获取默认热度值
@ -420,27 +420,27 @@ func (c *liveClient) SetLiveUserAuth(ctx context.Context, in *SetLiveUserAuthReq
return out, nil
}
func (c *liveClient) GetLiveUserChatList(ctx context.Context, in *GetLiveUserChatListReq, opts ...grpc.CallOption) (*GetLiveUserAuthListResp, error) {
out := new(GetLiveUserAuthListResp)
err := c.cc.Invoke(ctx, Live_GetLiveUserChatList_FullMethodName, in, out, opts...)
func (c *liveClient) GetUserChatRecordList(ctx context.Context, in *GetUserChatRecordListReq, opts ...grpc.CallOption) (*GetUserChatRecordListResp, error) {
out := new(GetUserChatRecordListResp)
err := c.cc.Invoke(ctx, Live_GetUserChatRecordList_FullMethodName, in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *liveClient) GetLiveUserChatCount(ctx context.Context, in *GetLiveUserChatListReq, opts ...grpc.CallOption) (*Total, error) {
func (c *liveClient) GetUserChatRecordCount(ctx context.Context, in *GetUserChatRecordListReq, opts ...grpc.CallOption) (*Total, error) {
out := new(Total)
err := c.cc.Invoke(ctx, Live_GetLiveUserChatCount_FullMethodName, in, out, opts...)
err := c.cc.Invoke(ctx, Live_GetUserChatRecordCount_FullMethodName, in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *liveClient) SetLiveUserChat(ctx context.Context, in *SetLiveUserChatReq, opts ...grpc.CallOption) (*NilResp, error) {
func (c *liveClient) SetUserChat(ctx context.Context, in *SetUserChatReq, opts ...grpc.CallOption) (*NilResp, error) {
out := new(NilResp)
err := c.cc.Invoke(ctx, Live_SetLiveUserChat_FullMethodName, in, out, opts...)
err := c.cc.Invoke(ctx, Live_SetUserChat_FullMethodName, in, out, opts...)
if err != nil {
return nil, err
}
@ -694,11 +694,11 @@ type LiveServer interface {
// 设置直播用户权限
// Deprecated
SetLiveUserAuth(context.Context, *SetLiveUserAuthReq) (*NilResp, error)
// 获取用户禁言状态列表
GetLiveUserChatList(context.Context, *GetLiveUserChatListReq) (*GetLiveUserAuthListResp, error)
GetLiveUserChatCount(context.Context, *GetLiveUserChatListReq) (*Total, error)
// 获取用户禁言记录列表
GetUserChatRecordList(context.Context, *GetUserChatRecordListReq) (*GetUserChatRecordListResp, error)
GetUserChatRecordCount(context.Context, *GetUserChatRecordListReq) (*Total, error)
// 设置用户禁言状态
SetLiveUserChat(context.Context, *SetLiveUserChatReq) (*NilResp, error)
SetUserChat(context.Context, *SetUserChatReq) (*NilResp, error)
// 设置默认热度值
SetDefaultHotValue(context.Context, *SetDefaultHotValueReq) (*NilResp, error)
// 获取默认热度值
@ -826,14 +826,14 @@ func (UnimplementedLiveServer) GetLiveUserAuthList(context.Context, *GetLiveUser
func (UnimplementedLiveServer) SetLiveUserAuth(context.Context, *SetLiveUserAuthReq) (*NilResp, error) {
return nil, status.Errorf(codes.Unimplemented, "method SetLiveUserAuth not implemented")
}
func (UnimplementedLiveServer) GetLiveUserChatList(context.Context, *GetLiveUserChatListReq) (*GetLiveUserAuthListResp, error) {
return nil, status.Errorf(codes.Unimplemented, "method GetLiveUserChatList not implemented")
func (UnimplementedLiveServer) GetUserChatRecordList(context.Context, *GetUserChatRecordListReq) (*GetUserChatRecordListResp, error) {
return nil, status.Errorf(codes.Unimplemented, "method GetUserChatRecordList not implemented")
}
func (UnimplementedLiveServer) GetLiveUserChatCount(context.Context, *GetLiveUserChatListReq) (*Total, error) {
return nil, status.Errorf(codes.Unimplemented, "method GetLiveUserChatCount not implemented")
func (UnimplementedLiveServer) GetUserChatRecordCount(context.Context, *GetUserChatRecordListReq) (*Total, error) {
return nil, status.Errorf(codes.Unimplemented, "method GetUserChatRecordCount not implemented")
}
func (UnimplementedLiveServer) SetLiveUserChat(context.Context, *SetLiveUserChatReq) (*NilResp, error) {
return nil, status.Errorf(codes.Unimplemented, "method SetLiveUserChat not implemented")
func (UnimplementedLiveServer) SetUserChat(context.Context, *SetUserChatReq) (*NilResp, error) {
return nil, status.Errorf(codes.Unimplemented, "method SetUserChat not implemented")
}
func (UnimplementedLiveServer) SetDefaultHotValue(context.Context, *SetDefaultHotValueReq) (*NilResp, error) {
return nil, status.Errorf(codes.Unimplemented, "method SetDefaultHotValue not implemented")
@ -1379,56 +1379,56 @@ func _Live_SetLiveUserAuth_Handler(srv interface{}, ctx context.Context, dec fun
return interceptor(ctx, in, info, handler)
}
func _Live_GetLiveUserChatList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(GetLiveUserChatListReq)
func _Live_GetUserChatRecordList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(GetUserChatRecordListReq)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(LiveServer).GetLiveUserChatList(ctx, in)
return srv.(LiveServer).GetUserChatRecordList(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: Live_GetLiveUserChatList_FullMethodName,
FullMethod: Live_GetUserChatRecordList_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(LiveServer).GetLiveUserChatList(ctx, req.(*GetLiveUserChatListReq))
return srv.(LiveServer).GetUserChatRecordList(ctx, req.(*GetUserChatRecordListReq))
}
return interceptor(ctx, in, info, handler)
}
func _Live_GetLiveUserChatCount_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(GetLiveUserChatListReq)
func _Live_GetUserChatRecordCount_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(GetUserChatRecordListReq)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(LiveServer).GetLiveUserChatCount(ctx, in)
return srv.(LiveServer).GetUserChatRecordCount(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: Live_GetLiveUserChatCount_FullMethodName,
FullMethod: Live_GetUserChatRecordCount_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(LiveServer).GetLiveUserChatCount(ctx, req.(*GetLiveUserChatListReq))
return srv.(LiveServer).GetUserChatRecordCount(ctx, req.(*GetUserChatRecordListReq))
}
return interceptor(ctx, in, info, handler)
}
func _Live_SetLiveUserChat_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(SetLiveUserChatReq)
func _Live_SetUserChat_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(SetUserChatReq)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(LiveServer).SetLiveUserChat(ctx, in)
return srv.(LiveServer).SetUserChat(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: Live_SetLiveUserChat_FullMethodName,
FullMethod: Live_SetUserChat_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(LiveServer).SetLiveUserChat(ctx, req.(*SetLiveUserChatReq))
return srv.(LiveServer).SetUserChat(ctx, req.(*SetUserChatReq))
}
return interceptor(ctx, in, info, handler)
}
@ -1923,16 +1923,16 @@ var Live_ServiceDesc = grpc.ServiceDesc{
Handler: _Live_SetLiveUserAuth_Handler,
},
{
MethodName: "GetLiveUserChatList",
Handler: _Live_GetLiveUserChatList_Handler,
MethodName: "GetUserChatRecordList",
Handler: _Live_GetUserChatRecordList_Handler,
},
{
MethodName: "GetLiveUserChatCount",
Handler: _Live_GetLiveUserChatCount_Handler,
MethodName: "GetUserChatRecordCount",
Handler: _Live_GetUserChatRecordCount_Handler,
},
{
MethodName: "SetLiveUserChat",
Handler: _Live_SetLiveUserChat_Handler,
MethodName: "SetUserChat",
Handler: _Live_SetUserChat_Handler,
},
{
MethodName: "SetDefaultHotValue",

Loading…
Cancel
Save