wuzhen update
This commit is contained in:
1 parent
9a16535359
commit
5f31387fc0
4 files changed
+1482
No files matched your search
@@ -0,0 +1,83 @@
|
||||
/**
|
||||
* 实习管理API接口
|
||||
* 提供学生实习签到、获取实习信息等功能
|
||||
*/
|
||||
|
||||
import { request } from '@/common/request.js';
|
||||
|
||||
/**
|
||||
* 获取学生实习信息(班主任专用)
|
||||
* @param {number} studentId 学生ID
|
||||
* @returns Promise
|
||||
*/
|
||||
export const getInternshipInfo = (studentId) => {
|
||||
return request({
|
||||
url: `/zsjy/internship/${studentId}`,
|
||||
method: 'GET'
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 学生获取自己的实习信息(移动端专用)
|
||||
* @returns Promise
|
||||
*/
|
||||
export const getStudentInternshipInfo = () => {
|
||||
return request({
|
||||
url: '/zsjy/internship/student/info',
|
||||
method: 'GET'
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 学生签到打卡
|
||||
* @param {Object} data 签到数据
|
||||
* @returns Promise
|
||||
*/
|
||||
export const checkIn = (data) => {
|
||||
return request({
|
||||
url: '/zsjy/internship/daily/checkin',
|
||||
method: 'POST',
|
||||
data
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 获取学生考勤日历数据
|
||||
* @param {number} studentId 学生ID
|
||||
* @param {number} year 年份
|
||||
* @param {number} month 月份
|
||||
* @returns Promise
|
||||
*/
|
||||
export const getCalendarData = (studentId, year, month) => {
|
||||
return request({
|
||||
url: '/zsjy/internship/daily/calendar',
|
||||
method: 'GET',
|
||||
params: { studentId, year, month }
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 获取考勤统计数据
|
||||
* @param {Object} params 查询参数
|
||||
* @returns Promise
|
||||
*/
|
||||
export const getStatistics = (params) => {
|
||||
return request({
|
||||
url: '/zsjy/internship/daily/statistics',
|
||||
method: 'GET',
|
||||
params
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 查询实习日常记录列表
|
||||
* @param {Object} params 查询参数
|
||||
* @returns Promise
|
||||
*/
|
||||
export const getDailyList = (params) => {
|
||||
return request({
|
||||
url: '/zsjy/internship/daily/list',
|
||||
method: 'GET',
|
||||
params
|
||||
});
|
||||
};
|
||||
Reference in new issue
Block a user