|
@@ -30,3 +30,10 @@ func GetResourceById(id string) (item *Resource, err error) {
|
|
|
err = o.Raw(sql, id).QueryRow(&item)
|
|
|
return
|
|
|
}
|
|
|
+
|
|
|
+type FileResourceResp struct {
|
|
|
+ Id int64 `orm:"column(id);" description:"用户id"`
|
|
|
+ ResourceUrl string `description:"资源地址"`
|
|
|
+ ResourceName string `description:"资源名称"`
|
|
|
+ PlaySeconds uint32 `description:"播放时长,单位秒"`
|
|
|
+}
|