新增获取接口列表
This commit is contained in:
+7
-3
@@ -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名称"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user