chore: 初始开源发布
iotlcm-admin-svr:管理后台服务。 - Go module:iotlcm → git.5iot.com/iotlcm-public/iotlcm-admin-svr(729 文件) - 凭据与地址脱敏:JWT signingKey(含代码里的 MustGet 默认值)、 MySQL DSN、Redis 口令、告警邮件发件人邮箱全部改为占位; 私网 IP → 文档地址段;库名 xiujie_admin → iotlcm - 真实手机号/邮箱 → 合法 11 位编造号 / example.com - 移除内部资产:CI 触发器、过时 DDL(sql/db_iotlcm.sql)、 私有依赖 go get 行、明文 registry 登录口令 - 启动 banner 统一 IOTLCM 方块字 + 社区惯例署名 - Dockerfile 改用公共基础镜像 - 拼错的 RADEME.md → README.md,README 重写 - 需要真实数据库的用例改为可用 IOTLCM_TEST_WITH_DB=1 显式启用 - 补 Apache-2.0 LICENSE,LF 行尾 + .gitattributes 数据库 schema 不随本仓发布(生产 DDL 已过时),README 已说明。
This commit is contained in:
@@ -0,0 +1,61 @@
|
||||
// =================================================================================
|
||||
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
|
||||
// =================================================================================
|
||||
|
||||
package agent
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
||||
"git.5iot.com/iotlcm-public/iotlcm-admin-svr/api/agent/v1"
|
||||
)
|
||||
|
||||
type IAgentV1 interface {
|
||||
DeptList(ctx context.Context, req *v1.DeptListReq) (res *v1.DeptListRes, err error)
|
||||
DeptView(ctx context.Context, req *v1.DeptViewReq) (res *v1.DeptViewRes, err error)
|
||||
DeptSave(ctx context.Context, req *v1.DeptSaveReq) (res *v1.DeptSaveRes, err error)
|
||||
DeptDelete(ctx context.Context, req *v1.DeptDeleteReq) (res *v1.DeptDeleteRes, err error)
|
||||
DeptResetPassword(ctx context.Context, req *v1.DeptResetPasswordReq) (res *v1.DeptResetPasswordRes, err error)
|
||||
GetDeptApiInfo(ctx context.Context, req *v1.GetDeptApiInfoReq) (res *v1.GetDeptApiInfoRes, err error)
|
||||
SubCompany(ctx context.Context, req *v1.SubCompanyReq) (res *v1.SubCompanyRes, err error)
|
||||
MenuTree(ctx context.Context, req *v1.MenuTreeReq) (res *v1.MenuTreeRes, err error)
|
||||
RoleList(ctx context.Context, req *v1.RoleListReq) (res *v1.RoleListRes, err error)
|
||||
RoleView(ctx context.Context, req *v1.RoleViewReq) (res *v1.RoleViewRes, err error)
|
||||
RoleSave(ctx context.Context, req *v1.RoleSaveReq) (res *v1.RoleSaveRes, err error)
|
||||
RoleDelete(ctx context.Context, req *v1.RoleDeleteReq) (res *v1.RoleDeleteRes, err error)
|
||||
Scope(ctx context.Context, req *v1.ScopeReq) (res *v1.ScopeRes, err error)
|
||||
UserList(ctx context.Context, req *v1.UserListReq) (res *v1.UserListRes, err error)
|
||||
UserView(ctx context.Context, req *v1.UserViewReq) (res *v1.UserViewRes, err error)
|
||||
UserAdd(ctx context.Context, req *v1.UserAddReq) (res *v1.UserAddRes, err error)
|
||||
UserUpdate(ctx context.Context, req *v1.UserUpdateReq) (res *v1.UserUpdateRes, err error)
|
||||
UserDelete(ctx context.Context, req *v1.UserDeleteReq) (res *v1.UserDeleteRes, err error)
|
||||
UserResetPassword(ctx context.Context, req *v1.UserResetPasswordReq) (res *v1.UserResetPasswordRes, err error)
|
||||
TAgentEnterpriseList(ctx context.Context, req *v1.TAgentEnterpriseListReq) (res *v1.TAgentEnterpriseListRes, err error)
|
||||
TAgentEnterpriseExport(ctx context.Context, req *v1.TAgentEnterpriseExportReq) (res *v1.TAgentEnterpriseExportRes, err error)
|
||||
TAgentEnterpriseView(ctx context.Context, req *v1.TAgentEnterpriseViewReq) (res *v1.TAgentEnterpriseViewRes, err error)
|
||||
TAgentEnterpriseEdit(ctx context.Context, req *v1.TAgentEnterpriseEditReq) (res *v1.TAgentEnterpriseEditRes, err error)
|
||||
TAgentEnterpriseDelete(ctx context.Context, req *v1.TAgentEnterpriseDeleteReq) (res *v1.TAgentEnterpriseDeleteRes, err error)
|
||||
TApiList(ctx context.Context, req *v1.TApiListReq) (res *v1.TApiListRes, err error)
|
||||
TApiExport(ctx context.Context, req *v1.TApiExportReq) (res *v1.TApiExportRes, err error)
|
||||
TApiView(ctx context.Context, req *v1.TApiViewReq) (res *v1.TApiViewRes, err error)
|
||||
TApiEdit(ctx context.Context, req *v1.TApiEditReq) (res *v1.TApiEditRes, err error)
|
||||
TApiDelete(ctx context.Context, req *v1.TApiDeleteReq) (res *v1.TApiDeleteRes, err error)
|
||||
TApiGroupList(ctx context.Context, req *v1.TApiGroupListReq) (res *v1.TApiGroupListRes, err error)
|
||||
TApiGroupExport(ctx context.Context, req *v1.TApiGroupExportReq) (res *v1.TApiGroupExportRes, err error)
|
||||
TApiGroupView(ctx context.Context, req *v1.TApiGroupViewReq) (res *v1.TApiGroupViewRes, err error)
|
||||
TApiGroupEdit(ctx context.Context, req *v1.TApiGroupEditReq) (res *v1.TApiGroupEditRes, err error)
|
||||
TApiGroupDelete(ctx context.Context, req *v1.TApiGroupDeleteReq) (res *v1.TApiGroupDeleteRes, err error)
|
||||
TApiGroupStatus(ctx context.Context, req *v1.TApiGroupStatusReq) (res *v1.TApiGroupStatusRes, err error)
|
||||
TApiResourceList(ctx context.Context, req *v1.TApiResourceListReq) (res *v1.TApiResourceListRes, err error)
|
||||
TApiResourceExport(ctx context.Context, req *v1.TApiResourceExportReq) (res *v1.TApiResourceExportRes, err error)
|
||||
TApiResourceView(ctx context.Context, req *v1.TApiResourceViewReq) (res *v1.TApiResourceViewRes, err error)
|
||||
TApiResourceEdit(ctx context.Context, req *v1.TApiResourceEditReq) (res *v1.TApiResourceEditRes, err error)
|
||||
TApiResourceDelete(ctx context.Context, req *v1.TApiResourceDeleteReq) (res *v1.TApiResourceDeleteRes, err error)
|
||||
TApiResourceStatus(ctx context.Context, req *v1.TApiResourceStatusReq) (res *v1.TApiResourceStatusRes, err error)
|
||||
TCustWithdrawAccountList(ctx context.Context, req *v1.TCustWithdrawAccountListReq) (res *v1.TCustWithdrawAccountListRes, err error)
|
||||
TCustWithdrawAccountExport(ctx context.Context, req *v1.TCustWithdrawAccountExportReq) (res *v1.TCustWithdrawAccountExportRes, err error)
|
||||
TCustWithdrawAccountView(ctx context.Context, req *v1.TCustWithdrawAccountViewReq) (res *v1.TCustWithdrawAccountViewRes, err error)
|
||||
TCustWithdrawAccountEdit(ctx context.Context, req *v1.TCustWithdrawAccountEditReq) (res *v1.TCustWithdrawAccountEditRes, err error)
|
||||
TCustWithdrawAccountDelete(ctx context.Context, req *v1.TCustWithdrawAccountDeleteReq) (res *v1.TCustWithdrawAccountDeleteRes, err error)
|
||||
TCustWithdrawAccountStatus(ctx context.Context, req *v1.TCustWithdrawAccountStatusReq) (res *v1.TCustWithdrawAccountStatusRes, err error)
|
||||
}
|
||||
@@ -0,0 +1,67 @@
|
||||
package v1
|
||||
|
||||
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"
|
||||
)
|
||||
|
||||
type DeptListReq struct {
|
||||
g.Meta `path:"/dept/list" method:"get" tags:"代理商组织管理" summary:"代理商组织列表" x-check-permission:"cpm:agent:dept:list"`
|
||||
model.AgentDeptListParam
|
||||
}
|
||||
|
||||
type DeptListRes struct {
|
||||
response.PageResult
|
||||
Data []*model.AgentEnterpriseCustomerModel `json:"items"`
|
||||
}
|
||||
|
||||
type DeptViewReq struct {
|
||||
g.Meta `path:"/dept/view" method:"get" tags:"代理商组织管理" summary:"代理商组织详情" x-check-permission:"cpm:agent:dept:query"`
|
||||
DeptId int64 `json:"deptId"`
|
||||
}
|
||||
|
||||
type DeptViewRes struct {
|
||||
model.AgentEnterpriseCustomerModel
|
||||
}
|
||||
|
||||
type DeptSaveReq struct {
|
||||
g.Meta `path:"/dept/save" method:"post" tags:"代理商组织管理" summary:"保存代理商组织" x-check-permission:"cpm:agent:dept:edit"`
|
||||
model.AgentDeptSaveParam
|
||||
}
|
||||
|
||||
type DeptSaveRes struct {
|
||||
DeptId int64 `json:"deptId"`
|
||||
}
|
||||
|
||||
type DeptDeleteReq struct {
|
||||
g.Meta `path:"/dept/delete" method:"post" tags:"代理商组织管理" summary:"删除代理商组织" x-check-permission:"cpm:agent:dept:remove"`
|
||||
DeptId int64 `json:"deptId"`
|
||||
}
|
||||
|
||||
type DeptDeleteRes struct{}
|
||||
|
||||
type DeptResetPasswordReq struct {
|
||||
g.Meta `path:"/dept/resetPassword" method:"post" tags:"代理商企业客户管理" summary:"重置企业客户默认用户密码" x-check-permission:"cpm:agent:dept:edit"`
|
||||
DeptId int64 `json:"deptId"`
|
||||
Password string `json:"password"`
|
||||
}
|
||||
|
||||
type DeptResetPasswordRes struct{}
|
||||
|
||||
type GetDeptApiInfoReq struct {
|
||||
g.Meta `path:"/dept/apiInfo" method:"get" tags:"代理商组织管理" summary:"获取代理商组织API信息" x-check-permission:"cpm:agent:dept:apiInfo"`
|
||||
}
|
||||
|
||||
type GetDeptApiInfoRes struct {
|
||||
model.AgentDeptApiModel
|
||||
}
|
||||
|
||||
type SubCompanyReq struct {
|
||||
g.Meta `path:"/dept/subCompany" method:"get" tags:"代理商组织管理" summary:"获取直属下级"`
|
||||
}
|
||||
|
||||
type SubCompanyRes struct {
|
||||
Data []*model.SysDeptTreeModel `json:"items"`
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
package v1
|
||||
|
||||
import (
|
||||
"git.5iot.com/iotlcm-public/iotlcm-admin-svr/internal/model"
|
||||
|
||||
"github.com/gogf/gf/v2/frame/g"
|
||||
)
|
||||
|
||||
type MenuTreeReq struct {
|
||||
g.Meta `path:"/menu/tree" method:"get" tags:"代理商菜单权限" summary:"可分配菜单树" x-check-permission:"cpm:agent:role:query"`
|
||||
}
|
||||
|
||||
type MenuTreeRes struct {
|
||||
Items []*model.SysMenuTreeModel `json:"items"`
|
||||
MenuIds []int64 `json:"menuIds"`
|
||||
}
|
||||
@@ -0,0 +1,44 @@
|
||||
package v1
|
||||
|
||||
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"
|
||||
)
|
||||
|
||||
type RoleListReq struct {
|
||||
g.Meta `path:"/role/list" method:"get" tags:"代理商角色权限" summary:"角色权限列表" x-check-permission:"cpm:agent:role:list"`
|
||||
model.AgentRoleListParam
|
||||
}
|
||||
|
||||
type RoleListRes struct {
|
||||
response.PageResult
|
||||
Data []*model.AgentRoleListModel `json:"items"`
|
||||
}
|
||||
|
||||
type RoleViewReq struct {
|
||||
g.Meta `path:"/role/view" method:"get" tags:"代理商角色权限" summary:"角色权限详情" x-check-permission:"cpm:agent:role:query"`
|
||||
RoleId int64 `json:"roleId"`
|
||||
}
|
||||
|
||||
type RoleViewRes struct {
|
||||
model.AgentRoleViewModel
|
||||
}
|
||||
|
||||
type RoleSaveReq struct {
|
||||
g.Meta `path:"/role/save" method:"post" tags:"代理商角色权限" summary:"保存角色权限" x-check-permission:"cpm:agent:role:edit"`
|
||||
model.AgentRoleSaveParam
|
||||
}
|
||||
|
||||
type RoleSaveRes struct {
|
||||
RoleId int64 `json:"roleId"`
|
||||
}
|
||||
|
||||
type RoleDeleteReq struct {
|
||||
g.Meta `path:"/role/delete" method:"post" tags:"代理商角色权限" summary:"删除角色权限" x-check-permission:"cpm:agent:role:remove"`
|
||||
RoleId int64 `json:"roleId"`
|
||||
RoleIds []int64 `json:"roleIds"`
|
||||
}
|
||||
|
||||
type RoleDeleteRes struct{}
|
||||
@@ -0,0 +1,16 @@
|
||||
package v1
|
||||
|
||||
import (
|
||||
"git.5iot.com/iotlcm-public/iotlcm-admin-svr/internal/model/request"
|
||||
|
||||
"github.com/gogf/gf/v2/frame/g"
|
||||
)
|
||||
|
||||
type ScopeReq struct {
|
||||
g.Meta `path:"/scope" method:"get" tags:"代理商数据范围" summary:"代理商组织范围" x-check-permission:"cpm:agent:dept:list"`
|
||||
}
|
||||
|
||||
type ScopeRes struct {
|
||||
DeptIds []int64 `json:"deptIds"`
|
||||
request.PageInfo
|
||||
}
|
||||
@@ -0,0 +1,61 @@
|
||||
package v1
|
||||
|
||||
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"
|
||||
)
|
||||
|
||||
type UserListReq struct {
|
||||
g.Meta `path:"/user/list" method:"get" tags:"代理商用户管理" summary:"下级用户列表" x-check-permission:"cpm:agent:user:list"`
|
||||
model.AgentUserListParam
|
||||
}
|
||||
|
||||
type UserListRes struct {
|
||||
response.PageResult
|
||||
Data []*model.AgentUserListModel `json:"items"`
|
||||
}
|
||||
|
||||
type UserViewReq struct {
|
||||
g.Meta `path:"/user/view" method:"get" tags:"代理商用户管理" summary:"下级用户详情" x-check-permission:"cpm:agent:user:query"`
|
||||
UserId int64 `json:"userId"`
|
||||
}
|
||||
|
||||
type UserViewRes struct {
|
||||
model.AgentUserViewModel
|
||||
}
|
||||
|
||||
type UserAddReq struct {
|
||||
g.Meta `path:"/user/add" method:"post" tags:"代理商用户管理" summary:"新增下级用户" x-check-permission:"cpm:agent:user:add"`
|
||||
model.SysUserAddModel
|
||||
}
|
||||
|
||||
type UserAddRes struct {
|
||||
Data *model.AgentUserViewModel `json:"data"`
|
||||
}
|
||||
|
||||
type UserUpdateReq struct {
|
||||
g.Meta `path:"/user/update" method:"post" tags:"代理商用户管理" summary:"修改下级用户" x-check-permission:"cpm:agent:user:edit"`
|
||||
model.SysUserUpdateModel
|
||||
}
|
||||
|
||||
type UserUpdateRes struct {
|
||||
Data *model.AgentUserViewModel `json:"data"`
|
||||
}
|
||||
|
||||
type UserDeleteReq struct {
|
||||
g.Meta `path:"/user/delete" method:"post" tags:"代理商用户管理" summary:"删除下级用户" x-check-permission:"cpm:agent:user:remove"`
|
||||
UserId int64 `json:"userId"`
|
||||
UserIds []int64 `json:"userIds"`
|
||||
}
|
||||
|
||||
type UserDeleteRes struct{}
|
||||
|
||||
type UserResetPasswordReq struct {
|
||||
g.Meta `path:"/user/resetPassword" method:"post" tags:"代理商用户管理" summary:"重置下级用户密码" x-check-permission:"cpm:agent:user:resetPwd"`
|
||||
UserId int64 `json:"userId"`
|
||||
Password string `json:"password"`
|
||||
}
|
||||
|
||||
type UserResetPasswordRes struct{}
|
||||
@@ -0,0 +1,59 @@
|
||||
// Package tagententerprise
|
||||
// @Link https://github.com/xiujiecn/xiu-admin
|
||||
// @Copyright Copyright (c) 2026 LiXiujie
|
||||
// @Author Lxj <li@xiujie.cn>
|
||||
// @License https://github.com/xiujiecn/xiu-admin/blob/master/LICENSE
|
||||
// @AutoGenerate Version
|
||||
package v1 //tagententerprise
|
||||
|
||||
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 查询企业客户单位信息列表
|
||||
type TAgentEnterpriseListReq struct {
|
||||
g.Meta `path:"/tAgentEnterprise/list" method:"get" tags:"企业客户单位信息" summary:"获取企业客户单位信息列表" x-check-permission:"cpm:agent:tAgentEnterprise:list"`
|
||||
model.TAgentEnterpriseListParam
|
||||
}
|
||||
|
||||
type TAgentEnterpriseListRes struct {
|
||||
response.PageResult
|
||||
Items []*model.TAgentEnterpriseListModel `json:"items" dc:"数据列表"`
|
||||
}
|
||||
|
||||
// ExportReq 导出企业客户单位信息列表
|
||||
type TAgentEnterpriseExportReq struct {
|
||||
g.Meta `path:"/tAgentEnterprise/export" method:"post" tags:"企业客户单位信息" summary:"导出企业客户单位信息列表" x-check-permission:"cpm:agent:tAgentEnterprise:export"`
|
||||
model.TAgentEnterpriseListParam
|
||||
}
|
||||
|
||||
type TAgentEnterpriseExportRes struct{}
|
||||
|
||||
// ViewReq 获取企业客户单位信息指定信息
|
||||
type TAgentEnterpriseViewReq struct {
|
||||
g.Meta `path:"/tAgentEnterprise/view" method:"get" tags:"企业客户单位信息" summary:"获取企业客户单位信息指定信息" x-check-permission:"cpm:agent:tAgentEnterprise:view"`
|
||||
model.TAgentEnterpriseViewParam
|
||||
}
|
||||
|
||||
type TAgentEnterpriseViewRes struct {
|
||||
*model.TAgentEnterpriseViewModel
|
||||
}
|
||||
|
||||
// EditReq 修改/新增企业客户单位信息
|
||||
type TAgentEnterpriseEditReq struct {
|
||||
g.Meta `path:"/tAgentEnterprise/edit" method:"post" tags:"企业客户单位信息" summary:"修改/新增企业客户单位信息" x-check-permission:"cpm:agent:tAgentEnterprise:edit"`
|
||||
model.TAgentEnterpriseEditParam
|
||||
}
|
||||
|
||||
type TAgentEnterpriseEditRes struct{}
|
||||
|
||||
// DeleteReq 删除企业客户单位信息
|
||||
type TAgentEnterpriseDeleteReq struct {
|
||||
g.Meta `path:"/tAgentEnterprise/delete" method:"post" tags:"企业客户单位信息" summary:"删除企业客户单位信息" x-check-permission:"cpm:agent:tAgentEnterprise:delete"`
|
||||
model.TAgentEnterpriseDeleteParam
|
||||
}
|
||||
|
||||
type TAgentEnterpriseDeleteRes struct{}
|
||||
@@ -0,0 +1,59 @@
|
||||
// Package tapi
|
||||
// @Link https://github.com/xiujiecn/xiu-admin
|
||||
// @Copyright Copyright (c) 2026 LiXiujie
|
||||
// @Author Lxj <li@xiujie.cn>
|
||||
// @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{}
|
||||
@@ -0,0 +1,55 @@
|
||||
package v1
|
||||
|
||||
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"
|
||||
)
|
||||
|
||||
type TApiGroupListReq struct {
|
||||
g.Meta `path:"/tApiGroup/list" method:"get" tags:"open-api-group" summary:"list open api groups" x-check-permission:"cpm:agent:tApiGroup:list,cpm:gen:tApiGroup:list"`
|
||||
model.TApiGroupListParam
|
||||
}
|
||||
|
||||
type TApiGroupListRes struct {
|
||||
response.PageResult
|
||||
Items []*model.TApiGroupListModel `json:"items" dc:"items"`
|
||||
}
|
||||
|
||||
type TApiGroupExportReq struct {
|
||||
g.Meta `path:"/tApiGroup/export" method:"post" tags:"open-api-group" summary:"export open api groups" x-check-permission:"cpm:agent:tApiGroup:export,cpm:gen:tApiGroup:export"`
|
||||
model.TApiGroupListParam
|
||||
}
|
||||
|
||||
type TApiGroupExportRes struct{}
|
||||
|
||||
type TApiGroupViewReq struct {
|
||||
g.Meta `path:"/tApiGroup/view" method:"get" tags:"open-api-group" summary:"view open api group" x-check-permission:"cpm:agent:tApiGroup:view,cpm:gen:tApiGroup:view"`
|
||||
model.TApiGroupViewParam
|
||||
}
|
||||
|
||||
type TApiGroupViewRes struct {
|
||||
*model.TApiGroupViewModel
|
||||
}
|
||||
|
||||
type TApiGroupEditReq struct {
|
||||
g.Meta `path:"/tApiGroup/edit" method:"post" tags:"open-api-group" summary:"edit open api group" x-check-permission:"cpm:agent:tApiGroup:edit,cpm:gen:tApiGroup:edit"`
|
||||
model.TApiGroupEditParam
|
||||
}
|
||||
|
||||
type TApiGroupEditRes struct{}
|
||||
|
||||
type TApiGroupDeleteReq struct {
|
||||
g.Meta `path:"/tApiGroup/delete" method:"post" tags:"open-api-group" summary:"delete open api group" x-check-permission:"cpm:agent:tApiGroup:delete,cpm:gen:tApiGroup:delete"`
|
||||
model.TApiGroupDeleteParam
|
||||
}
|
||||
|
||||
type TApiGroupDeleteRes struct{}
|
||||
|
||||
type TApiGroupStatusReq struct {
|
||||
g.Meta `path:"/tApiGroup/status" method:"post" tags:"open-api-group" summary:"update open api group status" x-check-permission:"cpm:agent:tApiGroup:status,cpm:gen:tApiGroup:status"`
|
||||
model.TApiGroupStatusParam
|
||||
}
|
||||
|
||||
type TApiGroupStatusRes struct{}
|
||||
@@ -0,0 +1,55 @@
|
||||
package v1
|
||||
|
||||
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"
|
||||
)
|
||||
|
||||
type TApiResourceListReq struct {
|
||||
g.Meta `path:"/tApiResource/list" method:"get" tags:"open-api-resource" summary:"list open api resources" x-check-permission:"cpm:agent:tApiResource:list,cpm:gen:tApiResource:list"`
|
||||
model.TApiResourceListParam
|
||||
}
|
||||
|
||||
type TApiResourceListRes struct {
|
||||
response.PageResult
|
||||
Items []*model.TApiResourceListModel `json:"items" dc:"items"`
|
||||
}
|
||||
|
||||
type TApiResourceExportReq struct {
|
||||
g.Meta `path:"/tApiResource/export" method:"post" tags:"open-api-resource" summary:"export open api resources" x-check-permission:"cpm:agent:tApiResource:export,cpm:gen:tApiResource:export"`
|
||||
model.TApiResourceListParam
|
||||
}
|
||||
|
||||
type TApiResourceExportRes struct{}
|
||||
|
||||
type TApiResourceViewReq struct {
|
||||
g.Meta `path:"/tApiResource/view" method:"get" tags:"open-api-resource" summary:"view open api resource" x-check-permission:"cpm:agent:tApiResource:view,cpm:gen:tApiResource:view"`
|
||||
model.TApiResourceViewParam
|
||||
}
|
||||
|
||||
type TApiResourceViewRes struct {
|
||||
*model.TApiResourceViewModel
|
||||
}
|
||||
|
||||
type TApiResourceEditReq struct {
|
||||
g.Meta `path:"/tApiResource/edit" method:"post" tags:"open-api-resource" summary:"edit open api resource" x-check-permission:"cpm:agent:tApiResource:edit,cpm:gen:tApiResource:edit"`
|
||||
model.TApiResourceEditParam
|
||||
}
|
||||
|
||||
type TApiResourceEditRes struct{}
|
||||
|
||||
type TApiResourceDeleteReq struct {
|
||||
g.Meta `path:"/tApiResource/delete" method:"post" tags:"open-api-resource" summary:"delete open api resource" x-check-permission:"cpm:agent:tApiResource:delete,cpm:gen:tApiResource:delete"`
|
||||
model.TApiResourceDeleteParam
|
||||
}
|
||||
|
||||
type TApiResourceDeleteRes struct{}
|
||||
|
||||
type TApiResourceStatusReq struct {
|
||||
g.Meta `path:"/tApiResource/status" method:"post" tags:"open-api-resource" summary:"update open api resource status" x-check-permission:"cpm:agent:tApiResource:status,cpm:gen:tApiResource:status"`
|
||||
model.TApiResourceStatusParam
|
||||
}
|
||||
|
||||
type TApiResourceStatusRes struct{}
|
||||
@@ -0,0 +1,67 @@
|
||||
// Package tcustwithdrawaccount
|
||||
// @Link https://github.com/xiujiecn/xiu-admin
|
||||
// @Copyright Copyright (c) 2026 LiXiujie
|
||||
// @Author Lxj <li@xiujie.cn>
|
||||
// @License https://github.com/xiujiecn/xiu-admin/blob/master/LICENSE
|
||||
// @AutoGenerate Version
|
||||
package v1 //tcustwithdrawaccount
|
||||
|
||||
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 查询客户提现账户表列表
|
||||
type TCustWithdrawAccountListReq struct {
|
||||
g.Meta `path:"/tCustWithdrawAccount/list" method:"get" tags:"客户提现账户表" summary:"获取客户提现账户表列表" x-check-permission:"cpm:agent:tCustWithdrawAccount:list"`
|
||||
model.TCustWithdrawAccountListParam
|
||||
}
|
||||
|
||||
type TCustWithdrawAccountListRes struct {
|
||||
response.PageResult
|
||||
Items []*model.TCustWithdrawAccountListModel `json:"items" dc:"数据列表"`
|
||||
}
|
||||
|
||||
// ExportReq 导出客户提现账户表列表
|
||||
type TCustWithdrawAccountExportReq struct {
|
||||
g.Meta `path:"/tCustWithdrawAccount/export" method:"post" tags:"客户提现账户表" summary:"导出客户提现账户表列表" x-check-permission:"cpm:agent:tCustWithdrawAccount:export"`
|
||||
model.TCustWithdrawAccountListParam
|
||||
}
|
||||
|
||||
type TCustWithdrawAccountExportRes struct{}
|
||||
|
||||
// ViewReq 获取客户提现账户表指定信息
|
||||
type TCustWithdrawAccountViewReq struct {
|
||||
g.Meta `path:"/tCustWithdrawAccount/view" method:"get" tags:"客户提现账户表" summary:"获取客户提现账户表指定信息" x-check-permission:"cpm:agent:tCustWithdrawAccount:view"`
|
||||
model.TCustWithdrawAccountViewParam
|
||||
}
|
||||
|
||||
type TCustWithdrawAccountViewRes struct {
|
||||
*model.TCustWithdrawAccountViewModel
|
||||
}
|
||||
|
||||
// EditReq 修改/新增客户提现账户表
|
||||
type TCustWithdrawAccountEditReq struct {
|
||||
g.Meta `path:"/tCustWithdrawAccount/edit" method:"post" tags:"客户提现账户表" summary:"修改/新增客户提现账户表" x-check-permission:"cpm:agent:tCustWithdrawAccount:edit"`
|
||||
model.TCustWithdrawAccountEditParam
|
||||
}
|
||||
|
||||
type TCustWithdrawAccountEditRes struct{}
|
||||
|
||||
// DeleteReq 删除客户提现账户表
|
||||
type TCustWithdrawAccountDeleteReq struct {
|
||||
g.Meta `path:"/tCustWithdrawAccount/delete" method:"post" tags:"客户提现账户表" summary:"删除客户提现账户表" x-check-permission:"cpm:agent:tCustWithdrawAccount:delete"`
|
||||
model.TCustWithdrawAccountDeleteParam
|
||||
}
|
||||
|
||||
type TCustWithdrawAccountDeleteRes struct{}
|
||||
|
||||
// StatusReq 更新客户提现账户表状态
|
||||
type TCustWithdrawAccountStatusReq struct {
|
||||
g.Meta `path:"/tCustWithdrawAccount/status" method:"post" tags:"客户提现账户表" summary:"更新客户提现账户表状态" x-check-permission:"cpm:agent:tCustWithdrawAccount:status"`
|
||||
model.TCustWithdrawAccountStatusParam
|
||||
}
|
||||
|
||||
type TCustWithdrawAccountStatusRes struct{}
|
||||
Reference in New Issue
Block a user