billdrtail

This commit is contained in:
苏尹岚
2020-10-22 15:10:06 +08:00
parent 777bdc6d93
commit b9c49f75a5
7 changed files with 105 additions and 166 deletions

View File

@@ -0,0 +1,28 @@
package controllers
import (
"git.rosy.net.cn/jx-callback/business/jxstore/financial"
"github.com/astaxie/beego"
)
type BillController struct {
beego.Controller
}
// @Title 查看用户账户收支明细
// @Description 查看用户账户收支明细
// @Param token header string true "认证token"
// @Param userID query string true "用户ID"
// @Param fromTime query string false "开始时间"
// @Param toTime query string false "结束时间"
// @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 /GetUserBillDetail [get]
func (c *BillController) GetUserBillDetail() {
c.callGetUserBillDetail(func(params *tBillGetUserBillDetailParams) (retVal interface{}, errCode string, err error) {
retVal, err = financial.GetUserBillDetail(params.Ctx, params.UserID, params.FromTime, params.ToTime, params.PageSize, params.Offset)
return retVal, "", err
})
}