Files
ai_proxy/server/model/system/request/sys_api.go
2026-03-03 06:05:51 +08:00

28 lines
996 B
Go

package request
// CreateApiRequest 创建API请求
type CreateApiRequest struct {
Path string `json:"path" binding:"required"`
Description string `json:"description"`
ApiGroup string `json:"apiGroup" binding:"required"`
Method string `json:"method" binding:"required,oneof=GET POST PUT DELETE PATCH"`
}
// UpdateApiRequest 更新API请求
type UpdateApiRequest struct {
ID uint `json:"id" binding:"required"`
Path string `json:"path" binding:"required"`
Description string `json:"description"`
ApiGroup string `json:"apiGroup" binding:"required"`
Method string `json:"method" binding:"required,oneof=GET POST PUT DELETE PATCH"`
}
// GetApiListRequest 获取API列表请求
type GetApiListRequest struct {
Page int `json:"page" form:"page"`
PageSize int `json:"pageSize" form:"pageSize"`
Path string `json:"path" form:"path"`
ApiGroup string `json:"apiGroup" form:"apiGroup"`
Method string `json:"method" form:"method"`
}