Skip to content

Commit cbdf1cd

Browse files
author
pixel
committed
取消comment后携带的''
1 parent 3fbb2ab commit cbdf1cd

15 files changed

+83
-83
lines changed

server/model/exa_customer.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ import (
66

77
type ExaCustomer struct {
88
gorm.Model
9-
CustomerName string `json:"customerName" form:"customerName" gorm:"comment:'客户名'"`
10-
CustomerPhoneData string `json:"customerPhoneData" form:"customerPhoneData" gorm:"comment:'客户手机号'"`
11-
SysUserID uint `json:"sysUserId" form:"sysUserId" gorm:"comment:'管理ID'"`
12-
SysUserAuthorityID string `json:"sysUserAuthorityID" form:"sysUserAuthorityID" gorm:"comment:'管理角色ID'"`
13-
SysUser SysUser `json:"sysUser" form:"sysUser" gorm:"comment:'管理详情'"`
9+
CustomerName string `json:"customerName" form:"customerName" gorm:"comment:客户名"`
10+
CustomerPhoneData string `json:"customerPhoneData" form:"customerPhoneData" gorm:"comment:客户手机号"`
11+
SysUserID uint `json:"sysUserId" form:"sysUserId" gorm:"comment:管理ID"`
12+
SysUserAuthorityID string `json:"sysUserAuthorityID" form:"sysUserAuthorityID" gorm:"comment:管理角色ID"`
13+
SysUser SysUser `json:"sysUser" form:"sysUser" gorm:"comment:管理详情"`
1414
}

server/model/exa_file_upload_download.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ import (
66

77
type ExaFileUploadAndDownload struct {
88
gorm.Model
9-
Name string `json:"name" gorm:"comment:'文件名'"`
10-
Url string `json:"url" gorm:"comment:'文件地址'"`
11-
Tag string `json:"tag" gorm:"comment:'文件标签'"`
12-
Key string `json:"key" gorm:"comment:'编号'"`
9+
Name string `json:"name" gorm:"comment:文件名"`
10+
Url string `json:"url" gorm:"comment:文件地址"`
11+
Tag string `json:"tag" gorm:"comment:文件标签"`
12+
Key string `json:"key" gorm:"comment:编号"`
1313
}
Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
package model
22

33
type ExaSimpleUploader struct {
4-
ChunkNumber string `json:"chunkNumber" gorm:"comment:'当前切片标记'"`
5-
CurrentChunkSize string `json:"currentChunkSize" gorm:"comment:'当前切片容量'"`
6-
CurrentChunkPath string `json:"currentChunkPath" gorm:"comment:'切片本地路径'"`
7-
TotalSize string `json:"totalSize" gorm:"comment:'总容量'"`
8-
Identifier string `json:"identifier" gorm:"comment:'文件标识(md5)'"`
9-
Filename string `json:"filename" gorm:"comment:'文件名'"`
10-
TotalChunks string `json:"totalChunks" gorm:"comment:'切片总数'"`
11-
IsDone bool `json:"isDone" gorm:"comment:'是否上传完成'"`
12-
FilePath string `json:"filePath" gorm:"comment:'文件本地路径'"`
4+
ChunkNumber string `json:"chunkNumber" gorm:"comment:当前切片标记"`
5+
CurrentChunkSize string `json:"currentChunkSize" gorm:"comment:当前切片容量"`
6+
CurrentChunkPath string `json:"currentChunkPath" gorm:"comment:切片本地路径"`
7+
TotalSize string `json:"totalSize" gorm:"comment:总容量"`
8+
Identifier string `json:"identifier" gorm:"comment:文件标识(md5)"`
9+
Filename string `json:"filename" gorm:"comment:文件名"`
10+
TotalChunks string `json:"totalChunks" gorm:"comment:切片总数"`
11+
IsDone bool `json:"isDone" gorm:"comment:是否上传完成"`
12+
FilePath string `json:"filePath" gorm:"comment:文件本地路径"`
1313
}

server/model/sys_api.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ import (
66

77
type SysApi struct {
88
gorm.Model
9-
Path string `json:"path" gorm:"comment:'api路径'"`
10-
Description string `json:"description" gorm:"comment:'api中文描述'"`
11-
ApiGroup string `json:"apiGroup" gorm:"comment:'api组'"`
12-
Method string `json:"method" gorm:"default:'POST'" gorm:"comment:'方法'"`
9+
Path string `json:"path" gorm:"comment:api路径"`
10+
Description string `json:"description" gorm:"comment:api中文描述"`
11+
ApiGroup string `json:"apiGroup" gorm:"comment:api组"`
12+
Method string `json:"method" gorm:"default:POST" gorm:"comment:方法"`
1313
}

server/model/sys_authority.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ type SysAuthority struct {
88
CreatedAt time.Time
99
UpdatedAt time.Time
1010
DeletedAt *time.Time `sql:"index"`
11-
AuthorityId string `json:"authorityId" gorm:"not null;unique;primary_key;comment:'角色ID';size:90"`
12-
AuthorityName string `json:"authorityName" gorm:"comment:'角色名'"`
13-
ParentId string `json:"parentId" gorm:"comment:'父角色ID'"`
11+
AuthorityId string `json:"authorityId" gorm:"not null;unique;primary_key;comment:角色ID;size:90"`
12+
AuthorityName string `json:"authorityName" gorm:"comment:角色名"`
13+
ParentId string `json:"parentId" gorm:"comment:父角色ID"`
1414
DataAuthorityId []SysAuthority `json:"dataAuthorityId" gorm:"many2many:sys_data_authority_id"`
1515
Children []SysAuthority `json:"children" gorm:"-"`
1616
SysBaseMenus []SysBaseMenu `json:"menus" gorm:"many2many:sys_authority_menus;"`

server/model/sys_authority_menu.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ package model
22

33
type SysMenu struct {
44
SysBaseMenu
5-
MenuId string `json:"menuId" gorm:"comment:'菜单ID'"`
6-
AuthorityId string `json:"-" gorm:"comment:'角色ID'"`
5+
MenuId string `json:"menuId" gorm:"comment:菜单ID"`
6+
AuthorityId string `json:"-" gorm:"comment:角色ID"`
77
Children []SysMenu `json:"children" gorm:"-"`
88
Parameters []SysBaseMenuParameter `json:"parameters" gorm:"foreignKey:SysBaseMenuID;references:MenuId"`
99
}

server/model/sys_base_menu.go

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -7,23 +7,23 @@ import (
77
type SysBaseMenu struct {
88
gorm.Model
99
MenuLevel uint `json:"-"`
10-
ParentId string `json:"parentId" gorm:"comment:'父菜单ID'"`
11-
Path string `json:"path" gorm:"comment:'路由path'"`
12-
Name string `json:"name" gorm:"comment:'路由name'"`
13-
Hidden bool `json:"hidden" gorm:"comment:'是否在列表隐藏'"`
14-
Component string `json:"component" gorm:"comment:'对应前端文件路径'"`
15-
Sort int `json:"sort" gorm:"comment:'排序标记'"`
16-
Meta `json:"meta" gorm:"comment:'附加属性'"`
10+
ParentId string `json:"parentId" gorm:"comment:父菜单ID"`
11+
Path string `json:"path" gorm:"comment:路由path"`
12+
Name string `json:"name" gorm:"comment:路由name"`
13+
Hidden bool `json:"hidden" gorm:"comment:是否在列表隐藏"`
14+
Component string `json:"component" gorm:"comment:对应前端文件路径"`
15+
Sort int `json:"sort" gorm:"comment:排序标记"`
16+
Meta `json:"meta" gorm:"comment:附加属性"`
1717
SysAuthoritys []SysAuthority `json:"authoritys" gorm:"many2many:sys_authority_menus;"`
1818
Children []SysBaseMenu `json:"children" gorm:"-"`
1919
Parameters []SysBaseMenuParameter `json:"parameters"`
2020
}
2121

2222
type Meta struct {
23-
KeepAlive bool `json:"keepAlive" gorm:"comment:'是否缓存'"`
24-
DefaultMenu bool `json:"defaultMenu" gorm:"comment:'是否是基础路由(开发中)'"`
25-
Title string `json:"title" gorm:"comment:'菜单名'"`
26-
Icon string `json:"icon" gorm:"comment:'菜单图标'"`
23+
KeepAlive bool `json:"keepAlive" gorm:"comment:是否缓存"`
24+
DefaultMenu bool `json:"defaultMenu" gorm:"comment:是否是基础路由(开发中)"`
25+
Title string `json:"title" gorm:"comment:菜单名"`
26+
Icon string `json:"icon" gorm:"comment:菜单图标"`
2727
}
2828

2929
type SysBaseMenuParameter struct {

server/model/sys_dictionary.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ import (
88
// 如果含有time.Time 请自行import time包
99
type SysDictionary struct {
1010
gorm.Model
11-
Name string `json:"name" form:"name" gorm:"column:name;comment:'字典名(中)'"`
12-
Type string `json:"type" form:"type" gorm:"column:type;comment:'字典名(英)'"`
13-
Status *bool `json:"status" form:"status" gorm:"column:status;comment:'状态'"`
14-
Desc string `json:"desc" form:"desc" gorm:"column:desc;comment:'描述'"`
11+
Name string `json:"name" form:"name" gorm:"column:name;comment:字典名(中)"`
12+
Type string `json:"type" form:"type" gorm:"column:type;comment:字典名(英)"`
13+
Status *bool `json:"status" form:"status" gorm:"column:status;comment:状态"`
14+
Desc string `json:"desc" form:"desc" gorm:"column:desc;comment:描述"`
1515
SysDictionaryDetails []SysDictionaryDetail `json:"sysDictionaryDetails" form:"sysDictionaryDetails"`
1616
}

server/model/sys_dictionary_detail.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ import (
88
// 如果含有time.Time 请自行import time包
99
type SysDictionaryDetail struct {
1010
gorm.Model
11-
Label string `json:"label" form:"label" gorm:"column:label;comment:'展示值'"`
12-
Value int `json:"value" form:"value" gorm:"column:value;comment:'字典值'"`
13-
Status *bool `json:"status" form:"status" gorm:"column:status;comment:'启用状态'"`
14-
Sort int `json:"sort" form:"sort" gorm:"column:sort;comment:'排序标记'"`
15-
SysDictionaryID int `json:"sysDictionaryID" form:"sysDictionaryID" gorm:"column:sys_dictionary_id;comment:'关联标记'"`
11+
Label string `json:"label" form:"label" gorm:"column:label;comment:展示值"`
12+
Value int `json:"value" form:"value" gorm:"column:value;comment:字典值"`
13+
Status *bool `json:"status" form:"status" gorm:"column:status;comment:启用状态"`
14+
Sort int `json:"sort" form:"sort" gorm:"column:sort;comment:排序标记"`
15+
SysDictionaryID int `json:"sysDictionaryID" form:"sysDictionaryID" gorm:"column:sys_dictionary_id;comment:关联标记"`
1616
}

server/model/sys_jwt_blacklist.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@ import (
66

77
type JwtBlacklist struct {
88
gorm.Model
9-
Jwt string `gorm:"type:text;comment:'jwt'"`
9+
Jwt string `gorm:"type:text;comment:jwt"`
1010
}

0 commit comments

Comments
 (0)