fix DataResource.ResoureType为ResourceType

This commit is contained in:
gazebo
2019-09-26 18:06:14 +08:00
parent 5b1475fa13
commit 14961bd9f1
3 changed files with 11 additions and 11 deletions

View File

@@ -4,7 +4,7 @@ var (
ValidMimeTypes = map[string][]string{
"image/jpeg": []string{"jpeg", "jpg"},
"image/png": []string{"png"},
"image/gif": []string{"gif"},
// "image/gif": []string{"gif"}, // 美团不支持GIF
"video/mpeg": []string{"mpeg", "mpg"},
"video/mp4": []string{"mp4", "m4v"},
@@ -16,9 +16,9 @@ type DataResource struct {
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"` // 是否是平台需要的(平台需要才会上传到平台)
ResourceType string `orm:"size(48)" json:"resourceType"` // 资料的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"`