feat: release v1.0.0
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
package request
|
||||
|
||||
import "server/internal/model/common"
|
||||
|
||||
type CreateSysApiRequest struct {
|
||||
Name string `json:"name" validate:"required,min=1,max=100"`
|
||||
GroupName string `json:"group_name" validate:"required,min=1,max=100"`
|
||||
@@ -15,3 +17,9 @@ type UpdateSysApiRequest struct {
|
||||
Method string `json:"method" validate:"required,oneof=GET POST PUT PATCH DELETE"`
|
||||
Sort *int32 `json:"sort" validate:"required,min=0"`
|
||||
}
|
||||
|
||||
type SearchSysApiParams struct {
|
||||
common.Pagination
|
||||
Method string `json:"method" form:"method" validate:"omitempty,oneof=GET POST PUT PATCH DELETE"`
|
||||
GroupName string `json:"group_name" form:"group_name" validate:"omitempty,max=100"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user