🎨 优化前端菜单栏(修改为抽屉模式)&& 新增ai预设功能 && 优化ai对话前端渲染
This commit is contained in:
24
server/model/app/request/ai_preset.go
Normal file
24
server/model/app/request/ai_preset.go
Normal file
@@ -0,0 +1,24 @@
|
||||
package request
|
||||
|
||||
import "git.echol.cn/loser/st/server/model/common/request"
|
||||
|
||||
// CreateAIPresetRequest 创建预设请求
|
||||
type CreateAIPresetRequest struct {
|
||||
Name string `json:"name" binding:"required,max=200"`
|
||||
Type string `json:"type" binding:"required,max=100"`
|
||||
Content map[string]interface{} `json:"content" binding:"required"`
|
||||
}
|
||||
|
||||
// UpdateAIPresetRequest 更新预设请求
|
||||
type UpdateAIPresetRequest struct {
|
||||
Name string `json:"name" binding:"required,max=200"`
|
||||
Type string `json:"type" binding:"required,max=100"`
|
||||
Content map[string]interface{} `json:"content" binding:"required"`
|
||||
}
|
||||
|
||||
// AIPresetSearch 预设搜索请求
|
||||
type AIPresetSearch struct {
|
||||
request.PageInfo
|
||||
Name string `json:"name" form:"name"`
|
||||
Type string `json:"type" form:"type"`
|
||||
}
|
||||
Reference in New Issue
Block a user