Skip to content

修复issue所提到的bug,重置niuniu数据库 #73

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

xyy0411
Copy link
Contributor

@xyy0411 xyy0411 commented Jun 27, 2025

return nil
}

// TableFor 大写是为了防止数据操作哪里有问题留个保底可以在zbp的项目里直接改
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

如何直接改,你的函数不是都在AnimeAPI了

return ErrNoNiuNiu
}

/* var n niuNiuManager
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

不要在注释中放置无用代码,要不就写全,要不就删去。

return float64(rand.Intn(9)+1) + (float64(rand.Intn(100)) / 100)
}

func (db *model) getWordNiuNiu(gid, uid int64) (*userInfo, error) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

可以使用

type model struct {
	sql gorm.DB
	sync.RWMutex
}

的方式平替model结构体并且不必大改接口。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants