2023-01-18 09:03:15 +00:00
|
|
|
|
package model
|
|
|
|
|
|
2023-03-03 08:18:00 +00:00
|
|
|
|
import "gorm.io/plugin/soft_delete"
|
|
|
|
|
|
2023-01-18 09:03:15 +00:00
|
|
|
|
// Contract 用户模型
|
|
|
|
|
type Contract struct {
|
2023-03-03 08:18:00 +00:00
|
|
|
|
ID int32 `gorm:"column:id;type:int(11);primary_key;AUTO_INCREMENT" json:"id"`
|
|
|
|
|
Uid string `gorm:"column:uid;type:varchar(100);comment:合同表的唯一表示;NOT NULL" json:"uid"`
|
|
|
|
|
ArtistUid string `gorm:"column:artist_uid;type:varchar(100);comment:画家uid;NOT NULL" json:"artist_uid"`
|
|
|
|
|
ArtworkUid string `gorm:"column:artwork_uid;type:varchar(100);comment:画作uid" json:"artwork_uid"`
|
|
|
|
|
ContractId string `gorm:"column:contract_id;type:varchar(100);comment:合同id" json:"contract_id"`
|
|
|
|
|
TransactionId string `gorm:"column:transaction_id;type:varchar(100);comment:交易id" json:"transaction_id"`
|
|
|
|
|
Type int32 `gorm:"column:type;type:int(1);comment:合同类型;NOT NULL" json:"type"`
|
|
|
|
|
ViewUrl string `gorm:"column:view_url;type:varchar(500);comment:在线查看合同链接" json:"view_url"`
|
|
|
|
|
DownloadUrl string `gorm:"column:download_url;type:varchar(500);comment:合同下载链接" json:"download_url"`
|
|
|
|
|
State int32 `gorm:"column:state;type:int(1);comment:合同状态;NOT NULL" json:"state"`
|
|
|
|
|
CreatedAt int32 `gorm:"column:created_at;autoCreateTime"`
|
|
|
|
|
UpdatedAt int32 `gorm:"column:updated_at;autoCreateTime"`
|
|
|
|
|
DeletedAt soft_delete.DeletedAt
|
2023-01-18 09:03:15 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type Reply struct {
|
|
|
|
|
Code int `json:"state"`
|
|
|
|
|
Message string `json:"message"`
|
|
|
|
|
Data interface{} `json:"data"`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type ArtistInfoRes struct {
|
|
|
|
|
Uid string `json:"uid"`
|
|
|
|
|
Seqnum int64 `json:"seqnum"` // 序列号
|
|
|
|
|
Tnum string `json:"tnum"` //ex.T240
|
|
|
|
|
Num int `json:"num"` // 编号
|
|
|
|
|
Name string `json:"name"`
|
|
|
|
|
CardId string `json:"cardId"`
|
|
|
|
|
PhoneNum string `json:"phone"`
|
|
|
|
|
Gender string `json:"gender"` // 性别
|
|
|
|
|
Belong int `json:"belong"` // 画家归属,1-泰丰,2-丰链
|
|
|
|
|
RecentPhoto string `json:"recentPhoto"` // 画家近照url
|
|
|
|
|
AccountBank string `json:"bank"` // 开户银行
|
|
|
|
|
Account string `json:"account"` // 开户账号
|
|
|
|
|
Video []string `json:"artistVideo"` // 视频资料
|
|
|
|
|
ArtshowTimes int64 `json:"artshowTimes"` // 参加画展次数
|
|
|
|
|
Age int64 `json:"age"`
|
|
|
|
|
Address string `json:"address"`
|
|
|
|
|
Resume string `json:"resume"`
|
|
|
|
|
CardPicFace string `json:"cardPicFace"`
|
|
|
|
|
CardPicBack string `json:"cardPicBack"`
|
|
|
|
|
CertificatePic string `json:"certificatePic"`
|
|
|
|
|
CertificateNum string `json:"certificateNum"`
|
|
|
|
|
// Priority int64 `json:"priority"`
|
|
|
|
|
Agent string `json:"agent"`
|
|
|
|
|
PenName string `json:"penName"` // 笔名
|
|
|
|
|
Comment string `json:"comment"`
|
|
|
|
|
WtchainHash string `json:"wtchainHash"`
|
|
|
|
|
BaiduchainHash string `json:"baiduchanHash"`
|
|
|
|
|
ChengchainHash string `json:"chengchainHash"`
|
|
|
|
|
ChengChainCertUrl string `json:"chengChainCertUrl"`
|
|
|
|
|
BaiduChainCertUrl string `json:"baiduChainCertUrl"`
|
|
|
|
|
ChengChainCertOssUrl string `json:"chengChainCertOssUrl"`
|
|
|
|
|
Baiduchaincertossurl string `json:"baiduchaincertossurl"`
|
|
|
|
|
IsArtshow bool `json:"isArtshow"` // 是否参加过画展,1参加过,2未参加过
|
|
|
|
|
CurrentPosition string `json:"currentPosition"` //现任职务
|
|
|
|
|
Email string `json:"email"`
|
|
|
|
|
TeaRela string `json:"teaRela"` //师
|
|
|
|
|
StuRela string `json:"stuRela"` //徒
|
|
|
|
|
GradSchoolStudyTour string `json:"gradSchoolStudyTour"` //毕业院校及游学经历
|
|
|
|
|
NaTittle string `json:"naTittle"` //国家级头衔
|
|
|
|
|
ProTittle string `json:"proTittle"` //省级头衔
|
|
|
|
|
MunTittle string `json:"munTittle"` //市级头衔
|
|
|
|
|
CouTittle string `json:"couTittle"` //区县级头衔
|
|
|
|
|
OtherTittle string `json:"otherTittle"` //其他头衔
|
|
|
|
|
PastCooForms string `json:"pastCooForms"` //过往合作平台
|
|
|
|
|
ExhibiInfo string `json:"exhibiInfo"` //参展信息
|
|
|
|
|
KeyAchi string `json:"keyAchi"` //主要成就
|
|
|
|
|
Works string `json:"works"` //作品集
|
|
|
|
|
PicAlbum string `json:"picAlbum"` //画册
|
|
|
|
|
|
|
|
|
|
// AwardInfo []AwardInfo `json:"awardInfo"` //获奖信息
|
|
|
|
|
// Publish []Publish `json:"publish"` //出版
|
|
|
|
|
// AcadePub []AcadePub `json:"acadePub"` //学术发表
|
|
|
|
|
// ThirdComment []ThirdComment `json:"thirdComment"` //第三方或策展人评论
|
|
|
|
|
CreaDirect string `json:"creaDirect"` //创作方向(科目)
|
|
|
|
|
ArtStyle string `json:"artStyle"` //艺术风格
|
|
|
|
|
PenInkSkill string `json:"penInkSkill"` //笔墨技法
|
|
|
|
|
DrawThink string `json:"drawThink"` //绘画思想
|
|
|
|
|
AcadeValue string `json:"acadeValue"` //学术价值
|
|
|
|
|
|
|
|
|
|
ArtName string `json:"artName"` // 艺名
|
|
|
|
|
JoinClubTime string `json:"joinClubTime"` // 入会时间
|
|
|
|
|
ArtistStamp string `json:"artistStamp"` // 画家印章
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type CreateContractRes struct {
|
|
|
|
|
Code string `json:"code"`
|
|
|
|
|
Download_url string `json:"download_url"`
|
|
|
|
|
Msg string `json:"msg"`
|
|
|
|
|
Result string `json:"result"`
|
|
|
|
|
Viewpdf_url string `json:"viewpdf_url"`
|
|
|
|
|
}
|