You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
// noinspection SpellCheckingInspection
|
|
|
|
|
|
|
|
import http from 'utils/axios';
|
|
|
|
|
|
|
|
const apiUrl = import.meta.env.VITE_API_URL;
|
|
|
|
const users = `${apiUrl}/gateway/tall3/v3.0/users`;
|
|
|
|
const tall = `${apiUrl}/gateway/tall3/v3.0`;
|
|
|
|
|
|
|
|
// 根据userId 获取token
|
|
|
|
// eslint-disable-next-line import/prefer-default-export
|
|
|
|
export const getToken = userId => http.get(`${users}/userId`, { params: { userId } });
|
|
|
|
|
|
|
|
// 登录api
|
|
|
|
export const signIn = params => http.post(`${users}/signin`, params);
|
|
|
|
|
|
|
|
// 获取项目列表
|
|
|
|
export const getProjects = (startTime, endTime) => http.post(`${tall}/project/query`, { param: { startTime, endTime } });
|
|
|
|
|
|
|
|
// 根据项目id查找角色
|
|
|
|
export const findShowRole = param => http.post(`${tall}/role/show`, param);
|
|
|
|
|
|
|
|
// 根据项目id查找所有成员
|
|
|
|
export const queryChecker = param => http.post(`${tall}/deliver/queryChecker`, param);
|
|
|
|
|
|
|
|
export const getGlobal = params => http.post(`${tall}/task/global`, params);
|
|
|
|
|
|
|
|
export const getPermanent = params => http.post(`${tall}/task/permanent`, params);
|