功能:平台管理员删除商户账号

This commit is contained in:
yml2213
2026-08-13 14:35:30 +08:00
parent a637101ca8
commit 91c055c130
6 changed files with 99 additions and 0 deletions
+9
View File
@@ -95,3 +95,12 @@ func (h *UserHandler) DeletePlatformAdmin(c *gin.Context) {
}
response.OK(c, nil)
}
func (h *UserHandler) DeleteMerchantAccount(c *gin.Context) {
id, _ := strconv.ParseUint(c.Param("id"), 10, 64)
if err := h.svc.DeleteMerchantAccount(uint(id), middleware.GetUserID(c)); err != nil {
response.BadRequest(c, err.Error())
return
}
response.OK(c, nil)
}