import {http} from "@/utils/request.js"
export default {
	getUserInfo: () => http('/system/user/info/', 'GET'),
	getCode:(data) => http('/auth/sms_code/', 'POST', data),
	login:(data) => http('/auth/token/', 'POST', data),
	loginSecret:(data) => http('/auth/login_secret/', 'POST', data), //App密钥登录
	bindSecret:(data) => http('/system/user/bind_secret/', 'POST', data), //App密钥绑定
	bindWxmp:(data)=>http('/system/user/bind_wxmp/', 'POST', data), //微信小程序绑定
	unbindWxmp:(data)=>http('/system/user/unbind_wxmp/', 'POST', data), //微信小程序绑定
	changePw:(data) => http("/system/user/password/", 'PUT', data),
	codeLogin:(data) => http('/auth/login_sms_code/', 'POST', data),
	wxmpLogin: (data) => http('/auth/login_wxmp/', 'POST', data, true, false), //微信小程序登录
	wxmpClogin: (data) => http('/auth/login_wxmp/', 'POST', data, true, false), //微信小程序登录(自动创建账号)
	apkCheck: ()=>http('/system/apk/'), //apk检查
	uploadFile:(data ) => http('/file/', 'POST', data),//上传文件
	
	userList:(data) => http('/system/user/', 'GET', data),
	deptList:(data) => http('/system/dept/', 'GET', data),
	equipmentList:(data) => http('/em/equipment/', 'GET', data),
	
	employeeList:(data) => http('/hrm/employee/', 'GET', data),
	employeeItem:(id,data) => http(`/hrm/employee/${id}/`, 'GET', data),
	employeeInfo:() => http('/hrm/employee/info/', 'GET'),
	
	getWorkflow: (data) => http('/wf/workflow/', 'GET', data),
	getTicket:(data) => http('/wf/ticket/', 'GET', data),
	getTicketItem:(id) => http(`/wf/ticket/${id}/`, 'GET'),
	getTicketFlowLogs:(id) => http(`/wf/ticket/${id}/flowlogs/`, 'GET'),
	ticketCreate:(data)=>http('/wf/ticket/', 'POST', data),
	ticketHandle:(id,data)=>http(`/wf/ticket/${id}/handle/`, 'POST', data),
	ticketRetreat:(id,data)=>http(`/wf/ticket/${id}/retreat/`, 'POST', data),
	getTransition:(id) => http(`/wf/ticket/${id}/transitions/`, 'GET'),
	workflowInitkey:(key) => http(`/wf/workflow/${key}/init_key/`, 'GET'),
	
	
	getMroom:(data) => http('/ofm/mroom/', 'GET', data),
	//会议室预定
	bookingList:(data) => http('/ofm/mroombooking/', 'GET', data),
	bookingItem:(id,data) => http(`/ofm/mroombooking/${id}/`, 'GET', data),
	bookingCreate:(data) => http(`/ofm/mroombooking/`, 'POST', data),
	bookingUpdate:(id,data) => http(`/ofm/mroombooking/${id}/`, 'PUT', data),
	bookingDelete:(id) => http(`/ofm/mroombooking/${id}/`, 'DELETE'),
	bookingSlot:(data) => http(`/ofm/mroomslot/`, 'GET' , data),
	//印章申请
	sealList:(data) => http(`/ofm/lendingseal/`, 'GET' , data),
	sealCreate:(data) => http(`/ofm/lendingseal/`, 'POST' , data),
	sealItem:(id,data) => http(`/ofm/lendingseal/${id}/`, 'GET', data),
	sealDelete:(id) => http(`/ofm/lendingseal/${id}/`, 'DELETE'),
	//档案借阅
	fileRecord:(data) => http(`/ofm/filerecord/`, 'GET' , data),
	borrowList:(data) => http(`/ofm/fileborrow/`, 'GET' , data),
	borrowCreate:(data) => http(`/ofm/fileborrow/`, 'POST' , data),
	borrowItem:(id,data) => http(`/ofm/fileborrow/${id}/`, 'GET', data),
	borrowDelete:(id) => http(`/ofm/fileborrow/${id}/`, 'DELETE'),
	//宣传报道
	publicList:(data) => http(`/ofm/publicity/`, 'GET' , data),
	publicCreate:(data) => http(`/ofm/publicity/`, 'POST' , data),
	publicItem:(id,data) => http(`/ofm/publicity/${id}/`, 'GET', data),
	publicDelete:(id) => http(`/ofm/publicity/${id}/`, 'DELETE'),
	//用车申请
	vehicleSlot:(data) => http(`/ofm/vsolt/`, 'GET' , data),
	vehRegList:(data) => http(`/ofm/vehicle/`, 'GET' , data),
	vehicleCreate:(data) => http(`/ofm/vehicle-use/`, 'POST' , data),
	vehicleItem:(id,data) => http(`/ofm/vehicle-use/${id}/`, 'GET', data),
	vehicleDelete:(id) => http(`/ofm/vehicle/${id}/`, 'DELETE'),
	//专利审批
	patentList:(data) => http(`/srm/patentinfo/`, 'GET' , data),
	patentCreate:(data) => http(`/srm/patentinfo/`, 'POST' , data),
	patentItem:(id,data) => http(`/srm/patentinfo/${id}/`, 'GET', data),
	patentDelete:(id) => http(`/srm/patentinfo/${id}/`, 'DELETE'),
	//论文申密     
	paperseList:(data) => http(`/srm/paperse/`, 'GET' , data),
	paperseCreate:(data) => http(`/srm/paperse/`, 'POST' , data),
	paperseItem:(id,data) => http(`/srm/paperse/${id}/`, 'GET', data),
	paperseDelete:(id) => http(`/srm/paperse/${id}/`, 'DELETE'),
	//平台审批
	pfList:(data) => http(`/srm/pf/`, 'GET' , data),
	pfCreate:(data) => http(`/srm/pf/`, 'POST' , data),
	pfUpdate:(id,data) => http(`/srm/pf/${id}/`, 'PUT', data),
	pfItem:(id,data) => http(`/srm/pf/${id}/`, 'GET', data),
	pfDelete:(id) => http(`/srm/pf/${id}/`, 'DELETE'),
	//离职申请
	resignationList:(data) => http(`/hrm/resignation/`, 'GET' , data),
	resignationCreate:(data) => http(`/hrm/resignation/`, 'POST' , data),
	resignationItem:(id,data) => http(`/hrm/resignation/${id}/`, 'GET', data),
	resignationDelete:(id) => http(`/hrm/resignation/${id}/`, 'DELETE'),
	//人员需求申请
	empneedList:(data) => http(`/hrm/empneed/`, 'GET' , data),
	empneedCreate:(data) => http(`/hrm/empneed/`, 'POST' , data),
	empneedItem:(id,data) => http(`/hrm/empneed/${id}/`, 'GET', data),
	empneedDelete:(id) => http(`/hrm/empneed/${id}/`, 'DELETE'),
	empneedUpdate:(id,data) => http(`/hrm/empneed/${id}/`, 'PUT', data),
	//人员请假申请
	leaveList:(data) => http(`/hrm/leave/`, 'GET' , data),
	leaveCreate:(data) => http(`/hrm/leave/`, 'POST' , data),
	leaveItem:(id,data) => http(`/hrm/leave/${id}/`, 'GET', data),
	leaveDelete:(id) => http(`/hrm/leave/${id}/`, 'DELETE'),
	leaveUpdate:(id,data) => http(`/hrm/leave/${id}/`, 'PUT', data),
	//人员交接申请
	empjoinList:(data) => http(`/hrm/empjoin/`, 'GET' , data),
	empjoinCreate:(data) => http(`/hrm/empjoin/`, 'POST' , data),
	empjoinItem:(id,data) => http(`/hrm/empjoin/${id}/`, 'GET', data),
	empjoinDelete:(id) => http(`/hrm/empjoin/${id}/`, 'DELETE'),
	empjoinUpdate:(id,data) => http(`/hrm/empjoin/${id}/`, 'PUT', data),
	//供应商审核
	supplierauditfList:(data) => http(`/pum/supplieraudit/`, 'GET' , data),
	supplierauditCreate:(data) => http(`/pum/supplieraudit/`, 'POST' , data),
	supplierauditItem:(id,data) => http(`/pum/supplieraudit/${id}/`, 'GET', data),
	supplierauditUpdate:(id,data) => http(`/pum/supplieraudit/${id}/`, 'PUT', data),
	supplierList:(data) => http(`/pum/supplier/`, 'GET' , data),
	//报价单审核
	quotationCreate:(data) => http(`/pum/quotation/`, 'POST' , data),
	quotationItem:(id,data) => http(`/pum/quotation/${id}/`, 'GET', data),
	quotationUpdate:(id,data) => http(`/pum/quotation/${id}/`, 'PUT', data),
	quotationDelete:(id) => http(`/hrm/quotation/${id}/`, 'DELETE'),
	//维修申请
	repairCreate:(data) => http(`/em/repair/`, 'POST' , data),
	repairItem:(id,data) => http(`/em/repair/${id}/`, 'GET', data),
	repairDelete:(id) => http(`/em/repair/${id}/`, 'DELETE'),
	//固定资产申请
	assetCreate:(data) => http(`/asm/assetlog/`, 'POST' , data),
	assetItem:(id,data) => http(`/asm/assetlog/${id}/`, 'GET', data),
	assetDelete:(id) => http(`/asm/assetlog/${id}/`, 'DELETE'),
	assetUpdate:(id,data) => http(`/asm/assetlog/${id}/`, 'PUT', data),
	// 固定资产类别
	assetCateList:(data) => http(`/asm/assetcate/`, 'GET' , data),
	//部门列表
	deptList:(data) => http(`/system/dept/`, 'GET' , data),
	//岗位列表
	postList:(data) => http(`/system/post/`, 'GET' , data),
	//人员调岗
	transferCreate:(data) => http(`/hrm/transfer/`, 'POST' , data),
	transferItem:(id,data) => http(`/hrm/transfer/${id}/`, 'GET', data),
	transferUpdate:(id,data) => http(`/hrm/transfer/${id}/`, 'PUT', data),
	transferDelete:(id) => http(`/hrm/transfer/${id}/`, 'DELETE'),
	//劳动合同续签
	empcontractList:(data) => http(`/hrm/empcontract/`, 'GET' , data),
	empcontractCreate:(data) => http(`/hrm/empcontract/`, 'POST' , data),
	empcontractItem:(id,data) => http(`/hrm/empcontract/${id}/`, 'GET', data),
	empcontractUpdate:(id,data) => http(`/hrm/empcontract/${id}/`, 'PUT', data),
	empcontractDelete:(id) => http(`/hrm/empcontract/${id}/`, 'DELETE'),

}