/*
 * @Author: Liuyi candymxq888@outlook.com
 * @Date: 2024-08-12 15:44:34
 * @LastEditors: Liuyi candymxq888@outlook.com
 * @LastEditTime: 2024-08-12 15:55:20
 * @FilePath: \water-qinghe-web\src\api\configuration\waterOtherFee\index.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */


import { publicRequest } from '@/utils/request'
//用水其他费用
export default function waterOtherFee() {
	return {
        //创建用水其他费用
		create: (data) => {
			return publicRequest({
				url: '/companyOtherFee/create',
				method: 'post',
				data,
			});
		},
        //删除用水其他费用
		remove: (id) => {
			return publicRequest({
				url: `/companyOtherFee/remove/${id}`,
				method: 'post',
			});
		},
        //停用用水其他费用
        stop: (id) => {
			return publicRequest({
				url: `/companyOtherFee/stop/${id}`,
				method: 'post',
			});
		},
        //启用用水其他费用
        enable: (id) => {
			return publicRequest({
				url: `/companyOtherFee/enable/${id}`,
				method: 'post',
			});
		},
        //编辑用水其他费用
        modify: (data) => {
			return publicRequest({
				url: '/companyOtherFee/modify',
				method: 'post',
				data,
			});
		},
        //分页查询用水其他费用
        search: (data) => {
			return publicRequest({
				url: '/companyOtherFee/search',
				method: 'post',
				data,
			});
		},
		//获取用水其他费用
        get: (data) => {
			return publicRequest({
				url: `/companyOtherFee/get?id=${data}`,
				method: 'get',
				data,
			});
		},
	};
}