add missing constraint for internal/dao/jinzhu

pull/703/head
alimy 7 months ago
parent 9d0052a11e
commit 4a72833f88
No known key found for this signature in database
GPG Key ID: 6964A0C5FE15145A

@ -12,8 +12,6 @@ import (
"gorm.io/gorm"
)
var _ core.AuthorizationManageService = (*authorizationManageSrv)(nil)
type authorizationManageSrv struct {
db *gorm.DB
}

@ -16,11 +16,6 @@ import (
"gorm.io/gorm"
)
var (
_ core.CommentService = (*commentSrv)(nil)
_ core.CommentManageService = (*commentManageSrv)(nil)
)
type commentSrv struct {
db *gorm.DB
}

@ -2,9 +2,38 @@
package jinzhu
import "github.com/rocboss/paopao-ce/internal/core"
import (
"github.com/rocboss/paopao-ce/internal/core"
)
var (
_ core.AuthorizationManageService = (*authorizationManageSrv)(nil)
_ core.CommentService = (*commentSrv)(nil)
_ core.CommentManageService = (*commentManageSrv)(nil)
_ core.ContactManageService = (*contactManageSrv)(nil)
_ core.FollowingManageService = (*followingManageSrv)(nil)
_ core.MessageService = (*messageSrv)(nil)
_ core.SecurityService = (*securitySrv)(nil)
_ core.TopicService = (*topicSrv)(nil)
_ core.TopicServantA = (*topicSrvA)(nil)
_ core.IndexPostsService = (*shipIndexSrv)(nil)
_ core.IndexPostsService = (*simpleIndexPostsSrv)(nil)
_ core.TweetService = (*tweetSrv)(nil)
_ core.TweetManageService = (*tweetManageSrv)(nil)
_ core.TweetHelpService = (*tweetHelpSrv)(nil)
_ core.TweetServantA = (*tweetSrvA)(nil)
_ core.TweetManageServantA = (*tweetManageSrvA)(nil)
_ core.TweetHelpServantA = (*tweetHelpSrvA)(nil)
_ core.UserManageService = (*userManageSrv)(nil)
_ core.WalletService = (*walletSrv)(nil)
_ core.DataService = (*dataSrv)(nil)
_ core.VersionInfo = (*dataSrv)(nil)

@ -14,8 +14,6 @@ import (
"gorm.io/gorm"
)
var _ core.ContactManageService = (*contactManageSrv)(nil)
type contactManageSrv struct {
db *gorm.DB
}

@ -12,8 +12,6 @@ import (
"gorm.io/gorm"
)
var _ core.FollowingManageService = (*followingManageSrv)(nil)
type followingManageSrv struct {
db *gorm.DB
f *dbr.Following

@ -12,8 +12,6 @@ import (
"gorm.io/gorm"
)
var _ core.MessageService = (*messageSrv)(nil)
type messageSrv struct {
db *gorm.DB
}

@ -15,8 +15,6 @@ import (
"gorm.io/gorm"
)
var _ core.SecurityService = (*securitySrv)(nil)
type securitySrv struct {
db *gorm.DB
rand *rand.Rand

@ -14,11 +14,6 @@ import (
"gorm.io/gorm"
)
var (
_ core.IndexPostsService = (*shipIndexSrv)(nil)
_ core.IndexPostsService = (*simpleIndexPostsSrv)(nil)
)
type shipIndexSrv struct {
ams core.AuthorizationManageService
ths core.TweetHelpService

@ -15,11 +15,6 @@ import (
"gorm.io/gorm"
)
var (
_ core.TopicService = (*topicSrv)(nil)
_ core.TopicServantA = (*topicSrvA)(nil)
)
type topicSrv struct {
db *gorm.DB
tnTopicUser string

@ -17,16 +17,6 @@ import (
"gorm.io/gorm"
)
var (
_ core.TweetService = (*tweetSrv)(nil)
_ core.TweetManageService = (*tweetManageSrv)(nil)
_ core.TweetHelpService = (*tweetHelpSrv)(nil)
_ core.TweetServantA = (*tweetSrvA)(nil)
_ core.TweetManageServantA = (*tweetManageSrvA)(nil)
_ core.TweetHelpServantA = (*tweetHelpSrvA)(nil)
)
type tweetSrv struct {
db *gorm.DB
}

@ -15,8 +15,6 @@ import (
"gorm.io/gorm"
)
var _ core.UserManageService = (*userManageSrv)(nil)
type userManageSrv struct {
db *gorm.DB
ums core.UserMetricServantA

@ -12,8 +12,6 @@ import (
"gorm.io/gorm"
)
var _ core.WalletService = (*walletSrv)(nil)
type walletSrv struct {
db *gorm.DB
}

Loading…
Cancel
Save