添加获取ppt主题接口
This commit is contained in:
parent
7c984a6012
commit
5fd12a447e
|
|
@ -4,6 +4,7 @@ import (
|
||||||
"StuAcaWorksAI/dao"
|
"StuAcaWorksAI/dao"
|
||||||
"StuAcaWorksAI/proto"
|
"StuAcaWorksAI/proto"
|
||||||
"StuAcaWorksAI/service"
|
"StuAcaWorksAI/service"
|
||||||
|
"StuAcaWorksAI/service/spark"
|
||||||
"StuAcaWorksAI/worker"
|
"StuAcaWorksAI/worker"
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
"fmt"
|
"fmt"
|
||||||
|
|
@ -444,8 +445,12 @@ func GetSparkPPTThemeList(c *gin.Context) {
|
||||||
modelParam.Url = model.Url
|
modelParam.Url = model.Url
|
||||||
modelParam.System = funcs[0].Info //系统功能
|
modelParam.System = funcs[0].Info //系统功能
|
||||||
//获取主题列表
|
//获取主题列表
|
||||||
themeList, err := service.SparkPPTThemeList(&modelParam, req)
|
themeList, err2 := spark.SparkPPTThemeList(&modelParam, req)
|
||||||
|
if err2 != nil {
|
||||||
|
c.JSON(http.StatusOK, gin.H{"error": "get spark ppt theme list error", "code": proto.ParameterError, "message": "failed"})
|
||||||
|
return
|
||||||
|
}
|
||||||
|
c.JSON(http.StatusOK, gin.H{"code": proto.SuccessCode, "message": "success", "data": themeList})
|
||||||
} else {
|
} else {
|
||||||
c.JSON(http.StatusOK, gin.H{"error": "parameter error", "code": proto.ParameterError, "message": "failed"})
|
c.JSON(http.StatusOK, gin.H{"error": "parameter error", "code": proto.ParameterError, "message": "failed"})
|
||||||
return
|
return
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue