chore: 并入 iotlcm-app 历史到 app/(原提交 f40bda9)
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
// =================================================================================
|
||||
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
|
||||
// =================================================================================
|
||||
|
||||
package testtree
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
||||
"git.5iot.com/iotlcm-public/iotlcm-app/api/gen/testtree/v1"
|
||||
)
|
||||
|
||||
type ITesttreeV1 interface {
|
||||
TestTreeList(ctx context.Context, req *v1.TestTreeListReq) (res *v1.TestTreeListRes, err error)
|
||||
TestTreeExport(ctx context.Context, req *v1.TestTreeExportReq) (res *v1.TestTreeExportRes, err error)
|
||||
TestTreeView(ctx context.Context, req *v1.TestTreeViewReq) (res *v1.TestTreeViewRes, err error)
|
||||
TestTreeEdit(ctx context.Context, req *v1.TestTreeEditReq) (res *v1.TestTreeEditRes, err error)
|
||||
TestTreeDelete(ctx context.Context, req *v1.TestTreeDeleteReq) (res *v1.TestTreeDeleteRes, err error)
|
||||
TestTreeTreeOption(ctx context.Context, req *v1.TestTreeTreeOptionReq) (res *v1.TestTreeTreeOptionRes, err error)
|
||||
}
|
||||
@@ -0,0 +1,67 @@
|
||||
// Package testtree
|
||||
// @Link https://github.com/xiujiecn/xiu-admin
|
||||
// @Copyright Copyright (c) 2026 LiXiujie
|
||||
// @Author Lxj <li@example.com>
|
||||
// @License https://github.com/xiujiecn/xiu-admin/blob/master/LICENSE
|
||||
// @AutoGenerate Version
|
||||
package v1 //testtree
|
||||
|
||||
import (
|
||||
"git.5iot.com/iotlcm-public/iotlcm-app/internal/model/genin"
|
||||
"git.5iot.com/iotlcm-public/iotlcm-app/internal/model/response"
|
||||
"git.5iot.com/iotlcm-public/iotlcm-app/utility/tree"
|
||||
|
||||
"github.com/gogf/gf/v2/frame/g"
|
||||
)
|
||||
|
||||
// ListReq 查询测试树表列表
|
||||
type TestTreeListReq struct {
|
||||
g.Meta `path:"/testTree/list" method:"get" tags:"测试树表" summary:"获取测试树表列表" x-check-permission:"cpm:gen:testTree:list"`
|
||||
genin.TestTreeListParam
|
||||
}
|
||||
|
||||
type TestTreeListRes struct {
|
||||
response.PageResult
|
||||
Items []*genin.TestTreeListModel `json:"items" dc:"数据列表"`
|
||||
}
|
||||
|
||||
// ExportReq 导出测试树表列表
|
||||
type TestTreeExportReq struct {
|
||||
g.Meta `path:"/testTree/export" method:"post" tags:"测试树表" summary:"导出测试树表列表" x-check-permission:"cpm:gen:testTree:export"`
|
||||
genin.TestTreeListParam
|
||||
}
|
||||
|
||||
type TestTreeExportRes struct{}
|
||||
|
||||
// ViewReq 获取测试树表指定信息
|
||||
type TestTreeViewReq struct {
|
||||
g.Meta `path:"/testTree/view" method:"get" tags:"测试树表" summary:"获取测试树表指定信息" x-check-permission:"cpm:gen:testTree:view"`
|
||||
genin.TestTreeViewParam
|
||||
}
|
||||
|
||||
type TestTreeViewRes struct {
|
||||
*genin.TestTreeViewModel
|
||||
}
|
||||
|
||||
// EditReq 修改/新增测试树表
|
||||
type TestTreeEditReq struct {
|
||||
g.Meta `path:"/testTree/edit" method:"post" tags:"测试树表" summary:"修改/新增测试树表" x-check-permission:"cpm:gen:testTree:edit"`
|
||||
genin.TestTreeEditParam
|
||||
}
|
||||
|
||||
type TestTreeEditRes struct{}
|
||||
|
||||
// DeleteReq 删除测试树表
|
||||
type TestTreeDeleteReq struct {
|
||||
g.Meta `path:"/testTree/delete" method:"post" tags:"测试树表" summary:"删除测试树表" x-check-permission:"cpm:gen:testTree:delete"`
|
||||
genin.TestTreeDeleteParam
|
||||
}
|
||||
|
||||
type TestTreeDeleteRes struct{}
|
||||
|
||||
// TreeOptionReq 获取测试树表关系树选项
|
||||
type TestTreeTreeOptionReq struct {
|
||||
g.Meta `path:"/testTree/treeOption" method:"get" tags:"测试树表" summary:"获取测试树表关系树选项" x-check-permission:"cpm:gen:testTree:treeOption"`
|
||||
}
|
||||
|
||||
type TestTreeTreeOptionRes []tree.Node
|
||||
Reference in New Issue
Block a user