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.
 
 
 
 

50 lines
1.4 KiB

import { get, post, uploadFile } from "./httpSetting";
/**
* 登录
*/
export const userLogin = (params ={}) => post('/app/auth/login', params);
export const getAppJobVO = (params ={}) => get('/app/job/getAppJobVO', params);
export const appUserQuery = (params ={}) => get('/app/user/query', params);
export const appUserEditAvatar = (filePath, params ={}) => uploadFile('/app/user/editAvatar', filePath, params);
export const appserEditUser = (params ={}) => post('/app/user/editUser', params);
export const factoryMapGetListPage = (params ={}) => get('/app/factoryMap/getListPage', params);
export const factoryMapGetJobById = (factoryId, params ={}) => get(`/app/factoryMap/getJob/${factoryId}`, params);
export const tagGetListPage = (params ={}) => get('/app/job/getTags', params);
/**
* 获取收藏列表
*/
export const collectGetCollectList = (params ={}) => get('/collect/getCollectList', params);
/**
* 添加收藏
*/
export const collectAdd = (params ={}) => post('/collect/add', params);
/**
* 取消收藏
*/
export const collectCancel = (params ={}) => post('/collect/cancel', params);
/**
* 获取评论列表
*/
export const commentGetFirstLevelComment= (params ={}) => get('/comment/getFirstLevelComment', params);
/**
* 添加评论
*/
export const commentAdd = (params ={}) => post('/comment/add', params);
/**
* 删除评论
*/
export const commentDelete = (params ={}) => post('/comment/delete', params);