service.xpcool.com/internal/model/do/recruitment.go
夏犀麟 4445b8e8bf
Some checks failed
Build and Deploy (service.xpcool.com) / build-and-deploy (push) Failing after 14s
CHG: house transaction service 层 + recruitment 招聘模块 + 012 菜单 SQL(补提交未推送代码)
2026-08-27 00:41:59 +08:00

103 lines
2.9 KiB
Go
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

// Package do 定义招聘考试聚合模块的数据对象(手写,未跑 gf gen
// 字段类型统一用 any与 gf gen 产物保持一致,便于 .Data()/.Where() 使用。
package do
import (
"github.com/gogf/gf/v2/frame/g"
)
// RecruitmentInfo 公告主表 DO。
type RecruitmentInfo struct {
g.Meta `orm:"table:recruitment_info, do:true"`
Id any //
Title any // 公告标题
SourceId any // 数据源ID
OrgId any // 发布主体ID
OrgName any // 发布主体名称
Category any // 考试分类
Region any // 地区
PublishDate any // 发布日期
Deadline any // 报名/截止日期
ExamDate any // 笔试日期
Url any // 原文链接
Content any // 正文/摘要
Attachments any // 附件(JSON)
Status any // 0有效 1已更正 2已失效 3已删除
Fingerprint any // 去重指纹
GroupKey any // 跨源同公告聚合键
CreatedAt any //
UpdatedAt any //
}
// Organization 发布主体 DO。
type Organization struct {
g.Meta `orm:"table:organization, do:true"`
Id any //
Name any // 主体名称
Type any // 主体类型
OfficialSite any // 官网
Region any // 地区
CreatedAt any //
UpdatedAt any //
}
// CrawlSource 数据源 DO。
type CrawlSource struct {
g.Meta `orm:"table:crawl_source, do:true"`
Id any //
Name any // 数据源名称
BaseUrl any // 站点基础URL
SourceType any // 1静态 2SPA 3需登录 4附件
Category any // 默认分类
Region any // 默认地区
ListPath any // 列表路径/接口
Config any // 扩展配置(JSON)
Enabled any // 是否启用
CronExpr any // 调度表达式
LastSuccessAt any // 最近成功抓取时间
FailCount any // 连续失败次数
CreatedAt any //
UpdatedAt any //
}
// CrawlLog 抓取日志 DO。
type CrawlLog struct {
g.Meta `orm:"table:crawl_log, do:true"`
Id any //
SourceId any // 数据源ID
RunAt any // 运行时间
Fetched any // 抓取条数
NewCount any // 新增条数
UpdatedCount any // 更新条数
Error any // 错误信息
CreatedAt any //
}
// PushSubscription 推送订阅 DO。
type PushSubscription struct {
g.Meta `orm:"table:push_subscription, do:true"`
Id any //
Name any // 订阅名称
DeviceKey any // Bark 设备密钥
Regions any // 订阅地区(JSON)
Categories any // 订阅分类(JSON)
OnlyNew any // 仅推送新公告
PushTime any // 推送时间
Enabled any // 是否启用
CreatedAt any //
UpdatedAt any //
}
// PushLog 推送记录 DO。
type PushLog struct {
g.Meta `orm:"table:push_log, do:true"`
Id any //
SubscriptionId any // 订阅ID
PushAt any // 推送时间
Title any // 推送标题
Body any // 推送内容
Result any // 1成功 0失败
Error any // 错误信息
CreatedAt any //
}