新增获取接口列表

This commit is contained in:
2023-06-30 18:14:24 +08:00
parent 9d94e367b3
commit 2e6df8c974
5 changed files with 74 additions and 26 deletions
+7 -3
View File
@@ -2,6 +2,7 @@ package requests
type ApiRequest struct {
GetApiPage // 获取接口列表-分页
GetApiList // 获取接口列表
AddApi // 新增接口
DeleteApi // 删除接口-批量
PutApi // 修改接口
@@ -16,6 +17,11 @@ type GetApiPage struct {
PageSize int `json:"page_size" form:"page_size" label:"每页个数"`
}
// GetApiList 获取接口列表
type GetApiList struct {
ApiName string `json:"api_name" form:"api_name" label:"api名称"`
}
// AddApi 新增接口
type AddApi struct {
ApiName string `json:"api_name" form:"api_name" validate:"required" label:"接口名称"`
@@ -30,7 +36,5 @@ type DeleteApi struct {
// PutApi 修改接口
type PutApi struct {
ApiName string `json:"api_name" form:"api_name" label:"api名称"`
ApiMethod string `json:"api_method" form:"api_method" label:"请求类型"` // put:修改 post:新增 get:获取 delete:删除)
ApiPath string `json:"api_path" form:"api_path" validate:"required" label:"接口路径"`
ApiName string `json:"api_name" form:"api_name" label:"api名称"`
}