支付模块
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 lines
1.4 KiB

  1. package model
  2. import "time"
  3. type PayChannel struct {
  4. Id int `json:"id" xorm:"not null pk autoincr INT(11)"`
  5. Name string `json:"name" xorm:"not null comment('渠道名称') VARCHAR(255)"`
  6. IsUse int `json:"is_use" xorm:"not null default 1 comment('是否开启;1:开启;0:关闭') TINYINT(1)"`
  7. ThirdPartyId string `json:"third_party_id" xorm:"not null comment('第三方聚合支付的渠道id') VARCHAR(20)"`
  8. Kind string `json:"kind" xorm:"not null comment('渠道种类(self:自有支付 zhiYing:智莺支付 thirdParty 第三方聚合支付 )') VARCHAR(255)"`
  9. ModuleIdentifier string `json:"module_identifier" xorm:"not null comment('模块标识符') VARCHAR(255)"`
  10. ModuleName string `json:"module_name" xorm:"not null comment('模块名称') VARCHAR(255)"`
  11. CommissionRate string `json:"commission_rate" xorm:"not null comment('抽成比例(千分之)') VARCHAR(255)"`
  12. Memo string `json:"memo" xorm:"not null comment('备注') VARCHAR(255)"`
  13. Ext string `json:"ext" xorm:"comment('拓展字段(json存储)') TEXT"`
  14. CreateAt time.Time `json:"create_at" xorm:"default 'CURRENT_TIMESTAMP' comment('创建时间') TIMESTAMP"`
  15. UpdateAt time.Time `json:"update_at" xorm:"default 'CURRENT_TIMESTAMP' comment('更新时间') TIMESTAMP"`
  16. }