This commit is contained in:
2022-03-01 13:50:13 +08:00
parent 8eab9943e9
commit d2cabd7d58
113 changed files with 7925 additions and 0 deletions
+19
View File
@@ -0,0 +1,19 @@
package service
import (
"cutego/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
}