25 lines
835 B
Go
25 lines
835 B
Go
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"`
|
|
}
|