59eb34976a
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 已说明。
117 lines
5.0 KiB
Go
117 lines
5.0 KiB
Go
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 TSimPoolBindPackageListReq struct {
|
|
g.Meta `path:"/tSimPoolBindPackage/list" method:"get" tags:"卡池加油包订购表" summary:"获取卡池加油包订购表列表" x-check-permission:"cpm:iot:tSimPoolBindPackage:list"`
|
|
model.TSimPoolBindPackageListParam
|
|
}
|
|
|
|
type TSimPoolBindPackageListRes struct {
|
|
response.PageResult
|
|
Items []*model.TSimPoolBindPackageListModel `json:"items" dc:"数据列表"`
|
|
}
|
|
|
|
type TSimPoolBindPackageExportReq struct {
|
|
g.Meta `path:"/tSimPoolBindPackage/export" method:"post" tags:"卡池加油包订购表" summary:"导出卡池加油包订购表列表" x-check-permission:"cpm:iot:tSimPoolBindPackage:export"`
|
|
model.TSimPoolBindPackageListParam
|
|
}
|
|
|
|
type TSimPoolBindPackageExportRes struct{}
|
|
|
|
type TSimPoolBindPackageViewReq struct {
|
|
g.Meta `path:"/tSimPoolBindPackage/view" method:"get" tags:"卡池加油包订购表" summary:"获取卡池加油包订购表详情" x-check-permission:"cpm:iot:tSimPoolBindPackage:view"`
|
|
model.TSimPoolBindPackageViewParam
|
|
}
|
|
|
|
type TSimPoolBindPackageViewRes struct {
|
|
*model.TSimPoolBindPackageViewModel
|
|
}
|
|
|
|
type TSimPoolBindPackageEditReq struct {
|
|
g.Meta `path:"/tSimPoolBindPackage/edit" method:"post" tags:"卡池加油包订购表" summary:"新增或修改卡池加油包订购表" x-check-permission:"cpm:iot:tSimPoolBindPackage:edit"`
|
|
model.TSimPoolBindPackageEditParam
|
|
}
|
|
|
|
type TSimPoolBindPackageEditRes struct{}
|
|
|
|
type TSimPoolBindPackageDeleteReq struct {
|
|
g.Meta `path:"/tSimPoolBindPackage/delete" method:"post" tags:"卡池加油包订购表" summary:"删除卡池加油包订购表" x-check-permission:"cpm:iot:tSimPoolBindPackage:delete"`
|
|
model.TSimPoolBindPackageDeleteParam
|
|
}
|
|
|
|
type TSimPoolBindPackageDeleteRes struct{}
|
|
|
|
type TSimPoolBindPackageAddPackageOptionsReq struct {
|
|
g.Meta `path:"/tSimPoolBindPackage/addPackage/options" method:"post" tags:"加油包" summary:"获取流量池可订购加油包" x-check-permission:"cpm:iot:tSimPoolBindPackage:addPackage"`
|
|
model.TSimPoolAddPackageOptionsParam
|
|
}
|
|
|
|
type TSimPoolBindPackageAddPackageOptionsRes struct {
|
|
*model.TSimAddPackageOptionsRes
|
|
}
|
|
|
|
type TSimPoolBindPackageAddPackagePaymentContextReq struct {
|
|
g.Meta `path:"/tSimPoolBindPackage/addPackage/payment-context" method:"post" tags:"加油包" summary:"获取流量池加油包支付上下文" x-check-permission:"cpm:iot:tSimPoolBindPackage:addPackage"`
|
|
}
|
|
|
|
type TSimPoolBindPackageAddPackagePaymentContextRes struct {
|
|
*model.TSimAddPackageOptionsRes
|
|
}
|
|
|
|
type TSimPoolBindPackageDownloadExcelTemplateReq struct {
|
|
g.Meta `path:"/tSimPoolBindPackage/addPackage/excel/template" method:"get" tags:"加油包" summary:"下载流量池加油包导入模板" x-check-permission:"cpm:iot:tSimPoolBindPackage:addPackage"`
|
|
}
|
|
|
|
type TSimPoolBindPackageDownloadExcelTemplateRes struct{}
|
|
|
|
type TSimPoolBindPackageSubmitExcelReq struct {
|
|
g.Meta `path:"/tSimPoolBindPackage/addPackage/excel/submit" method:"post" tags:"加油包" summary:"提交流量池加油包Excel批次" x-check-permission:"cpm:iot:tSimPoolBindPackage:addPackage"`
|
|
model.TSimPoolBindPackageAddPackageExcelSubmitParam
|
|
}
|
|
|
|
type TSimPoolBindPackageSubmitExcelRes struct {
|
|
*model.TSimPoolBindPackageAddPackageExcelSubmitRes
|
|
}
|
|
|
|
type TSimPoolBindPackageSubmitInputReq struct {
|
|
g.Meta `path:"/tSimPoolBindPackage/addPackage/input/submit" method:"post" tags:"加油包" summary:"提交流量池加油包手输批次" x-check-permission:"cpm:iot:tSimPoolBindPackage:addPackage"`
|
|
model.TSimPoolBindPackageAddPackageInputSubmitParam
|
|
}
|
|
|
|
type TSimPoolBindPackageSubmitInputRes struct {
|
|
*model.TSimPoolBindPackageAddPackageInputSubmitRes
|
|
}
|
|
|
|
type TSimPoolBindPackageAddPackageInputPrepareReq struct {
|
|
g.Meta `path:"/tSimPoolBindPackage/addPackage/input/prepare" method:"post" tags:"加油包" summary:"流量池加油包手输预处理" x-check-permission:"cpm:iot:tSimPoolBindPackage:addPackage"`
|
|
model.TSimPoolBindPackageAddPackageInputPrepareParam
|
|
}
|
|
|
|
type TSimPoolBindPackageAddPackageInputPrepareRes struct {
|
|
*model.TSimPoolBindPackageAddPackageInputPrepareRes
|
|
}
|
|
|
|
type TSimPoolBindPackageAddPackagePrepareResultReq struct {
|
|
g.Meta `path:"/tSimPoolBindPackage/addPackage/prepare/result" method:"get" tags:"加油包" summary:"查询流量池加油包预处理结果" x-check-permission:"cpm:iot:tSimPoolBindPackage:addPackage"`
|
|
BatchNo string `json:"batchNo" v:"required#批次号不能为空" in:"query" dc:"批次号"`
|
|
}
|
|
|
|
type TSimPoolBindPackageAddPackagePrepareResultRes struct {
|
|
*model.TSimPoolBindPackageAddPackagePrepareResultRes
|
|
}
|
|
|
|
type TSimPoolBindPackageAddPackageBatchConfirmReq struct {
|
|
g.Meta `path:"/tSimPoolBindPackage/addPackage/batch/confirm" method:"post" tags:"加油包" summary:"确认流量池加油包采购批次" x-check-permission:"cpm:iot:tSimPoolBindPackage:addPackage"`
|
|
model.TSimPoolBindPackageAddPackageBatchConfirmParam
|
|
}
|
|
|
|
type TSimPoolBindPackageAddPackageBatchConfirmRes struct {
|
|
*model.TSimPoolBindPackageAddPackageBatchConfirmRes
|
|
}
|