改变路由层级,模块化

This commit is contained in:
2023-01-18 15:40:27 +08:00
parent bd25f041a2
commit 0f8c1f989b
102 changed files with 335 additions and 322 deletions
+19
View File
@@ -0,0 +1,19 @@
package service
import (
"cutego/modules/core/dao"
)
type UserPostService struct {
userPostDao dao.UserPostDao
}
// CountUserPostById 统计岗位数据数量
func (s UserPostService) CountUserPostById(ids []int64) int64 {
for _, id := range ids {
if s.userPostDao.CountById(id) > 0 {
return id
}
}
return 0
}