6
0

refactor(chat): 违规封禁三接口业务字段 gkey/sid 改规范名 game_sign/server_id

统一根游戏标识=game_sign、区服id=server_id(对齐DMS命名):
- BanAccountItem/ViolationChatItem: Gkey/Sid → GameSign/ServerId(json game_sign/server_id)
- RoleBanQuery: Gkey → GameSign
- 签名调用方字段 Request.Gkey(field:gkey,值=center-api)不动;chat_records(独立接口)不动
This commit is contained in:
许 洋 2026-07-22 17:02:25 +08:00
parent 67e53591cd
commit cb6b85f727
3 changed files with 8 additions and 8 deletions

View File

@ -12,7 +12,7 @@ type BatchBanAccountRequest struct {
Gkey string `position:"Body" field:"gkey"`
Time string `position:"Body" field:"time"`
Sign string `position:"Body" field:"sign"`
Items string `position:"Body" field:"items"` // JSON 数组字符串,每项 {gkey,sid,uid,user_name,role_id,role_name,game_id},单次最多 200 条
Items string `position:"Body" field:"items"` // JSON 数组字符串,每项 {game_sign,server_id,uid,user_name,role_id,role_name,game_id},单次最多 200 条
Banduration int64 `position:"Body" field:"banduration"` // 封禁时长(分钟),必须 >0
Banremark string `position:"Body" field:"banremark"` // 封禁备注(写入 gr_block 留痕)
OpAdmin string `position:"Body" field:"op_admin"` // 操作人(拼进备注留痕)
@ -20,8 +20,8 @@ type BatchBanAccountRequest struct {
// BanAccountItem 待封角色Items 的 JSON 元素)
type BanAccountItem struct {
Gkey string `json:"gkey"` // 游戏标识
Sid string `json:"sid"` // 区服 ID
GameSign string `json:"game_sign"` // 根游戏标识
ServerId string `json:"server_id"` // 区服 ID
Uid int64 `json:"uid"` // 高热用户 ID
UserName string `json:"user_name"` // 高热账号
RoleId string `json:"role_id"` // 角色 ID

View File

@ -12,13 +12,13 @@ type RoleBanStatusRequest struct {
Gkey string `position:"Body" field:"gkey"`
Time string `position:"Body" field:"time"`
Sign string `position:"Body" field:"sign"`
Roles string `position:"Body" field:"roles"` // JSON 数组字符串,每项 {gkey,role_id},单次最多 500 条
Roles string `position:"Body" field:"roles"` // JSON 数组字符串,每项 {game_sign,role_id},单次最多 500 条
}
// RoleBanQuery 待查角色Roles 的 JSON 元素)
type RoleBanQuery struct {
Gkey string `json:"gkey"` // 游戏标识
RoleId string `json:"role_id"` // 角色 ID
GameSign string `json:"game_sign"` // 根游戏标识
RoleId string `json:"role_id"` // 角色 ID
}
// RoleBanStatusItem 单角色状态1=正常 2=封禁/禁言)

View File

@ -26,8 +26,8 @@ type ViolationChatItem struct {
Roleid string `json:"roleid"` // 角色 ID
Uname string `json:"uname"` // 角色名
Content string `json:"content"` // 聊天内容
Gkey string `json:"gkey"` // 游戏标识
Sid string `json:"sid"` // 区服
GameSign string `json:"game_sign"` // 根游戏标识
ServerId string `json:"server_id"` // 区服
Type int64 `json:"type"` // 消息类型
ChatTime string `json:"chat_time"` // 聊天时间 Y-m-d H:i:s
Imei string `json:"imei"` // 设备号