Files
full/module/ec/market/internal/models/market_agency.go

38 lines
2.3 KiB
Go
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
// Models generated by mesh dev cli,@Author: David Yan(david.yan@qq.com).
package models
import (
"time"
"git.apinb.com/bsm-sdk/core/types"
)
// 省代公司
type MarketAgency struct {
types.Std_IICUDS
Name string `gorm:"type:varchar(255);not null;"` // 名称
Avatar string `gorm:"column:avatar;type:varchar(255);default:'';" json:"avatar"` // 头像
Account string `gorm:"column:account;type:varchar(255);default:'';" json:"account"` // 帐号
Phone string `gorm:"column:phone;type:varchar(20);not null;" json:"phone"` // 手机号
Password string `gorm:"column:password;type:varchar(255);" json:"password"` // 密码
Salt string `gorm:"type:varchar(255);default:'';"` // 密码盐值
Email string `gorm:"column:email;type:varchar(255);default:'';" json:"email"` // 邮箱
Country string `gorm:"column:country;type:varchar(255);default:'';" json:"country"` // 国家
Area string `gorm:"column:area;type:varchar(255);default:'';" json:"area"` // 地区
OrgName string `gorm:"column:org_name;type:varchar(255);default:'';" json:"org_name"` // 机构名称
OrgPhoto string `gorm:"column:org_photo;type:varchar(255);default:'';" json:"org_photo"` // 机构照片
IDName string `gorm:"column:id_name;type:varchar(255);default:'';" json:"id_name"` // 证件姓名
IDBefore string `gorm:"column:id_before;type:varchar(255);default:'';" json:"id_before"` // 证件照片
IDAfter string `gorm:"column:id_after;type:varchar(255);default:'';" json:"id_after"` // 证件照片
Remark string `gorm:"type:varchar(255);default:'';"` // 备注
CommissionRate int32 `gorm:"column:commission_rate;default:0;" json:"commission_rate"` // 佣金比例
AgencyType int32 `gorm:"column:agency_type;default:0;" json:"agency_type"` // 服务 状态1代理商 2安装商
Approve int8 `gorm:"column:approve;default:0;" json:"approve"` // 状态:-2,认证未通过0为未认证2为认证成功
LastLoginAt time.Time
}
// TableName .
func (table *MarketAgency) TableName() string {
return "market_agency" //对应数据库表名
}