Ver Fonte

refactor(api): 修改删除游戏屏蔽规则请求参数名称

将 DelGameShieldRequest 结构体中的 RuleId 字段从 "rule_id"重命名为 "id",
以简化参数名称并提高代码一致性。
fusu há 3 meses atrás
pai
commit
5033edb036
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      api/v1/GameShield.go

+ 1 - 1
api/v1/GameShield.go

@@ -44,5 +44,5 @@ type KeyAndFieldResponse struct {
 }
 
 type DelGameShieldRequest struct {
-	RuleId int `json:"rule_id" form:"rule_id"`
+	RuleId int `json:"id" form:"id"`
 }