|
@@ -13,13 +13,14 @@ type Resource struct {
|
|
|
}
|
|
|
|
|
|
type ResourceResp struct {
|
|
|
- Id int64 `orm:"column(id);" description:"用户id"`
|
|
|
- ResourceUrl string `description:"资源地址"`
|
|
|
- PlaySeconds uint32 `description:"播放时长,单位秒"`
|
|
|
- Source string
|
|
|
- CacheKey string
|
|
|
- ResourceName string `description:"资源名称"`
|
|
|
- OpenaiFileId string `description:"openai返回的文件id"`
|
|
|
+ Id int64 `orm:"column(id);" description:"用户id"`
|
|
|
+ ResourceUrl string `description:"资源地址"`
|
|
|
+ PlaySeconds uint32 `description:"播放时长,单位秒"`
|
|
|
+ Source string
|
|
|
+ CacheKey string
|
|
|
+ ResourceName string `description:"资源名称"`
|
|
|
+ OpenaiFileId string `description:"openai返回的文件id"`
|
|
|
+ AiChatTopicId int `description:"主题id"`
|
|
|
}
|
|
|
|
|
|
func AddResource(item *Resource) (newId int64, err error) {
|