🎨 改进代码样式

This commit is contained in:
github-actions[bot] 2022-05-13 05:08:51 +00:00
parent 5d73216238
commit 4837c5387a

View File

@ -29,7 +29,7 @@ func 新登记处() (db 婚姻登记) {
return
}
//nolint: asciicheck
func (db *婚姻登记) 重置() {
db.Lock()
defer db.Unlock()
@ -38,7 +38,7 @@ func (db *婚姻登记) 重置() {
}
}
//nolint: asciicheck
func (db *婚姻登记) 有登记在(gid int64) (ok bool) {
db.Lock()
defer db.Unlock()
@ -52,7 +52,7 @@ func (db *婚姻登记) 有登记在(gid int64) (ok bool) {
return
}
//nolint: asciicheck
func (db *婚姻登记) 登记情况(gid int64, ctx *zero.Ctx) string {
db.Lock()
defer db.Unlock()
@ -73,7 +73,7 @@ func (db *婚姻登记) 登记情况(gid int64, ctx *zero.Ctx) string {
}))
}
//nolint: asciicheck
func (db *婚姻登记) 有妻子(gid, uid int64) (ok bool) {
db.Lock()
defer db.Unlock()
@ -85,7 +85,7 @@ func (db *婚姻登记) 有妻子(gid, uid int64) (ok bool) {
return
}
//nolint: asciicheck
func (db *婚姻登记) 查询妻子(gid, uid int64) (wife int64) {
db.Lock()
defer db.Unlock()
@ -96,7 +96,7 @@ func (db *婚姻登记) 查询妻子(gid, uid int64) (wife int64) {
return mp[uid]
}
//nolint: asciicheck
func (db *婚姻登记) 有丈夫(gid, uid int64) (ok bool) {
db.Lock()
defer db.Unlock()
@ -108,7 +108,7 @@ func (db *婚姻登记) 有丈夫(gid, uid int64) (ok bool) {
return
}
//nolint: asciicheck
func (db *婚姻登记) 查询丈夫(gid, uid int64) (husband int64) {
db.Lock()
defer db.Unlock()
@ -119,7 +119,7 @@ func (db *婚姻登记) 查询丈夫(gid, uid int64) (husband int64) {
return mp[-uid]
}
//nolint: asciicheck
func (db *婚姻登记) 登记(gid, wife, husband int64) {
db.Lock()
defer db.Unlock()