billdrtail
This commit is contained in:
28
controllers/bill_controller.go
Normal file
28
controllers/bill_controller.go
Normal 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
|
||||
})
|
||||
}
|
||||
@@ -177,20 +177,6 @@ func (c *Auth2Controller) UpdateUserByMiniInfo() {
|
||||
})
|
||||
}
|
||||
|
||||
// @Title 禁用用户(删除离职用户信息)
|
||||
// @Description 禁用用户(删除离职用户信息)
|
||||
// @Param token header string true "认证token"
|
||||
// @Param userID query string true "用户userID"
|
||||
// @Success 200 {object} controllers.CallResult
|
||||
// @Failure 200 {object} controllers.CallResult
|
||||
// @router /DeleteUserInfo [delete]
|
||||
func (c *User2Controller) DeleteUserInfo() {
|
||||
c.callDeleteUserInfo(func(params *tUser2DeleteUserInfoParams) (retVal interface{}, errCode string, err error) {
|
||||
err = cms.DeleteUserInfo(params.Ctx, params.UserID)
|
||||
return retVal, "", err
|
||||
})
|
||||
}
|
||||
|
||||
// @Title 会员充值
|
||||
// @Description 会员充值
|
||||
// @Param token header string false "认证token"
|
||||
|
||||
Reference in New Issue
Block a user