新增功能配置开放

This commit is contained in:
李寻欢
2024-07-16 11:36:10 +08:00
parent d89b8033bd
commit 9e4f151623
10 changed files with 254 additions and 24 deletions

View File

@@ -107,6 +107,27 @@ func Assistant(ctx *gin.Context) {
ctx.HTML(http.StatusOK, "assistant.html", result)
}
// ManageWithGroupAdmin
// @description: 群组管理(管理员可用)
// @param ctx
func ManageWithGroupAdmin(ctx *gin.Context) {
// 取出id
id := ctx.Query("id")
if id == "" {
ctx.HTML(http.StatusOK, "404.html", nil)
return
}
var result = gin.H{
"msg": "success",
}
result["info"], _ = service.GetFriendInfoById(id)
result["aiModels"] = config.Conf.Ai.Models
result["assistant"], _ = service.GetAllAiAssistant()
// 渲染页面
ctx.HTML(http.StatusOK, "manager-one.html", result)
}
// PageNotFound
// @description: 404页面
// @param ctx