feat: add gormv2 and support sqlite

This commit is contained in:
engigu
2024-04-29 17:31:13 +08:00
parent 44054ae157
commit 33e44ce596
22 changed files with 236 additions and 279 deletions
+1 -1
View File
@@ -42,7 +42,7 @@ func (st *CronMsgService) GetByID() (models.CronMessages, error) {
return models.GetCronMsgByID(st.ID)
}
func (st *CronMsgService) Count() (int, error) {
func (st *CronMsgService) Count() (int64, error) {
return models.GetCronMessagesTotal(st.Name, st.getMaps())
}