re_enterprise.go 1.3 KB

123456789101112131415161718
  1. package vo
  2. import "time"
  3. type ReEnterprise struct {
  4. EnterpriseID string `gorm:"column:enterprise_id"` // 企业id,用户ID的生成规则为:1(企业用户代码)+分秒数字+四位随机数字
  5. Industry int64 `gorm:"column:industry"` // 行业,1-14分别代表能源、化工、材料、机械设备/军工、企业服务/造纸印刷、运输设备、旅游酒店、媒体/信息通信服务、批发/零售、消费品、卫生保健/医疗、金融、建材/建筑/房地产、公共事业
  6. BusinessName string `gorm:"column:business_name"` // 公司或组织名称
  7. UserID int64 `gorm:"column:user_id"` // 对应用户id
  8. Balance float64 `gorm:"column:balance"` // 账户余额
  9. FrozenBalance float64 `gorm:"column:frozen_balance"` // 冻结余额
  10. AvailableBalance float64 `gorm:"column:available_balance"` // 可用余额
  11. BillableAmount float64 `gorm:"column:billable_amount"` // 可开票金额
  12. Invoicing float64 `gorm:"column:invoicing"` // 开票中金额
  13. Recharging float64 `gorm:"column:recharging"` // 充值中金额
  14. CreatedAt time.Time `gorm:"column:created_at"` // 创建时间
  15. UpdatedAt time.Time `gorm:"column:updated_at"` // 更新时间
  16. }