From 9ae1c96a6b5d6677c2f4a001a5cf346671f3fde6 Mon Sep 17 00:00:00 2001 From: meixiongfeng <766881921@qq.com> Date: Mon, 20 Nov 2023 10:12:55 +0800 Subject: [PATCH] =?UTF-8?q?struct=20=E6=A0=87=E7=AD=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- modules/web/api_account_ban.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/modules/web/api_account_ban.go b/modules/web/api_account_ban.go index 9f262966d..3d3aef58d 100644 --- a/modules/web/api_account_ban.go +++ b/modules/web/api_account_ban.go @@ -10,9 +10,9 @@ import ( // 封号或禁言 type AccountBanReq struct { - Uid string `json:"uid"` // uid - iType int32 // 0 封号 1 禁言 - iValue int32 // 类型对应的值 + Uid string `json:"uid"` // uid + IType int32 `json:"iType"` // 0 封号 1 禁言 + Value int32 `json:"iValue"` // 类型对应的值 } //禁封消息 @@ -32,8 +32,8 @@ func (this *Api_Comp) AccountBanNotify(c *engine.Context) { rpcMsg := &pb.RPCAccountBan{ Uid: req.Uid, - Key: req.iType, - Value: req.iValue, + Key: req.IType, + Value: req.Value, } if _, err = this.module.service.RpcGo( context.Background(),