- get funs for jd bad comments.
This commit is contained in:
@@ -169,3 +169,34 @@ func (c *StoreController) DeleteStoreVendorMap() {
|
||||
return retVal, "", err
|
||||
})
|
||||
}
|
||||
|
||||
// @Title 得到门店差评总数
|
||||
// @Description 得到门店差评总数,此函数为兼容老系统,之后会被替换
|
||||
// @Param token header string true "认证token"
|
||||
// @Param jxStoreId query int true "门店ID"
|
||||
// @Success 200 {object} controllers.CallResult
|
||||
// @Failure 200 {object} controllers.CallResult
|
||||
// @router /TmpGetJxBadCommentsNo [get]
|
||||
func (c *StoreController) TmpGetJxBadCommentsNo() {
|
||||
c.callTmpGetJxBadCommentsNo(func(params *tStoreTmpGetJxBadCommentsNoParams) (retVal interface{}, errCode string, err error) {
|
||||
retVal, err = cms.TmpGetJxBadCommentsNo(params.JxStoreId)
|
||||
return retVal, "", err
|
||||
})
|
||||
}
|
||||
|
||||
// @Title 得到门店差评总数
|
||||
// @Description 得到门店差评总数
|
||||
// @Param token header string true "认证token"
|
||||
// @Param jxStoreId query int true "门店ID"
|
||||
// @Param type query int true "评论类型,0:差评,1:所有"
|
||||
// @Param page query int true "起始页,从1开始"
|
||||
// @Param size query int true "页大小"
|
||||
// @Success 200 {object} controllers.CallResult
|
||||
// @Failure 200 {object} controllers.CallResult
|
||||
// @router /TmpGetJxBadCommentsByStoreId [get]
|
||||
func (c *StoreController) TmpGetJxBadCommentsByStoreId() {
|
||||
c.callTmpGetJxBadCommentsByStoreId(func(params *tStoreTmpGetJxBadCommentsByStoreIdParams) (retVal interface{}, errCode string, err error) {
|
||||
retVal, err = cms.TmpGetJxBadCommentsByStoreId(params.JxStoreId, params.Page, params.Size, params.Type)
|
||||
return retVal, "", err
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user