/*
 * @Description:称体重模块
 * @Author: Aimee·Zhang
 * @Date: 2022-01-12 16:24:28
 * @LastEditors: Aimee·Zhang
 * @LastEditTime: 2022-01-12 17:13:45
 */
import { request } from '../index'

/**
 * @description:称量体重模块首页
 */
const weights = (page) => {
	return request({
		url: 'health/weights',
		data: { page: page }
	})
}

/**
 * @description:获取曲线进度
 */
const curves = () => {
	return request({
		url: 'health/weights/bight'
	})
}

/**
 * @description:记录体重
 * @Date: 2022-01-12 16:46:19
 */
const addWeight = (data) => {
	return request({
		url: 'health/weights',
		method: 'POST',
		data: data
	})
}

export {
	weights,
	addWeight,
    curves
}
