package model var ( ValidMimeTypes = map[string][]string{ "image/jpeg": []string{"jpeg", "jpg"}, "image/png": []string{"png"}, "image/gif": []string{"gif"}, "video/mpeg": []string{"mpeg", "mpg"}, "video/mp4": []string{"mp4", "m4v"}, } ) type DataResource struct { ModelIDCUL HashCode string `orm:"size(48);unique" json:"hashCode"` ResoureType string `orm:"size(48)" json:"resoureType"` // 资料的mime type Name string `orm:"size(48);index" json:"name"` IsVendor int8 `json:"isVendor"` // 是否是平台需要的(平台需要才会上传到平台) MainURL string `orm:"size(512);column(main_url);unique" json:"mainURL"` QiniuURL string `orm:"size(512);column(qiniu_url);index" json:"qiniuURL"` EbaiURL string `orm:"size(512);column(ebai_url);index" json:"ebaiURL"` MtwmURL string `orm:"size(512);column(mtwm_url);index" json:"mtwmURL"` }