/*
 * @Description:饮水记录模块
 * @Author: Aimee·Zhang
 * @Date: 2022-01-12 11:07:06
 * @LastEditors: Aimee·Zhang
 * @LastEditTime: 2022-01-12 15:57:48
 */
import { request } from '../index'
/**
 * @description:饮水记录首页
 */
const waters = (data) => {
	return request({
		url: 'health/waters',
        data:data
	})
}
/**
 * @description:设定喝水目标
 * @Date: 2022-01-12 15:33:39
 */
const setWaters = (data) => {
	return request({
		url: 'health/waters',
		method: 'POST',
		data: data
	})
}
/**
 * @description:喝水
 * @Date: 2022-01-12 12：56：00
 */
const drinkWater = (data) => {
	return request({
		url: 'health/waters/drink',
		method: 'POST',
        data:data
	})
}
/**
 * @description:删除喝水记录
 * @Date: 2022-01-20 15点08分
 */
const delDrinkWater = (id) => {
	return request({
		url: 	`health/waters/${id}`,
		method: 'DELETE',
	})
}

/**
 * @description:饮食运动日历
 * @params {日期}
 * @method {get}
 * @Date: 2022-02-08 11点18分
 */
const dateList = (data) => {
	return request({
		url: 'health/calendar/water',
		data:data
	})
}


export {
	waters,
	setWaters,
	drinkWater,
	delDrinkWater,
    dateList
}
