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,177 @@
|
||||
// package model
|
||||
// @Link https://github.com/xiujiecn/xiu-admin
|
||||
// @Copyright Copyright (c) 2025 LiXiujie
|
||||
// @Author Lxj <li@xiujie.cn>
|
||||
// @License https://github.com/xiujiecn/xiu-admin/blob/master/LICENSE
|
||||
package model
|
||||
|
||||
import (
|
||||
"git.5iot.com/iotlcm-public/iotlcm-admin-svr/internal/model/request"
|
||||
|
||||
"github.com/gogf/gf/v2/os/gtime"
|
||||
"github.com/gogf/gf/v2/util/gmeta"
|
||||
)
|
||||
|
||||
type SysDictTypeListModel struct {
|
||||
gmeta.Meta `orm:"table:sys_dict_type"`
|
||||
DictId int64 `json:"dictId" orm:"dict_id" description:"字典主键"`
|
||||
TenantId string `json:"tenantId" orm:"tenant_id" description:"租户编号"`
|
||||
DictName string `json:"dictName" orm:"dict_name" description:"字典名称"`
|
||||
DictType string `json:"dictType" orm:"dict_type" description:"字典类型"`
|
||||
IsSys string `json:"isSys" orm:"is_sys" description:"是否系统(0是 1否)"`
|
||||
CreatedDept int64 `json:"createdDept" orm:"created_dept" description:"创建部门"`
|
||||
CreatedBy int64 `json:"createdBy" orm:"created_by" description:"创建者"`
|
||||
CreatedAt *gtime.Time `json:"createdAt" orm:"created_at" description:"创建时间"`
|
||||
Remark string `json:"remark" orm:"remark" description:"备注"`
|
||||
}
|
||||
|
||||
type SysDictTypeListParam struct {
|
||||
request.PageInfo
|
||||
DictName string `json:"dictName" description:"字典名称"`
|
||||
DictType string `json:"dictType" description:"字典类型"`
|
||||
IsSys string `json:"isSys" description:"是否系统(0是 1否)"`
|
||||
CreatedAt []string `json:"createdAt" description:"创建时间"`
|
||||
}
|
||||
|
||||
type SysDictTypeViewParam struct {
|
||||
DictId int64 `json:"dictId" description:"字典主键"`
|
||||
IsSys string `json:"isSys" description:"是否系统(0是 1否)"`
|
||||
DictType string `json:"dictType" orm:"dict_type" description:"字典类型"`
|
||||
}
|
||||
|
||||
type SysDictTypeViewModel struct {
|
||||
gmeta.Meta `orm:"table:sys_dict_type"`
|
||||
DictId int64 `json:"dictId" orm:"dict_id" description:"字典主键"`
|
||||
TenantId string `json:"tenantId" orm:"tenant_id" description:"租户编号"`
|
||||
DictName string `json:"dictName" orm:"dict_name" description:"字典名称"`
|
||||
DictType string `json:"dictType" orm:"dict_type" description:"字典类型"`
|
||||
IsSys string `json:"isSys" orm:"is_sys" description:"是否系统(0是 1否)"`
|
||||
CreatedDept int64 `json:"createdDept" orm:"created_dept" description:"创建部门"`
|
||||
CreatedBy int64 `json:"createdBy" orm:"created_by" description:"创建者"`
|
||||
CreatedAt *gtime.Time `json:"createdAt" orm:"created_at" description:"创建时间"`
|
||||
UpdatedBy int64 `json:"updatedBy" orm:"updated_by" description:"更新者"`
|
||||
UpdatedAt *gtime.Time `json:"updatedAt" orm:"updated_at" description:"更新时间"`
|
||||
Remark string `json:"remark" orm:"remark" description:"备注"`
|
||||
}
|
||||
|
||||
type SysDictTypeAddParam struct {
|
||||
DictName string `json:"dictName" description:"字典名称"`
|
||||
DictType string `json:"dictType" description:"字典类型"`
|
||||
IsSys string `json:"isSys" description:"是否系统(0是 1否)"`
|
||||
Remark string `json:"remark" description:"备注"`
|
||||
}
|
||||
|
||||
type SysDictTypeAddModel struct {
|
||||
DictId int64 `json:"dictId" description:"字典主键"`
|
||||
}
|
||||
|
||||
type SysDictTypeEditParam struct {
|
||||
DictId int64 `json:"dictId" description:"字典主键"`
|
||||
DictName string `json:"dictName" description:"字典名称"`
|
||||
DictType string `json:"dictType" description:"字典类型"`
|
||||
IsSys string `json:"isSys" description:"是否系统(0是 1否)"`
|
||||
Remark string `json:"remark" description:"备注"`
|
||||
}
|
||||
|
||||
type SysDictTypeEditModel struct {
|
||||
DictId int64 `json:"dictId" description:"字典主键"`
|
||||
}
|
||||
|
||||
type SysDictTypeDeleteParam struct {
|
||||
gmeta.Meta `orm:"table:sys_dict_type"`
|
||||
DictIds []int64 `json:"dictIds" description:"字典主键"`
|
||||
}
|
||||
|
||||
type SysDictTypeDeleteModel struct {
|
||||
DictIds []int64 `json:"dictIds" description:"字典主键"`
|
||||
}
|
||||
|
||||
type SysDictDataListModel struct {
|
||||
gmeta.Meta `orm:"table:sys_dict_data"`
|
||||
DictCode int64 `json:"dictCode" orm:"dict_code" description:"字典编码"`
|
||||
TenantId string `json:"tenantId" orm:"tenant_id" description:"租户编号"`
|
||||
DictSort int `json:"dictSort" orm:"dict_sort" description:"字典排序"`
|
||||
DictLabel string `json:"dictLabel" orm:"dict_label" description:"字典标签"`
|
||||
DictValue string `json:"dictValue" orm:"dict_value" description:"字典键值"`
|
||||
DictType string `json:"dictType" orm:"dict_type" description:"字典类型"`
|
||||
CssClass string `json:"cssClass" orm:"css_class" description:"样式属性(其他样式扩展)"`
|
||||
ListClass string `json:"listClass" orm:"list_class" description:"表格回显样式"`
|
||||
IsDefault string `json:"isDefault" orm:"is_default" description:"是否默认(Y是 N否)"`
|
||||
CreatedDept int64 `json:"createdDept" orm:"created_dept" description:"创建部门"`
|
||||
CreatedBy int64 `json:"createdBy" orm:"created_by" description:"创建者"`
|
||||
CreatedAt *gtime.Time `json:"createdAt" orm:"created_at" description:"创建时间"`
|
||||
Remark string `json:"remark" orm:"remark" description:"备注"`
|
||||
}
|
||||
|
||||
type SysDictDataList struct {
|
||||
SysDictTypeListModel
|
||||
Items []SysDictDataListModel `json:"items" orm:"with:dict_type=dict_type"`
|
||||
}
|
||||
|
||||
type SysDictDataListParam struct {
|
||||
request.PageInfo
|
||||
DictId int64 `json:"dictId"`
|
||||
DictType string `json:"dictType"`
|
||||
DictValue string `json:"dictValue"`
|
||||
}
|
||||
|
||||
type SysDictDataViewParam struct {
|
||||
DictCode int64 `json:"dictCode" description:"字典编码"`
|
||||
}
|
||||
|
||||
type SysDictDataViewModel struct {
|
||||
DictCode int64 `json:"dictCode" description:"字典编码"`
|
||||
TenantId string `json:"tenantId" description:"租户编号"`
|
||||
DictSort int `json:"dictSort" description:"字典排序"`
|
||||
DictLabel string `json:"dictLabel" description:"字典标签"`
|
||||
DictValue string `json:"dictValue" description:"字典键值"`
|
||||
DictType string `json:"dictType" description:"字典类型"`
|
||||
CssClass string `json:"cssClass" description:"样式属性(其他样式扩展)"`
|
||||
ListClass string `json:"listClass" description:"表格回显样式"`
|
||||
IsDefault string `json:"isDefault" description:"是否默认(Y是 N否)"`
|
||||
CreatedDept int64 `json:"createdDept" description:"创建部门"`
|
||||
CreatedBy int64 `json:"createdBy" description:"创建者"`
|
||||
CreatedAt *gtime.Time `json:"createdAt" description:"创建时间"`
|
||||
UpdatedBy int64 `json:"updatedBy" description:"更新者"`
|
||||
UpdatedAt *gtime.Time `json:"updatedAt" description:"更新时间"`
|
||||
Remark string `json:"remark" description:"备注"`
|
||||
}
|
||||
|
||||
type SysDictDataAddParam struct {
|
||||
DictSort int `json:"dictSort" description:"字典排序"`
|
||||
DictLabel string `json:"dictLabel" description:"字典标签"`
|
||||
DictValue string `json:"dictValue" description:"字典键值"`
|
||||
DictType string `json:"dictType" description:"字典类型"`
|
||||
CssClass string `json:"cssClass" description:"样式属性(其他样式扩展)"`
|
||||
ListClass string `json:"listClass" description:"表格回显样式"`
|
||||
IsDefault string `json:"isDefault" description:"是否默认(Y是 N否)"`
|
||||
Remark string `json:"remark" description:"备注"`
|
||||
}
|
||||
|
||||
type SysDictDataAddModel struct {
|
||||
DictCode int64 `json:"dictCode" description:"字典编码"`
|
||||
}
|
||||
|
||||
type SysDictDataEditParam struct {
|
||||
DictCode int64 `json:"dictCode" description:"字典编码"`
|
||||
DictSort int `json:"dictSort" description:"字典排序"`
|
||||
DictLabel string `json:"dictLabel" description:"字典标签"`
|
||||
DictValue string `json:"dictValue" description:"字典键值"`
|
||||
DictType string `json:"dictType" description:"字典类型"`
|
||||
CssClass string `json:"cssClass" description:"样式属性(其他样式扩展)"`
|
||||
ListClass string `json:"listClass" description:"表格回显样式"`
|
||||
IsDefault string `json:"isDefault" description:"是否默认(Y是 N否)"`
|
||||
Remark string `json:"remark" description:"备注"`
|
||||
}
|
||||
|
||||
type SysDictDataEditModel struct {
|
||||
DictCode int64 `json:"dictCode" description:"字典编码"`
|
||||
}
|
||||
|
||||
type SysDictDataDeleteParam struct {
|
||||
DictCodes []int64 `json:"dictCodes" description:"字典编码"`
|
||||
}
|
||||
|
||||
type SysDictDataDeleteModel struct {
|
||||
DictCodes []int64 `json:"dictCodes" description:"字典编码"`
|
||||
}
|
||||
Reference in New Issue
Block a user