43 lines
1.3 KiB
Go
43 lines
1.3 KiB
Go
package mongo
|
|
|
|
import (
|
|
"finclip-app-manager/domain/entity"
|
|
"finclip-app-manager/infrastructure/db/translator"
|
|
"finclip-app-manager/infrastructure/logger"
|
|
|
|
mgo "gitlab.finogeeks.club/finclip-backend-v2/finclip-mgo"
|
|
)
|
|
|
|
const (
|
|
AppTableName = "app"
|
|
AppVersionTableName = "appVersion"
|
|
menuInfoTableName = "menu_info"
|
|
TableWechatInfo = "wechatInfo"
|
|
TypeConfigTableName = "type_config"
|
|
)
|
|
|
|
var (
|
|
appTable = NewTable("app")
|
|
appVerTable = NewTable("appVersion")
|
|
menuInfoTable = NewTable("menu_info")
|
|
qrCodeInfoTable = NewTable("qr_code_info")
|
|
typeConfigTable = NewTable("type_config")
|
|
appTempInfoTable = NewTable("app_temp_info")
|
|
bindingTable = NewTable("binding")
|
|
bundleTable = NewTable("bundle")
|
|
linkAuditTable = NewTable("link_audit")
|
|
redDotTable = NewTable("red_dot_read_record")
|
|
bundleInfoTable = NewTable("bundle_info")
|
|
appBuildInfoTable = NewTable("appBuildInfo")
|
|
wechatTable = NewTable("wechatInfo")
|
|
privacyTable = NewTable("privacy_setting")
|
|
appOperConfigTable = NewTable("app_oper_config")
|
|
|
|
tr = translator.NewMgoTranslator()
|
|
log = logger.GetLogger()
|
|
)
|
|
|
|
func NotFound(err error) bool {
|
|
return err == mgo.ErrNotFound || err == entity.NotFoundErr || err == entity.ErrNotFound
|
|
}
|