mirror of https://github.com/rocboss/paopao-ce
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
55 lines
1.7 KiB
55 lines
1.7 KiB
2 years ago
|
// Copyright 2023 ROC. All rights reserved.
|
||
|
// Use of this source code is governed by a MIT style
|
||
|
// license that can be found in the LICENSE file.
|
||
|
|
||
|
package jinzhu
|
||
|
|
||
|
import (
|
||
|
"github.com/rocboss/paopao-ce/internal/conf"
|
||
|
)
|
||
|
|
||
|
var (
|
||
|
tableAnouncement string
|
||
|
tableAnouncementContent string
|
||
|
tableAttachment string
|
||
|
tableCaptcha string
|
||
|
tableComment string
|
||
|
tableCommentContent string
|
||
|
tableCommentReply string
|
||
|
tableContact string
|
||
|
tableContactGroup string
|
||
|
tableMessage string
|
||
|
tablePost string
|
||
|
tablePostAttachmentBill string
|
||
|
tablePostCollection string
|
||
|
tablePostContent string
|
||
|
tablePostStar string
|
||
|
tableTag string
|
||
|
tableUser string
|
||
|
tableWalletRecharge string
|
||
|
tableWalletStatement string
|
||
|
)
|
||
|
|
||
|
func initTableName() {
|
||
|
m := conf.DatabaseSetting.TableNames()
|
||
|
tableAnouncement = m[conf.TableAnouncement]
|
||
|
tableAnouncementContent = m[conf.TableAnouncementContent]
|
||
|
tableAttachment = m[conf.TableAttachment]
|
||
|
tableCaptcha = m[conf.TableCaptcha]
|
||
|
tableComment = m[conf.TableComment]
|
||
|
tableCommentContent = m[conf.TableCommentContent]
|
||
|
tableCommentReply = m[conf.TableCommentReply]
|
||
|
tableContact = m[conf.TableContact]
|
||
|
tableContactGroup = m[conf.TableContactGroup]
|
||
|
tableMessage = m[conf.TableMessage]
|
||
|
tablePost = m[conf.TablePost]
|
||
|
tablePostAttachmentBill = m[conf.TablePostAttachmentBill]
|
||
|
tablePostCollection = m[conf.TablePostCollection]
|
||
|
tablePostContent = m[conf.TablePostContent]
|
||
|
tablePostStar = m[conf.TablePostStar]
|
||
|
tableTag = m[conf.TableTag]
|
||
|
tableUser = m[conf.TableUser]
|
||
|
tableWalletRecharge = m[conf.TableWalletRecharge]
|
||
|
tableWalletStatement = m[conf.TableWalletStatement]
|
||
|
}
|