feat:完善入驻信息管理
This commit is contained in:
@ -15,10 +15,14 @@ type ManageAgent struct {
|
||||
WorkPlace string `gorm:"column:work_place;type:varchar(255);default:0;comment:工作地点" json:"work_place"`
|
||||
IDImage string `gorm:"column:id_image;type:text;default:null;comment:身份证图片" json:"-"`
|
||||
CredentialImage string `gorm:"column:credential_image;type:varchar(255);default:null;comment:资格证书" json:"credential_image"`
|
||||
Examine
|
||||
ModelDeleted
|
||||
ModelAt
|
||||
}
|
||||
|
||||
type ManageAgentIDImage struct {
|
||||
}
|
||||
|
||||
func (m *ManageAgent) TableName() string {
|
||||
return "manage_agent"
|
||||
}
|
||||
@ -43,6 +47,16 @@ func (m *ManageAgent) SetKeywordAttribute(value []string) {
|
||||
m.Keyword = utils.AnyToJSON(value)
|
||||
}
|
||||
|
||||
func (m *ManageAgent) GetCredentialImageAttribute() []string {
|
||||
out := make([]string, 0)
|
||||
_ = utils.FromJSON(m.CredentialImage, &out)
|
||||
return out
|
||||
}
|
||||
|
||||
func (m *ManageAgent) SetCredentialImageAttribute(value []string) {
|
||||
m.CredentialImage = utils.AnyToJSON(value)
|
||||
}
|
||||
|
||||
func NewManageAgent() *ManageAgent {
|
||||
return &ManageAgent{}
|
||||
}
|
||||
|
Reference in New Issue
Block a user