- get funs for jd bad comments.

This commit is contained in:
gazebo
2018-09-29 17:23:54 +08:00
parent a60ca564fd
commit 2a4f26d774
4 changed files with 112 additions and 18 deletions

View File

@@ -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
})
}