| 项目 | 信息 |
|---|---|
| 文档名称 | 勤工俭学岗位管理API文档 |
| 模块名称 | 勤工俭学岗位管理 (WorkStudyPosition) |
| 文档版本 | v1.0 |
| 创建日期 | 2025-01-03 |
| 最后更新 | 2025-01-03 |
| 开发状态 | ✅ 前端完成 |
勤工俭学岗位管理模块提供完整的岗位发布、管理、审核功能,支持二级学院和学生处的分级管理机制。
| 字段名 | 类型 | 长度 | 必填 | 说明 |
|---|---|---|---|---|
| id | bigint | 20 | ✅ | 主键ID(雪花ID) |
| position_name | varchar | 100 | ✅ | 岗位名称 |
| position_scope | varchar | 20 | ✅ | 发布范围(COLLEGE/UNIVERSITY) |
| required_count | int | - | ✅ | 需求人数 |
| work_time | varchar | 200 | ✅ | 工作时间 |
| start_date | date | - | ✅ | 岗位有效期开始 |
| end_date | date | - | ✅ | 岗位有效期结束 |
| position_requirements | text | - | ✅ | 岗位要求 |
| salary_info | varchar | 200 | ✅ | 薪资情况 |
| contact_teacher | varchar | 50 | ✅ | 联系老师 |
| contact_phone | varchar | 20 | ✅ | 联系电话 |
| college_id | bigint | 20 | ✅ | 发布学院ID |
| college_name | varchar | 100 | ✅ | 发布学院名称 |
| status | varchar | 20 | ✅ | 岗位状态 |
| current_count | int | - | ✅ | 当前申请通过人数 |
| create_by | bigint | 20 | ✅ | 创建者 |
| create_time | datetime | - | ✅ | 创建时间 |
| update_by | bigint | 20 | ✅ | 更新者 |
| update_time | datetime | - | ✅ | 更新时间 |
| deleted | tinyint | 1 | ✅ | 逻辑删除标记 |
| tenant_id | varchar | 20 | ✅ | 租户ID |
/jcbt/workStudyPositionGET /jcbt/workStudyPosition/list
请求参数: | 参数名 | 类型 | 必填 | 说明 | |--------|------|------|------| | pageNum | int | ❌ | 页码(默认1) | | pageSize | int | ❌ | 每页数量(默认10) | | positionName | string | ❌ | 岗位名称(模糊查询) | | positionScope | string | ❌ | 发布范围 | | contactTeacher | string | ❌ | 联系老师 | | status | string | ❌ | 岗位状态 | | createTime | array | ❌ | 创建时间范围 | | validPeriod | array | ❌ | 有效期范围 |
响应示例:
{
"code": 200,
"msg": "查询成功",
"rows": [
{
"id": "1742012345678901234",
"positionName": "图书馆管理助理",
"positionScope": "UNIVERSITY",
"positionScopeName": "全校",
"requiredCount": 5,
"workTime": "周一至周五 14:00-17:00",
"startDate": "2025-01-03",
"endDate": "2025-06-30",
"positionRequirements": "责任心强,有良好的沟通能力",
"salaryInfo": "20元/小时,按月发放",
"contactTeacher": "张老师",
"contactPhone": "13812345678",
"collegeId": 1,
"collegeName": "图书馆",
"status": "RECRUITING",
"statusName": "招录中",
"currentCount": 2,
"createTime": "2025-01-03 10:00:00",
"updateTime": "2025-01-03 10:00:00"
}
],
"total": 1
}
GET /jcbt/workStudyPosition/{id}
路径参数: | 参数名 | 类型 | 必填 | 说明 | |--------|------|------|------| | id | long | ✅ | 岗位ID |
响应示例:
{
"code": 200,
"msg": "查询成功",
"data": {
"id": "1742012345678901234",
"positionName": "图书馆管理助理",
// ... 其他字段同列表查询
}
}
POST /jcbt/workStudyPosition
请求体:
{
"positionName": "图书馆管理助理",
"positionScope": "UNIVERSITY",
"requiredCount": 5,
"workTime": "周一至周五 14:00-17:00",
"startDate": "2025-01-03",
"endDate": "2025-06-30",
"positionRequirements": "责任心强,有良好的沟通能力",
"salaryInfo": "20元/小时,按月发放",
"contactTeacher": "张老师",
"contactPhone": "13812345678"
}
响应示例:
{
"code": 200,
"msg": "新增成功"
}
PUT /jcbt/workStudyPosition
请求体:
{
"id": "1742012345678901234",
"positionName": "图书馆管理助理",
// ... 其他字段
}
DELETE /jcbt/workStudyPosition/{id}
GET /jcbt/workStudyPosition/statistics
响应示例:
{
"code": 200,
"msg": "查询成功",
"data": {
"totalCount": 10,
"statusCount": {
"DRAFT": 2,
"PUBLISHED": 1,
"RECRUITING": 5,
"FULL": 1,
"EXPIRED": 1,
"SUSPENDED": 0,
"CANCELLED": 0
},
"scopeCount": {
"COLLEGE": 6,
"UNIVERSITY": 4
}
}
}
PUT /jcbt/workStudyPosition/publish/{id}
PUT /jcbt/workStudyPosition/suspend/{id}
PUT /jcbt/workStudyPosition/resume/{id}
PUT /jcbt/workStudyPosition/cancel/{id}
POST /jcbt/workStudyPosition/export
web/src/views/jcbt/workstudy/Position/
├── index.vue # 岗位列表主页面
├── form.vue # 岗位表单组件
└── detail.vue # 岗位详情组件
web/src/api/jcbt/
└── workStudyPosition.ts # API接口定义
enum PositionStatus {
DRAFT = 'DRAFT', // 草稿
PUBLISHED = 'PUBLISHED', // 已发布
RECRUITING = 'RECRUITING', // 招录中
FULL = 'FULL', // 已满员
EXPIRED = 'EXPIRED', // 已过期
SUSPENDED = 'SUSPENDED', // 已暂停
CANCELLED = 'CANCELLED' // 已取消
}
enum PositionScope {
COLLEGE = 'COLLEGE', // 本学院
UNIVERSITY = 'UNIVERSITY' // 全校
}
| 功能 | 权限标识 | 说明 |
|---|---|---|
| 查询列表 | jcbt:workStudyPosition:list |
查看岗位列表 |
| 查询详情 | jcbt:workStudyPosition:query |
查看岗位详情 |
| 新增岗位 | jcbt:workStudyPosition:add |
创建新岗位 |
| 修改岗位 | jcbt:workStudyPosition:edit |
编辑岗位信息 |
| 删除岗位 | jcbt:workStudyPosition:remove |
删除岗位 |
| 发布岗位 | jcbt:workStudyPosition:publish |
发布岗位 |
| 暂停招录 | jcbt:workStudyPosition:suspend |
暂停岗位招录 |
| 恢复招录 | jcbt:workStudyPosition:resume |
恢复岗位招录 |
| 取消岗位 | jcbt:workStudyPosition:cancel |
取消岗位 |
| 导出数据 | jcbt:workStudyPosition:export |
导出岗位数据 |
草稿(DRAFT)
↓ 发布
已发布(PUBLISHED)
↓ 开始招录
招录中(RECRUITING)
↓ ↓ ↓
满员(FULL) | 暂停(SUSPENDED) | 过期(EXPIRED)
↓ ↓ ↓
取消(CANCELLED) ←← 可从任意状态取消
idx_college_id (college_id)idx_status (status)idx_create_time (create_time)idx_valid_period (start_date, end_date)📝 文档状态: ✅ 完成
📅 最后更新: 2025-01-03
👥 维护团队: 开发团队
�� 更新频率: 根据功能迭代及时更新