feat:完善入驻信息管理
This commit is contained in:
@ -30,7 +30,7 @@ func (m *Gender) GenderTitle() string {
|
||||
|
||||
// Image 单一图片信息
|
||||
type Image struct {
|
||||
Image string `gorm:"column:image;type:varchar(255);default:null;comment:图片" json:"image"`
|
||||
Image string `gorm:"column:image;type:varchar(255);default:'';comment:图片" json:"image"`
|
||||
}
|
||||
|
||||
func (m *Image) Analysis(domain string) string {
|
||||
@ -39,7 +39,7 @@ func (m *Image) Analysis(domain string) string {
|
||||
|
||||
// Images 多个图片信息
|
||||
type Images struct {
|
||||
Images string `gorm:"column:images;type:text;default:null;comment:图片" json:"images"`
|
||||
Images string `gorm:"column:images;type:text;default:'';comment:图片" json:"images"`
|
||||
}
|
||||
|
||||
// AnalysisSlice Slice解析
|
||||
@ -54,7 +54,7 @@ func (m *Images) AnalysisSlice(domain string) []string {
|
||||
}
|
||||
|
||||
type Local struct {
|
||||
Local string `gorm:"column:local;type:varchar(8);default:null;comment:数据位置来源" json:"-"`
|
||||
Local string `gorm:"column:local;type:varchar(8);default:'';comment:数据位置来源" json:"-"`
|
||||
}
|
||||
|
||||
// AccountStatus 账号状态
|
||||
@ -89,7 +89,7 @@ const (
|
||||
// Examine 审核状态
|
||||
type Examine struct {
|
||||
ExamineStatus ExamineStatusKind `gorm:"column:examine_status;type:tinyint(1);default:0;comment:审核状态(0:审核中,1:审核通过,2:审核拒绝)" json:"examine_status"`
|
||||
ExamineRemark string `gorm:"column:examine_remark;type:varchar(255);default:null;comment:审核备注" json:"examine_remark"`
|
||||
ExamineRemark string `gorm:"column:examine_remark;type:varchar(255);default:'';comment:审核备注" json:"examine_remark"`
|
||||
}
|
||||
|
||||
// ExamineStatusKind 审核状态
|
||||
@ -120,10 +120,10 @@ const (
|
||||
)
|
||||
|
||||
type Area struct {
|
||||
Province string `gorm:"column:province;type:varchar(8);default:null;comment:所在省" json:"province"`
|
||||
City string `gorm:"column:city;type:varchar(8);default:null;comment:所在市" json:"city"`
|
||||
District string `gorm:"column:district;type:varchar(8);default:null;comment:所在区/县" json:"district"`
|
||||
Address string `gorm:"column:address;type:varchar(255);default:null;comment:详细地址" json:"address"`
|
||||
Province string `gorm:"column:province;type:varchar(8);default:'';comment:所在省" json:"province"`
|
||||
City string `gorm:"column:city;type:varchar(8);default:'';comment:所在市" json:"city"`
|
||||
District string `gorm:"column:district;type:varchar(8);default:'';comment:所在区/县" json:"district"`
|
||||
Address string `gorm:"column:address;type:varchar(255);default:'';comment:详细地址" json:"address"`
|
||||
}
|
||||
|
||||
func (m *Area) FormatBasic() string {
|
||||
|
Reference in New Issue
Block a user