aa
This commit is contained in:
@@ -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
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user