chore: 并入 iotlcm-openapi 历史到 openapi/(原提交 3b05d5a)
This commit is contained in:
@@ -0,0 +1,178 @@
|
||||
// Package iotin
|
||||
// @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 model
|
||||
|
||||
import (
|
||||
"context"
|
||||
"git.5iot.com/iotlcm-public/iotlcm-openapi/internal/consts"
|
||||
"git.5iot.com/iotlcm-public/iotlcm-openapi/internal/library/xgorm/hook"
|
||||
"git.5iot.com/iotlcm-public/iotlcm-openapi/internal/model/entity"
|
||||
"git.5iot.com/iotlcm-public/iotlcm-openapi/internal/model/request"
|
||||
"slices"
|
||||
|
||||
"github.com/gogf/gf/v2/errors/gerror"
|
||||
"github.com/gogf/gf/v2/os/gtime"
|
||||
)
|
||||
|
||||
// TCustWithdrawAccountUpdateFields 修改客户提现账户表字段过滤
|
||||
type TCustWithdrawAccountUpdateFields struct {
|
||||
DeptId int `json:"deptId" dc:"企业客户ID"`
|
||||
AccountType int `json:"accountType" dc:"提现账号类型,1:支付宝,2:微信"`
|
||||
AccountNo string `json:"accountNo" dc:"账号"`
|
||||
AccountName string `json:"accountName" dc:"账户名称/真实姓名"`
|
||||
Mobile string `json:"mobile" dc:"手机号"`
|
||||
IsDefault int `json:"isDefault" dc:"是否默认账号:0-否 1-是"`
|
||||
Enabled int `json:"enabled" dc:"是否启用:0-未启用 1-启用"`
|
||||
Status int `json:"status" dc:"状态:0-禁用 1-正常"`
|
||||
TenantId string `json:"tenantId" dc:"租户ID"`
|
||||
UpdatedBy int64 `json:"updatedBy" dc:"更新者ID"`
|
||||
UpdatedAt *gtime.Time `json:"updatedAt" dc:"更新时间"`
|
||||
}
|
||||
|
||||
// TCustWithdrawAccountInsertFields 新增客户提现账户表字段过滤
|
||||
type TCustWithdrawAccountInsertFields struct {
|
||||
DeptId int `json:"deptId" dc:"企业客户ID"`
|
||||
AccountType int `json:"accountType" dc:"提现账号类型,1:支付宝,2:微信"`
|
||||
AccountNo string `json:"accountNo" dc:"账号"`
|
||||
AccountName string `json:"accountName" dc:"账户名称/真实姓名"`
|
||||
Mobile string `json:"mobile" dc:"手机号"`
|
||||
IsDefault int `json:"isDefault" dc:"是否默认账号:0-否 1-是"`
|
||||
Enabled int `json:"enabled" dc:"是否启用:0-未启用 1-启用"`
|
||||
Status int `json:"status" dc:"状态:0-禁用 1-正常"`
|
||||
TenantId string `json:"tenantId" dc:"租户ID"`
|
||||
CreatedDept int64 `json:"createdDept" dc:"创建部门ID"`
|
||||
CreatedBy int64 `json:"createdBy" dc:"创建者ID"`
|
||||
CreatedAt *gtime.Time `json:"createdAt" dc:"创建时间"`
|
||||
}
|
||||
|
||||
// TCustWithdrawAccountEditParam 修改/新增客户提现账户表
|
||||
type TCustWithdrawAccountEditParam struct {
|
||||
//entity.TCustWithdrawAccount
|
||||
Id int64 `json:"id" dc:"主键ID"`
|
||||
DeptId *int `json:"deptId" dc:"企业客户ID"`
|
||||
AccountType *int `json:"accountType" dc:"提现账号类型,1:支付宝,2:微信"`
|
||||
AccountNo *string `json:"accountNo" dc:"账号"`
|
||||
AccountName *string `json:"accountName" dc:"账户名称/真实姓名"`
|
||||
Mobile *string `json:"mobile" dc:"手机号"`
|
||||
IsDefault *int `json:"isDefault" dc:"是否默认账号:0-否 1-是"`
|
||||
Enabled *int `json:"enabled" dc:"是否启用:0-未启用 1-启用"`
|
||||
Status *int `json:"status" dc:"状态:0-禁用 1-正常"`
|
||||
TenantId *string `json:"tenantId" dc:"租户ID"`
|
||||
CreatedDept *int64 `json:"createdDept" dc:"创建部门ID"`
|
||||
CreatedBy *int64 `json:"createdBy" dc:"创建者ID"`
|
||||
CreatedAt *gtime.Time `json:"createdAt" dc:"创建时间"`
|
||||
UpdatedBy *int64 `json:"updatedBy" dc:"更新者ID"`
|
||||
UpdatedAt *gtime.Time `json:"updatedAt" dc:"更新时间"`
|
||||
}
|
||||
|
||||
func (in *TCustWithdrawAccountEditParam) Filter(ctx context.Context) (err error) {
|
||||
|
||||
return
|
||||
}
|
||||
|
||||
type TCustWithdrawAccountEditModel struct{}
|
||||
|
||||
// TCustWithdrawAccountDeleteParam 删除客户提现账户表
|
||||
type TCustWithdrawAccountDeleteParam struct {
|
||||
Id interface{} `json:"id" v:"required#主键ID不能为空" dc:"主键ID"`
|
||||
}
|
||||
|
||||
func (in *TCustWithdrawAccountDeleteParam) Filter(ctx context.Context) (err error) {
|
||||
return
|
||||
}
|
||||
|
||||
type TCustWithdrawAccountDeleteModel struct{}
|
||||
|
||||
// TCustWithdrawAccountViewParam 获取指定客户提现账户表信息
|
||||
type TCustWithdrawAccountViewParam struct {
|
||||
Id int64 `json:"id" v:"required#主键ID不能为空" dc:"主键ID"`
|
||||
}
|
||||
|
||||
func (in *TCustWithdrawAccountViewParam) Filter(ctx context.Context) (err error) {
|
||||
return
|
||||
}
|
||||
|
||||
type TCustWithdrawAccountViewModel struct {
|
||||
entity.TCustWithdrawAccount
|
||||
CreatedBySumma *hook.MemberSumma `json:"createdBySumma" dc:"创建者ID摘要信息"`
|
||||
UpdatedBySumma *hook.MemberSumma `json:"updatedBySumma" dc:"更新者ID摘要信息"`
|
||||
}
|
||||
|
||||
// TCustWithdrawAccountListParam 获取客户提现账户表列表
|
||||
type TCustWithdrawAccountListParam struct {
|
||||
request.PageInfo
|
||||
Id int64 `json:"id" dc:"主键ID"`
|
||||
Status int `json:"status" dc:"状态:0-禁用 1-正常"`
|
||||
CreatedAt []*gtime.Time `json:"createdAt" dc:"创建时间"`
|
||||
}
|
||||
|
||||
func (in *TCustWithdrawAccountListParam) Filter(ctx context.Context) (err error) {
|
||||
return
|
||||
}
|
||||
|
||||
type TCustWithdrawAccountListModel struct {
|
||||
Id int64 `json:"id" dc:"主键ID"`
|
||||
DeptId int `json:"deptId" dc:"企业客户ID"`
|
||||
AccountType int `json:"accountType" dc:"提现账号类型,1:支付宝,2:微信"`
|
||||
AccountName string `json:"accountName" dc:"账户名称/真实姓名"`
|
||||
Mobile string `json:"mobile" dc:"手机号"`
|
||||
IsDefault int `json:"isDefault" dc:"是否默认账号:0-否 1-是"`
|
||||
Enabled int `json:"enabled" dc:"是否启用:0-未启用 1-启用"`
|
||||
Status int `json:"status" dc:"状态:0-禁用 1-正常"`
|
||||
TenantId string `json:"tenantId" dc:"租户ID"`
|
||||
CreatedDept int64 `json:"createdDept" dc:"创建部门ID"`
|
||||
CreatedBy int64 `json:"createdBy" dc:"创建者ID"`
|
||||
CreatedBySumma *hook.MemberSumma `json:"createdBySumma" dc:"创建者ID摘要信息"`
|
||||
CreatedAt *gtime.Time `json:"createdAt" dc:"创建时间"`
|
||||
UpdatedBy int64 `json:"updatedBy" dc:"更新者ID"`
|
||||
UpdatedBySumma *hook.MemberSumma `json:"updatedBySumma" dc:"更新者ID摘要信息"`
|
||||
UpdatedAt *gtime.Time `json:"updatedAt" dc:"更新时间"`
|
||||
}
|
||||
|
||||
// TCustWithdrawAccountExportModel 导出客户提现账户表
|
||||
type TCustWithdrawAccountExportModel struct {
|
||||
Id int64 `json:"id" dc:"主键ID"`
|
||||
DeptId int `json:"deptId" dc:"企业客户ID"`
|
||||
AccountType int `json:"accountType" dc:"提现账号类型,1:支付宝,2:微信"`
|
||||
AccountName string `json:"accountName" dc:"账户名称/真实姓名"`
|
||||
Mobile string `json:"mobile" dc:"手机号"`
|
||||
IsDefault int `json:"isDefault" dc:"是否默认账号:0-否 1-是"`
|
||||
Enabled int `json:"enabled" dc:"是否启用:0-未启用 1-启用"`
|
||||
Status int `json:"status" dc:"状态:0-禁用 1-正常"`
|
||||
TenantId string `json:"tenantId" dc:"租户ID"`
|
||||
CreatedDept int64 `json:"createdDept" dc:"创建部门ID"`
|
||||
CreatedBy int64 `json:"createdBy" dc:"创建者ID"`
|
||||
CreatedAt *gtime.Time `json:"createdAt" dc:"创建时间"`
|
||||
UpdatedBy int64 `json:"updatedBy" dc:"更新者ID"`
|
||||
UpdatedAt *gtime.Time `json:"updatedAt" dc:"更新时间"`
|
||||
}
|
||||
|
||||
// TCustWithdrawAccountStatusParam 更新客户提现账户表状态
|
||||
type TCustWithdrawAccountStatusParam struct {
|
||||
Id int64 `json:"id" v:"required#主键ID不能为空" dc:"主键ID"`
|
||||
Status int `json:"status" dc:"状态"`
|
||||
}
|
||||
|
||||
func (in *TCustWithdrawAccountStatusParam) Filter(ctx context.Context) (err error) {
|
||||
if in.Id <= 0 {
|
||||
err = gerror.New("主键ID不能为空")
|
||||
return
|
||||
}
|
||||
|
||||
if in.Status <= 0 {
|
||||
err = gerror.New("状态不能为空")
|
||||
return
|
||||
}
|
||||
|
||||
if !slices.Contains(consts.StatusSlice, in.Status) {
|
||||
err = gerror.New("状态不正确")
|
||||
return
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
type TCustWithdrawAccountStatusModel struct{}
|
||||
Reference in New Issue
Block a user