chore: 并入 iotlcm-admin-svr 历史到 admin-svr/(原提交 49818c6)
This commit is contained in:
@@ -0,0 +1,63 @@
|
||||
// Package gen
|
||||
// @Link https://github.com/xiujiecn/xiu-admin
|
||||
// @Copyright Copyright (c) 2026 LiXiujie
|
||||
// @Author Lxj <xxx@example.com>
|
||||
// @License https://github.com/xiujiecn/xiu-admin/blob/master/LICENSE
|
||||
// @AutoGenerate Version
|
||||
package common
|
||||
|
||||
import (
|
||||
"context"
|
||||
v1 "git.5iot.com/iotlcm-public/iotlcm-admin-svr/api/common/v1"
|
||||
"git.5iot.com/iotlcm-public/iotlcm-admin-svr/internal/model"
|
||||
"git.5iot.com/iotlcm-public/iotlcm-admin-svr/internal/service"
|
||||
)
|
||||
|
||||
// List 查看可提现变动明细表列表
|
||||
func (c *ControllerV1) TFinWithdrawableChangeList(ctx context.Context, req *v1.TFinWithdrawableChangeListReq) (res *v1.TFinWithdrawableChangeListRes, err error) {
|
||||
list, totalCount, err := service.CommonTFinWithdrawableChange().List(ctx, &req.TFinWithdrawableChangeListParam)
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
|
||||
if list == nil {
|
||||
list = []*model.TFinWithdrawableChangeListModel{}
|
||||
}
|
||||
|
||||
res = new(v1.TFinWithdrawableChangeListRes)
|
||||
res.Items = list
|
||||
res.PageResult.Page = req.Page
|
||||
res.PageResult.PageSize = req.PageSize
|
||||
res.PageResult.Total = totalCount
|
||||
return
|
||||
}
|
||||
|
||||
// Export 导出可提现变动明细表列表
|
||||
func (c *ControllerV1) TFinWithdrawableChangeExport(ctx context.Context, req *v1.TFinWithdrawableChangeExportReq) (res *v1.TFinWithdrawableChangeExportRes, err error) {
|
||||
err = service.CommonTFinWithdrawableChange().Export(ctx, &req.TFinWithdrawableChangeListParam)
|
||||
return
|
||||
}
|
||||
|
||||
// Edit 更新可提现变动明细表
|
||||
func (c *ControllerV1) TFinWithdrawableChangeEdit(ctx context.Context, req *v1.TFinWithdrawableChangeEditReq) (res *v1.TFinWithdrawableChangeEditRes, err error) {
|
||||
err = service.CommonTFinWithdrawableChange().Edit(ctx, &req.TFinWithdrawableChangeEditParam)
|
||||
return
|
||||
}
|
||||
|
||||
// View 获取指定可提现变动明细表信息
|
||||
func (c *ControllerV1) TFinWithdrawableChangeView(ctx context.Context, req *v1.TFinWithdrawableChangeViewReq) (res *v1.TFinWithdrawableChangeViewRes, err error) {
|
||||
data, err := service.CommonTFinWithdrawableChange().View(ctx, &req.TFinWithdrawableChangeViewParam)
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
|
||||
res = new(v1.TFinWithdrawableChangeViewRes)
|
||||
res.TFinWithdrawableChangeViewModel = data
|
||||
return
|
||||
}
|
||||
|
||||
// Delete 删除可提现变动明细表
|
||||
func (c *ControllerV1) TFinWithdrawableChangeDelete(ctx context.Context, req *v1.TFinWithdrawableChangeDeleteReq) (res *v1.TFinWithdrawableChangeDeleteRes, err error) {
|
||||
err = service.CommonTFinWithdrawableChange().Delete(ctx, &req.TFinWithdrawableChangeDeleteParam)
|
||||
return
|
||||
}
|
||||
Reference in New Issue
Block a user