package model var ( ValideMimeTypes = map[string]int{ "image/jpeg": 1, "image/png": 1, "video/mpeg": 1, "video/mp4": 1, } ) 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"` MainURL string `orm:"size(512);column(main_url);index" 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"` }