-
-
Notifications
You must be signed in to change notification settings - Fork 41
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refactor: V2版本API重构-登录/base模块 #1096
base: master
Are you sure you want to change the base?
Conversation
试一下bot( |
@@ -0,0 +1,248 @@ | |||
package ui |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚫 [golangci-lint] reported by reviewdog 🐶
: # sealdice-core/api/v2/ui
} | ||
} | ||
|
||
closeConnection(diceInstance.DBData) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚫 [golangci-lint] reported by reviewdog 🐶
cannot use diceInstance.DBData (variable of type *gorm.DB) as *sqlx.DB value in argument to closeConnection
} | ||
|
||
closeConnection(diceInstance.DBData) | ||
closeConnection(diceInstance.DBLogs) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚫 [golangci-lint] reported by reviewdog 🐶
cannot use diceInstance.DBLogs (variable of type *gorm.DB) as *sqlx.DB value in argument to closeConnection
closeConnection(diceInstance.DBLogs) | ||
|
||
if cm := diceInstance.CensorManager; cm != nil { | ||
closeConnection(cm.DB) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚫 [golangci-lint] reported by reviewdog 🐶
cannot use cm.DB (variable of type *gorm.DB) as *sqlx.DB value in argument to closeConnection (typecheck)
package v2 | ||
|
||
import ( | ||
"sealdice-core/api/v2/ui" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚫 [golangci-lint] reported by reviewdog 🐶
could not import sealdice-core/api/v2/ui (-: # sealdice-core/api/v2/ui
} | ||
} | ||
|
||
closeConnection(diceInstance.DBData) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚫 [golangci-lint] reported by reviewdog 🐶
cannot use diceInstance.DBData (variable of type *gorm.DB) as *sqlx.DB value in argument to closeConnection
} | ||
|
||
closeConnection(diceInstance.DBData) | ||
closeConnection(diceInstance.DBLogs) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚫 [golangci-lint] reported by reviewdog 🐶
cannot use diceInstance.DBLogs (variable of type *gorm.DB) as *sqlx.DB value in argument to closeConnection
closeConnection(diceInstance.DBLogs) | ||
|
||
if cm := diceInstance.CensorManager; cm != nil { | ||
closeConnection(cm.DB) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚫 [golangci-lint] reported by reviewdog 🐶
cannot use cm.DB (variable of type *gorm.DB) as *sqlx.DB value in argument to closeConnection) (typecheck)
当前进度:编写了登录(signin)和base(没有任何前缀)的两个模块试水。
添加了V2需要使用的框架和相关的底层代码
SWAGGER文档注释:准确度不保证。且未测试过是否可以生成文档。