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:
parent
67e53591cd
commit
cb6b85f727
@ -12,7 +12,7 @@ type BatchBanAccountRequest struct {
|
|||||||
Gkey string `position:"Body" field:"gkey"`
|
Gkey string `position:"Body" field:"gkey"`
|
||||||
Time string `position:"Body" field:"time"`
|
Time string `position:"Body" field:"time"`
|
||||||
Sign string `position:"Body" field:"sign"`
|
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
|
Banduration int64 `position:"Body" field:"banduration"` // 封禁时长(分钟),必须 >0
|
||||||
Banremark string `position:"Body" field:"banremark"` // 封禁备注(写入 gr_block 留痕)
|
Banremark string `position:"Body" field:"banremark"` // 封禁备注(写入 gr_block 留痕)
|
||||||
OpAdmin string `position:"Body" field:"op_admin"` // 操作人(拼进备注留痕)
|
OpAdmin string `position:"Body" field:"op_admin"` // 操作人(拼进备注留痕)
|
||||||
@ -20,8 +20,8 @@ type BatchBanAccountRequest struct {
|
|||||||
|
|
||||||
// BanAccountItem 待封角色(Items 的 JSON 元素)
|
// BanAccountItem 待封角色(Items 的 JSON 元素)
|
||||||
type BanAccountItem struct {
|
type BanAccountItem struct {
|
||||||
Gkey string `json:"gkey"` // 游戏标识
|
GameSign string `json:"game_sign"` // 根游戏标识
|
||||||
Sid string `json:"sid"` // 区服 ID
|
ServerId string `json:"server_id"` // 区服 ID
|
||||||
Uid int64 `json:"uid"` // 高热用户 ID
|
Uid int64 `json:"uid"` // 高热用户 ID
|
||||||
UserName string `json:"user_name"` // 高热账号
|
UserName string `json:"user_name"` // 高热账号
|
||||||
RoleId string `json:"role_id"` // 角色 ID
|
RoleId string `json:"role_id"` // 角色 ID
|
||||||
|
|||||||
@ -12,12 +12,12 @@ type RoleBanStatusRequest struct {
|
|||||||
Gkey string `position:"Body" field:"gkey"`
|
Gkey string `position:"Body" field:"gkey"`
|
||||||
Time string `position:"Body" field:"time"`
|
Time string `position:"Body" field:"time"`
|
||||||
Sign string `position:"Body" field:"sign"`
|
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 元素)
|
// RoleBanQuery 待查角色(Roles 的 JSON 元素)
|
||||||
type RoleBanQuery struct {
|
type RoleBanQuery struct {
|
||||||
Gkey string `json:"gkey"` // 游戏标识
|
GameSign string `json:"game_sign"` // 根游戏标识
|
||||||
RoleId string `json:"role_id"` // 角色 ID
|
RoleId string `json:"role_id"` // 角色 ID
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -26,8 +26,8 @@ type ViolationChatItem struct {
|
|||||||
Roleid string `json:"roleid"` // 角色 ID
|
Roleid string `json:"roleid"` // 角色 ID
|
||||||
Uname string `json:"uname"` // 角色名
|
Uname string `json:"uname"` // 角色名
|
||||||
Content string `json:"content"` // 聊天内容
|
Content string `json:"content"` // 聊天内容
|
||||||
Gkey string `json:"gkey"` // 游戏标识
|
GameSign string `json:"game_sign"` // 根游戏标识
|
||||||
Sid string `json:"sid"` // 区服
|
ServerId string `json:"server_id"` // 区服
|
||||||
Type int64 `json:"type"` // 消息类型
|
Type int64 `json:"type"` // 消息类型
|
||||||
ChatTime string `json:"chat_time"` // 聊天时间 Y-m-d H:i:s
|
ChatTime string `json:"chat_time"` // 聊天时间 Y-m-d H:i:s
|
||||||
Imei string `json:"imei"` // 设备号
|
Imei string `json:"imei"` // 设备号
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user