Skip to content

Commit 0ac3b20

Browse files
authored
Update sys_api.go
修改文件 - server/model/sys_api.go 修复问题 - gorm tag 编写错误,使用分号进行分割,而不是写两个gorm tag
1 parent 377501e commit 0ac3b20

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/model/sys_api.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,5 @@ type SysApi struct {
99
Path string `json:"path" gorm:"comment:api路径"` // api路径
1010
Description string `json:"description" gorm:"comment:api中文描述"` // api中文描述
1111
ApiGroup string `json:"apiGroup" gorm:"comment:api组"` // api组
12-
Method string `json:"method" gorm:"default:POST" gorm:"comment:方法"` // 方法:创建POST(默认)|查看GET|更新PUT|删除DELETE
12+
Method string `json:"method" gorm:"default:POST;comment:方法"` // 方法:创建POST(默认)|查看GET|更新PUT|删除DELETE
1313
}

0 commit comments

Comments
 (0)