+ 添加数据资源操作相关的API
This commit is contained in:
@@ -13,19 +13,13 @@ var (
|
||||
type DataResource struct {
|
||||
ModelIDCUL
|
||||
|
||||
HashCode string `orm:"size(48);unique" json:"hash_code"`
|
||||
ResoureType string // 资料的mime type
|
||||
HashCode string `orm:"size(48);unique" json:"hashCode"`
|
||||
|
||||
Name string `orm:"size(48)" json:"name"`
|
||||
ResoureType string `orm:"size(48)" json:"resoureType"` // 资料的mime type
|
||||
Name string `orm:"size(48);index" json:"name"`
|
||||
|
||||
MainURL string
|
||||
QiniuURL string
|
||||
EbaiURL string
|
||||
MtwmURL string
|
||||
}
|
||||
|
||||
func (*DataResource) TableUnique() [][]string {
|
||||
return [][]string{
|
||||
[]string{"HashCode", "ResoureType"},
|
||||
}
|
||||
MainURL string `orm:"size(1024);column(main_url);index" json:"mainURL"`
|
||||
QiniuURL string `orm:"size(1024);column(qiniu_url);index" json:"qiniuURL"`
|
||||
EbaiURL string `orm:"size(1024);column(ebai_url);index" json:"ebaiURL"`
|
||||
MtwmURL string `orm:"size(1024);column(mtwm_url);index" json:"mtwmURL"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user