chore: 并入 iotlcm-admin-svr 历史到 admin-svr/(原提交 49818c6)
This commit is contained in:
@@ -0,0 +1,59 @@
|
||||
// Package tapi
|
||||
// @Link https://github.com/xiujiecn/xiu-admin
|
||||
// @Copyright Copyright (c) 2026 LiXiujie
|
||||
// @Author Lxj <xxx@example.com>
|
||||
// @License https://github.com/xiujiecn/xiu-admin/blob/master/LICENSE
|
||||
// @AutoGenerate Version
|
||||
package v1 //tapi
|
||||
|
||||
import (
|
||||
"git.5iot.com/iotlcm-public/iotlcm-admin-svr/internal/model"
|
||||
"git.5iot.com/iotlcm-public/iotlcm-admin-svr/internal/model/response"
|
||||
|
||||
"github.com/gogf/gf/v2/frame/g"
|
||||
)
|
||||
|
||||
// ListReq 查询API凭证管理列表
|
||||
type TApiListReq struct {
|
||||
g.Meta `path:"/tApi/list" method:"get" tags:"API凭证管理" summary:"获取API凭证管理列表" x-check-permission:"cpm:agent:tApi:list"`
|
||||
model.TApiListParam
|
||||
}
|
||||
|
||||
type TApiListRes struct {
|
||||
response.PageResult
|
||||
Items []*model.TApiListModel `json:"items" dc:"数据列表"`
|
||||
}
|
||||
|
||||
// ExportReq 导出API凭证管理列表
|
||||
type TApiExportReq struct {
|
||||
g.Meta `path:"/tApi/export" method:"post" tags:"API凭证管理" summary:"导出API凭证管理列表" x-check-permission:"cpm:agent:tApi:export"`
|
||||
model.TApiListParam
|
||||
}
|
||||
|
||||
type TApiExportRes struct{}
|
||||
|
||||
// ViewReq 获取API凭证管理指定信息
|
||||
type TApiViewReq struct {
|
||||
g.Meta `path:"/tApi/view" method:"get" tags:"API凭证管理" summary:"获取API凭证管理指定信息" x-check-permission:"cpm:agent:tApi:view"`
|
||||
model.TApiViewParam
|
||||
}
|
||||
|
||||
type TApiViewRes struct {
|
||||
*model.TApiViewModel
|
||||
}
|
||||
|
||||
// EditReq 修改/新增API凭证管理
|
||||
type TApiEditReq struct {
|
||||
g.Meta `path:"/tApi/edit" method:"post" tags:"API凭证管理" summary:"修改/新增API凭证管理" x-check-permission:"cpm:agent:tApi:edit"`
|
||||
model.TApiEditParam
|
||||
}
|
||||
|
||||
type TApiEditRes struct{}
|
||||
|
||||
// DeleteReq 删除API凭证管理
|
||||
type TApiDeleteReq struct {
|
||||
g.Meta `path:"/tApi/delete" method:"post" tags:"API凭证管理" summary:"删除API凭证管理" x-check-permission:"cpm:agent:tApi:delete"`
|
||||
model.TApiDeleteParam
|
||||
}
|
||||
|
||||
type TApiDeleteRes struct{}
|
||||
Reference in New Issue
Block a user