🎨 改进代码样式

This commit is contained in:
github-actions[bot] 2022-05-16 06:42:24 +00:00
parent 6eb29d2cc9
commit 696783b0fe

View File

@ -37,7 +37,7 @@ func 新登记处() (db 婚姻登记) {
return
}
//nolint: asciicheck
func (db *婚姻登记) 重置() {
db.Lock()
defer db.Unlock()
@ -46,21 +46,21 @@ func (db *婚姻登记) 重置() {
}
}
//nolint: asciicheck
func (db *婚姻登记) 离婚休妻(gid, wife int64) {
db.Lock()
defer db.Unlock()
delete(db.mp[gid], -wife)
}
//nolint: asciicheck
func (db *婚姻登记) 离婚休夫(gid, husband int64) {
db.Lock()
defer db.Unlock()
delete(db.mp[gid], husband)
}
//nolint: asciicheck
func (db *婚姻登记) 有登记(gid int64) (ok bool) {
db.Lock()
defer db.Unlock()
@ -74,7 +74,7 @@ func (db *婚姻登记) 有登记(gid int64) (ok bool) {
return
}
//nolint: asciicheck
func (db *婚姻登记) 花名册(ctx *zero.Ctx, gid int64) string {
db.Lock()
defer db.Unlock()
@ -95,7 +95,7 @@ func (db *婚姻登记) 花名册(ctx *zero.Ctx, gid int64) string {
}))
}
//nolint: asciicheck
func (db *婚姻登记) 查户口(gid, uid int64) (userinfo *userinfo, gender int, ok bool) {
db.Lock()
defer db.Unlock()
@ -112,7 +112,7 @@ func (db *婚姻登记) 查户口(gid, uid int64) (userinfo *userinfo, gender in
return
}
//nolint: asciicheck
func (db *婚姻登记) 登记(gid, uid, target int64, username, targetname string) {
db.Lock()
defer db.Unlock()