feat 调整 mysql 、pgsql 初始化数据; 完善pgsql 兼容性,适配代码生成逻辑

This commit is contained in:
孟帅
2025-11-08 12:40:03 +08:00
parent 3989996448
commit a7234bc330
49 changed files with 5360 additions and 5201 deletions

View File

@@ -10,7 +10,7 @@ import (
// PayRefund is the golang structure for table pay_refund.
type PayRefund struct {
Id uint64 `json:"id" orm:"id" description:"主键ID"`
Id int64 `json:"id" orm:"id" description:"主键ID"`
MemberId int64 `json:"memberId" orm:"member_id" description:"会员ID"`
AppId string `json:"appId" orm:"app_id" description:"应用ID"`
OrderSn string `json:"orderSn" orm:"order_sn" description:"业务订单号"`

View File

@@ -14,7 +14,7 @@ type SysAddonsConfig struct {
AddonName string `json:"addonName" orm:"addon_name" description:"插件名称"`
Group string `json:"group" orm:"group" description:"分组"`
Name string `json:"name" orm:"name" description:"参数名称"`
Type string `json:"type" orm:"type" description:"键值类型:string,int,uint,bool,datetime,date"`
Type string `json:"type" orm:"type" description:"键值类型:string,int,uint,bool,TIMESTAMP,date"`
Key string `json:"key" orm:"key" description:"参数键名"`
Value string `json:"value" orm:"value" description:"参数键值"`
DefaultValue string `json:"defaultValue" orm:"default_value" description:"默认值"`

View File

@@ -13,7 +13,7 @@ type SysAttachment struct {
Id int64 `json:"id" orm:"id" description:"文件ID"`
AppId string `json:"appId" orm:"app_id" description:"应用ID"`
MemberId int64 `json:"memberId" orm:"member_id" description:"管理员ID"`
CateId uint64 `json:"cateId" orm:"cate_id" description:"上传分类"`
CateId int64 `json:"cateId" orm:"cate_id" description:"上传分类"`
Drive string `json:"drive" orm:"drive" description:"上传驱动"`
Name string `json:"name" orm:"name" description:"文件原始名"`
Kind string `json:"kind" orm:"kind" description:"上传类型"`

View File

@@ -13,7 +13,7 @@ type SysConfig struct {
Id int64 `json:"id" orm:"id" description:"配置ID"`
Group string `json:"group" orm:"group" description:"配置分组"`
Name string `json:"name" orm:"name" description:"参数名称"`
Type string `json:"type" orm:"type" description:"键值类型:string,int,uint,bool,datetime,date"`
Type string `json:"type" orm:"type" description:"键值类型:string,int,uint,bool,TIMESTAMP,date"`
Key string `json:"key" orm:"key" description:"参数键名"`
Value string `json:"value" orm:"value" description:"参数键值"`
DefaultValue string `json:"defaultValue" orm:"default_value" description:"默认值"`

View File

@@ -13,7 +13,7 @@ type SysDictData struct {
Id int64 `json:"id" orm:"id" description:"字典数据ID"`
Label string `json:"label" orm:"label" description:"字典标签"`
Value string `json:"value" orm:"value" description:"字典键值"`
ValueType string `json:"valueType" orm:"value_type" description:"键值数据类型string,int,uint,bool,datetime,date"`
ValueType string `json:"valueType" orm:"value_type" description:"键值数据类型string,int,uint,bool,TIMESTAMP,date"`
Type string `json:"type" orm:"type" description:"字典类型"`
ListClass string `json:"listClass" orm:"list_class" description:"表格回显样式"`
IsDefault int `json:"isDefault" orm:"is_default" description:"是否为系统默认"`

View File

@@ -12,7 +12,7 @@ import (
// SysGenCodes is the golang structure for table sys_gen_codes.
type SysGenCodes struct {
Id int64 `json:"id" orm:"id" description:"生成ID"`
GenType uint `json:"genType" orm:"gen_type" description:"生成类型"`
GenType int `json:"genType" orm:"gen_type" description:"生成类型"`
GenTemplate int `json:"genTemplate" orm:"gen_template" description:"生成模板"`
VarName string `json:"varName" orm:"var_name" description:"实体命名"`
Options *gjson.Json `json:"options" orm:"options" description:"配置选项"`

View File

@@ -14,7 +14,7 @@ type SysLog struct {
Id int64 `json:"id" orm:"id" description:"日志ID"`
ReqId string `json:"reqId" orm:"req_id" description:"对外ID"`
AppId string `json:"appId" orm:"app_id" description:"应用ID"`
MerchantId uint64 `json:"merchantId" orm:"merchant_id" description:"商户ID"`
MerchantId int64 `json:"merchantId" orm:"merchant_id" description:"商户ID"`
MemberId int64 `json:"memberId" orm:"member_id" description:"用户ID"`
Method string `json:"method" orm:"method" description:"提交类型"`
Module string `json:"module" orm:"module" description:"访问模块"`