Files
EdgeAPI/internal/db/models/accounts/order_method_model.go

39 lines
1.2 KiB
Go
Raw Normal View History

2022-07-31 19:56:56 +08:00
package accounts
import "github.com/iwind/TeaGo/dbs"
// OrderMethod 订单支付方式
type OrderMethod struct {
Id uint32 `field:"id"` // ID
Name string `field:"name"` // 名称
IsOn bool `field:"isOn"` // 是否启用
Description string `field:"description"` // 描述
ParentCode string `field:"parentCode"` // 内置的父级代号
Code string `field:"code"` // 代号
Url string `field:"url"` // URL
Secret string `field:"secret"` // 密钥
Params dbs.JSON `field:"params"` // 参数
2022-09-28 17:38:52 +08:00
ClientType string `field:"clientType"` // 客户端类型
2022-07-31 19:56:56 +08:00
Order uint32 `field:"order"` // 排序
State uint8 `field:"state"` // 状态
}
type OrderMethodOperator struct {
2022-09-28 17:38:52 +08:00
Id any // ID
Name any // 名称
IsOn any // 是否启用
Description any // 描述
ParentCode any // 内置的父级代号
Code any // 代号
Url any // URL
Secret any // 密钥
Params any // 参数
ClientType any // 客户端类型
Order any // 排序
State any // 状态
2022-07-31 19:56:56 +08:00
}
func NewOrderMethodOperator() *OrderMethodOperator {
return &OrderMethodOperator{}
}