Skip to content

Commit de75750

Browse files
committed
修复 go fmt 问题
1 parent f6d5314 commit de75750

21 files changed

+46
-46
lines changed

server/api/v1/sys_auto_code.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,13 @@ func CreateTemp(c *gin.Context) {
2323
var a model.AutoCodeStruct
2424
_ = c.ShouldBindJSON(&a)
2525
AutoCodeVerify := utils.Rules{
26-
"Abbreviation": {utils.NotEmpty()},
27-
"StructName": {utils.NotEmpty()},
28-
"PackageName": {utils.NotEmpty()},
29-
"Fields": {utils.NotEmpty()},
26+
"Abbreviation": {utils.NotEmpty()},
27+
"StructName": {utils.NotEmpty()},
28+
"PackageName": {utils.NotEmpty()},
29+
"Fields": {utils.NotEmpty()},
3030
}
3131
WKVerifyErr := utils.Verify(a, AutoCodeVerify)
32-
if WKVerifyErr!=nil {
32+
if WKVerifyErr != nil {
3333
response.FailWithMessage(WKVerifyErr.Error(), c)
3434
return
3535
}

server/api/v1/sys_work_flow.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,13 @@ func CreateWorkFlow(c *gin.Context) {
1919
var wk model.SysWorkflow
2020
_ = c.ShouldBindJSON(&wk)
2121
WKVerify := utils.Rules{
22-
"WorkflowNickName": {utils.NotEmpty()},
23-
"WorkflowName": {utils.NotEmpty()},
24-
"WorkflowDescription": {utils.NotEmpty()},
25-
"WorkflowStepInfo": {utils.NotEmpty()},
22+
"WorkflowNickName": {utils.NotEmpty()},
23+
"WorkflowName": {utils.NotEmpty()},
24+
"WorkflowDescription": {utils.NotEmpty()},
25+
"WorkflowStepInfo": {utils.NotEmpty()},
2626
}
2727
WKVerifyErr := utils.Verify(wk, WKVerify)
28-
if WKVerifyErr!=nil {
28+
if WKVerifyErr != nil {
2929
response.FailWithMessage(WKVerifyErr.Error(), c)
3030
return
3131
}

server/config/config.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ type Redis struct {
4646
type Qiniu struct {
4747
AccessKey string `mapstructure:"access-key" json:"accessKey" yaml:"access-key"`
4848
SecretKey string `mapstructure:"secret-key" json:"secretKey" yaml:"secret-key"`
49-
Bucket string `mapstructure:"bucket" json:"bucket" yaml:"bucket"`
50-
ImgPath string `mapstructure:"img-path" json:"imgPath" yaml:"img-path"`
49+
Bucket string `mapstructure:"bucket" json:"bucket" yaml:"bucket"`
50+
ImgPath string `mapstructure:"img-path" json:"imgPath" yaml:"img-path"`
5151
}
5252

5353
type Captcha struct {

server/global/response/response.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,5 +50,5 @@ func FailWithMessage(message string, c *gin.Context) {
5050
}
5151

5252
func FailWithDetailed(code int, data interface{}, message string, c *gin.Context) {
53-
Result(code, data, message, c )
54-
}
53+
Result(code, data, message, c)
54+
}

server/model/exa_breakpoint_continue.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,4 @@ type ExaFileChunk struct {
2121
ExaFileId uint
2222
FileChunkNumber int
2323
FileChunkPath string
24-
}
24+
}

server/model/exa_customer.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@ type ExaCustomer struct {
1111
SysUserID uint `json:"sysUserId" form:"sysUserId"`
1212
SysUserAuthorityID string `json:"sysUserAuthorityID" form:"sysUserAuthorityID"`
1313
SysUser SysUser `json:"sysUser" form:"sysUser"`
14-
}
14+
}

server/model/exa_file_upload_download.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@ type ExaFileUploadAndDownload struct {
1010
Url string `json:"url"`
1111
Tag string `json:"tag"`
1212
Key string `json:"key"`
13-
}
13+
}

server/model/request/jwt.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@ type CustomClaims struct {
1212
NickName string
1313
AuthorityId string
1414
jwt.StandardClaims
15-
}
15+
}

server/model/request/sys_menu.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@ type AddMenuAuthorityInfo struct {
1111
// Get role by id structure
1212
type AuthorityIdInfo struct {
1313
AuthorityId string
14-
}
14+
}

server/model/request/sys_user.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,4 @@ type ChangePasswordStruct struct {
3030
type SetUserAuth struct {
3131
UUID uuid.UUID `json:"uuid"`
3232
AuthorityId string `json:"authorityId"`
33-
}
33+
}

0 commit comments

Comments
 (0)