功能:平台管理员删除商户账号
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user