This commit is contained in:
suyl
2021-08-30 15:24:15 +08:00
parent c5eb30a2a9
commit 49dd477045
5 changed files with 111 additions and 1 deletions

View File

@@ -1165,3 +1165,33 @@ func (c *StoreController) GetStoreMapAudit() {
return retVal, "", err
})
}
// @Title 查询品牌用户
// @Description 查询品牌用户
// @Param token header string true "认证token"
// @Param brandID query int true "brandID"
// @Success 200 {object} controllers.CallResult
// @Failure 200 {object} controllers.CallResult
// @router /GetBrandUser [get]
func (c *StoreController) GetBrandUser() {
c.callGetBrandUser(func(params *tStoreGetBrandUserParams) (retVal interface{}, errCode string, err error) {
retVal, err = cms.GetBrandUser(params.Ctx, params.BrandID)
return retVal, "", err
})
}
// @Title 修改品牌用户
// @Description 修改品牌用户
// @Param token header string true "认证token"
// @Param brandID formData int true "brandID"
// @Param userID formData string true "userID"
// @Param isDel formData bool true "true是删除false是添加"
// @Success 200 {object} controllers.CallResult
// @Failure 200 {object} controllers.CallResult
// @router /UpdateBrandUser [post]
func (c *StoreController) UpdateBrandUser() {
c.callUpdateBrandUser(func(params *tStoreUpdateBrandUserParams) (retVal interface{}, errCode string, err error) {
err = cms.UpdateBrandUser(params.Ctx, params.BrandID, params.UserID, params.IsDel)
return retVal, "", err
})
}