1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859 |
- /** 新闻表 */
- entity News {
- title String /** 标题 */
- photo String /** 缩略图 */
- brief String /** 简介 */
- type String /** 类型: 企业新闻 | 国内动态 | 国际动态 */
- author String /** 作者 */
- source String /** 来源: 自定义 */
- publishTime ZonedDateTime /** 发布时间 */
- fromWeChat Boolean /** 是否为微信公众号文章 */
- content TextBlob /** 内容: 富文本 */
- status String /** 状态: 已发布 | 未发布 */
- createDate LocalDate /** 添加日期 */
- }
- /** 职位信息 */
- entity Job {
- name String /** 职位名称 */
- publishTime ZonedDateTime /** 发布时间 */
- department OfferDepartment /** 所属部门 */
- location String /** 工作地点 */
- experience TextBlob /** 工作经验要求 */
- year String /** 工作年限 */
- education String /** 学历要求 */
- nature String /** 工作性质: 全职 | 兼职 */
- people String /** 招聘人数 */
- description TextBlob /** 职位描述 */
- status String /** 状态: 已发布 | 未发布 */
- createDate LocalDate /** 添加日期 */
- }
- /** 职位所属部门 */
- enum OfferDepartment {
- EECC("环境能源咨询中心"),
- SUSC("可持续发展中心"),
- INIC("信息智能化中心")
- }
- /** 留言信息 */
- entity Message {
- messageTime ZonedDateTime /** 留言日期 */
- name String /** 姓名 */
- phone String /** 手机号 */
- email String /** 邮箱 */
- address String /** 地址 */
- zipCode String /** 邮编 */
- content String maxlength(500) /** 内容 */
- }
- /** 用户 */
- entity EcoUser(eco_user) {
- websiteId Long required /** 所属网站ID */
- login String required unique /** 用户名 */
- password String required minlength(60) maxlength(60) /** 密码 */
- realName String required /** 姓名 */
- roleCode String required /** 角色编码: ROLE_ADMIN | ROLE_MANAGER */
- addTime ZonedDateTime required /** 添加时间 */
- }
|