30 lines
786 B
Go
30 lines
786 B
Go
package dto
|
|
|
|
import "github.com/gogf/gf/v2/frame/g"
|
|
|
|
type LoginReq struct {
|
|
g.Meta `path:"/login" method:"post" tags:"系统配置" summary:"访问令牌登录"`
|
|
Token string `v:"required" json:"token"`
|
|
}
|
|
|
|
type LoginRes struct {
|
|
Token string `json:"token"`
|
|
}
|
|
|
|
type GetSettingsReq struct {
|
|
g.Meta `path:"/settings" method:"get" tags:"系统配置" summary:"获取全局设置"`
|
|
}
|
|
|
|
type GetSettingsRes struct {
|
|
ChunkSize int `json:"chunk_size"` // 默认分块大小
|
|
ChunkOverlap int `json:"chunk_overlap"` // 默认重叠字数
|
|
}
|
|
|
|
type SaveSettingsReq struct {
|
|
g.Meta `path:"/save-settings" method:"post" tags:"系统配置" summary:"保存全局设置"`
|
|
ChunkSize int `json:"chunk_size"`
|
|
ChunkOverlap int `json:"chunk_overlap"`
|
|
}
|
|
|
|
type SaveSettingsRes struct{}
|