// Code generated by goctl. DO NOT EDIT.
package types

type AdminBatchUpdateApiStatusReq struct {
	Ids    []string `json:"ids"`
	Status int64    `json:"status"`
}

type AdminBatchUpdateApiStatusResp struct {
	Success bool `json:"success"`
}

type AdminCreateApiReq struct {
	ApiName     string `json:"api_name"`
	ApiCode     string `json:"api_code"`
	Method      string `json:"method"`
	Url         string `json:"url"`
	Status      int64  `json:"status,default=1"`
	Description string `json:"description,optional"`
}

type AdminCreateApiResp struct {
	Id string `json:"id"`
}

type AdminDeleteApiReq struct {
	Id string `path:"id"`
}

type AdminDeleteApiResp struct {
	Success bool `json:"success"`
}

type AdminGetApiDetailReq struct {
	Id string `path:"id"`
}

type AdminGetApiDetailResp struct {
	AdminApiInfo
}

type AdminGetApiListReq struct {
	Page     int64  `form:"page,default=1"`
	PageSize int64  `form:"page_size,default=20"`
	ApiName  string `form:"api_name,optional"`
	Method   string `form:"method,optional"`
	Status   int64  `form:"status,optional"`
}

type AdminGetApiListResp struct {
	Items []AdminApiInfo `json:"items"`
	Total int64          `json:"total"`
}

type AdminUpdateApiReq struct {
	Id          string `path:"id"`
	ApiName     string `json:"api_name"`
	ApiCode     string `json:"api_code"`
	Method      string `json:"method"`
	Url         string `json:"url"`
	Status      int64  `json:"status"`
	Description string `json:"description,optional"`
}

type AdminUpdateApiResp struct {
	Success bool `json:"success"`
}
