11// Package qqwife 娶群友 基于“翻牌”和江林大佬的“群老婆”插件魔改作品,文案采用了Hana的zbp娶群友文案
2+
3+ //nolint: asciicheck
4+
25package qqwife
36
47import (
@@ -29,8 +32,6 @@ import (
2932 // 货币系统
3033)
3134
32- // nolint: asciicheck
33- //nolint: asciicheck
3435type 婚姻登记 struct {
3536 db * sql.Sqlite
3637 sync.RWMutex
@@ -56,8 +57,6 @@ type userinfo struct {
5657}
5758
5859var (
59- // nolint: asciicheck
60- //nolint: asciicheck
6160 民政局 = & 婚姻登记 {
6261 db : & sql.Sqlite {},
6362 }
@@ -301,8 +300,6 @@ func init() {
301300 })
302301}
303302
304- // nolint: asciicheck
305- //nolint: asciicheck
306303func (sql * 婚姻登记 ) 查看设置 (gid int64 ) (dbinfo updateinfo , err error ) {
307304 sql .Lock ()
308305 defer sql .Unlock ()
@@ -324,16 +321,12 @@ func (sql *婚姻登记) 查看设置(gid int64) (dbinfo updateinfo, err error)
324321 return
325322}
326323
327- // nolint: asciicheck
328- //nolint: asciicheck
329324func (sql * 婚姻登记 ) 更新设置 (dbinfo updateinfo ) error {
330325 sql .Lock ()
331326 defer sql .Unlock ()
332327 return sql .db .Insert ("updateinfo" , & dbinfo )
333328}
334329
335- // nolint: asciicheck
336- //nolint: asciicheck
337330func (sql * 婚姻登记 ) 开门时间 (gid int64 ) error {
338331 grouInfo , err := sql .查看设置 (gid )
339332 if err != nil {
@@ -354,8 +347,6 @@ func (sql *婚姻登记) 开门时间(gid int64) error {
354347 return nil
355348}
356349
357- // nolint: asciicheck
358- //nolint: asciicheck
359350func (sql * 婚姻登记 ) 查户口 (gid , uid int64 ) (info userinfo , err error ) {
360351 sql .Lock ()
361352 defer sql .Unlock ()
@@ -373,8 +364,6 @@ func (sql *婚姻登记) 查户口(gid, uid int64) (info userinfo, err error) {
373364 return
374365}
375366
376- // nolint: asciicheck
377- //nolint: asciicheck
378367// 民政局登记数据
379368func (sql * 婚姻登记 ) 登记 (gid , uid , target int64 , username , targetname string ) error {
380369 sql .Lock ()
@@ -390,8 +379,6 @@ func (sql *婚姻登记) 登记(gid, uid, target int64, username, targetname str
390379 return sql .db .Insert (gidstr , & uidinfo )
391380}
392381
393- // nolint: asciicheck
394- //nolint: asciicheck
395382func (sql * 婚姻登记 ) 花名册 (gid int64 ) (list [][4 ]string , err error ) {
396383 sql .Lock ()
397384 defer sql .Unlock ()
@@ -437,8 +424,6 @@ func slicename(name string, canvas *gg.Context) (resultname string) {
437424 return
438425}
439426
440- // nolint: asciicheck
441- //nolint: asciicheck
442427func (sql * 婚姻登记 ) 清理花名册 (gid ... string ) error {
443428 sql .Lock ()
444429 defer sql .Unlock ()
0 commit comments