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);