Files
jx-callback/controllers/bill_controller.go
2025-11-21 09:13:51 +08:00

29 lines
1.1 KiB
Go
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
package controllers
import (
"git.rosy.net.cn/jx-callback/business/jxstore/financial"
beego "github.com/astaxie/beego/adapter"
)
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
})
}