sqlx: optimize variable name for table list

pull/351/head
Michael Li 2 years ago
parent c12ed880c1
commit 59a2f8a9db
No known key found for this signature in database

@ -9,46 +9,46 @@ import (
) )
var ( var (
tableAnouncement string _anouncement string
tableAnouncementContent string _anouncementContent string
tableAttachment string _attachment string
tableCaptcha string _captcha string
tableComment string _comment string
tableCommentContent string _commentContent string
tableCommentReply string _commentReply string
tableContact string _contact string
tableContactGroup string _contactGroup string
tableMessage string _message string
tablePost string _post string
tablePostAttachmentBill string _postAttachmentBill string
tablePostCollection string _postCollection string
tablePostContent string _postContent string
tablePostStar string _postStar string
tableTag string _tag string
tableUser string _user string
tableWalletRecharge string _walletRecharge string
tableWalletStatement string _walletStatement string
) )
func initTableName() { func initTableName() {
m := conf.DatabaseSetting.TableNames() m := conf.DatabaseSetting.TableNames()
tableAnouncement = m[conf.TableAnouncement] _anouncement = m[conf.TableAnouncement]
tableAnouncementContent = m[conf.TableAnouncementContent] _anouncementContent = m[conf.TableAnouncementContent]
tableAttachment = m[conf.TableAttachment] _attachment = m[conf.TableAttachment]
tableCaptcha = m[conf.TableCaptcha] _captcha = m[conf.TableCaptcha]
tableComment = m[conf.TableComment] _comment = m[conf.TableComment]
tableCommentContent = m[conf.TableCommentContent] _commentContent = m[conf.TableCommentContent]
tableCommentReply = m[conf.TableCommentReply] _commentReply = m[conf.TableCommentReply]
tableContact = m[conf.TableContact] _contact = m[conf.TableContact]
tableContactGroup = m[conf.TableContactGroup] _contactGroup = m[conf.TableContactGroup]
tableMessage = m[conf.TableMessage] _message = m[conf.TableMessage]
tablePost = m[conf.TablePost] _post = m[conf.TablePost]
tablePostAttachmentBill = m[conf.TablePostAttachmentBill] _postAttachmentBill = m[conf.TablePostAttachmentBill]
tablePostCollection = m[conf.TablePostCollection] _postCollection = m[conf.TablePostCollection]
tablePostContent = m[conf.TablePostContent] _postContent = m[conf.TablePostContent]
tablePostStar = m[conf.TablePostStar] _postStar = m[conf.TablePostStar]
tableTag = m[conf.TableTag] _tag = m[conf.TableTag]
tableUser = m[conf.TableUser] _user = m[conf.TableUser]
tableWalletRecharge = m[conf.TableWalletRecharge] _walletRecharge = m[conf.TableWalletRecharge]
tableWalletStatement = m[conf.TableWalletStatement] _walletStatement = m[conf.TableWalletStatement]
} }

Loading…
Cancel
Save