🎨今儿不想写了

This commit is contained in:
coward
2024-03-11 17:26:41 +08:00
parent ffb3b69114
commit 7716a15dbb
3 changed files with 42 additions and 0 deletions

View File

@@ -32,3 +32,16 @@ func (clients) List(c *gin.Context) {
utils.GinResponse(c).OkWithPage(data, total, p.Current, p.Size)
}
// Save
// @description: 新增/更新客户端
// @receiver clients
// @param c
func (clients) Save(c *gin.Context) {
var p param.SaveClient
if err := c.ShouldBind(&p); err != nil {
utils.GinResponse(c).FailedWithErr("参数错误", err)
return
}
}