审核门店

This commit is contained in:
苏尹岚
2020-09-16 14:32:26 +08:00
parent f4796bb9cd
commit 8b1eda705c
5 changed files with 176 additions and 5 deletions

View File

@@ -857,3 +857,49 @@ func (c *StoreController) CreateStoreAudit() {
return retVal, "", err
})
}
// @Title 获取用户申请门店审核
// @Description 获取用户申请门店审核
// @Param token header string true "认证token"
// @Param applyTimeStart query string false "申请开始时间"
// @Param applyTimeEnd query string false "申请结束时间"
// @Param auditTimeStart query string false "审核开始时间"
// @Param auditTimeEnd query string false "审核结束时间"
// @Param name query string false "审核人"
// @Param statuss query string false "审核状态"
// @Param keyword query string true "关键字"
// @Param offset query int false "门店列表起始序号以0开始缺省为0"
// @Param pageSize query int false "门店列表页大小缺省为50-1表示全部"
// @Success 200 {object} controllers.CallResult
// @Failure 200 {object} controllers.CallResult
// @router /GetStoreAudit [get]
func (c *StoreController) GetStoreAudit() {
c.callGetStoreAudit(func(params *tStoreGetStoreAuditParams) (retVal interface{}, errCode string, err error) {
var (
statuss []int
)
if err = jxutils.Strings2Objs(params.Statuss, &statuss); err != nil {
return retVal, "", err
}
retVal, err = cms.GetStoreAudit(params.Ctx, statuss, params.Keyword, params.ApplyTimeStart, params.ApplyTimeEnd, params.AuditTimeStart, params.AuditTimeEnd, params.PageSize, params.Offset)
return retVal, "", err
})
}
// @Title 门店审核
// @Description 门店审核
// @Param token header string true "认证token"
// @Param payload fomData string true "json数据storeaudit对象"
// @Param status formData int false "审核标志1通过-1 不通过"
// @Success 200 {object} controllers.CallResult
// @Failure 200 {object} controllers.CallResult
// @router /StoreAudit [post]
func (c *StoreController) StoreAudit() {
c.callStoreAudit(func(params *tStoreStoreAuditParams) (retVal interface{}, errCode string, err error) {
var stores []*model.StoreAudit
if err = utils.UnmarshalUseNumber([]byte(params.Payload), stores); err == nil {
// err = cms.CreateStoreAudit(params.Ctx, store)
}
return retVal, "", err
})
}