记录模块接口对接
This commit is contained in:
32
apis/interfaces/weight.js
Normal file
32
apis/interfaces/weight.js
Normal file
@@ -0,0 +1,32 @@
|
||||
/*
|
||||
* @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:记录体重
|
||||
* @Date: 2022-01-12 16:46:19
|
||||
*/
|
||||
const addWeight = (data) => {
|
||||
return request({
|
||||
url: 'health/weights',
|
||||
method: 'POST',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
export {
|
||||
weights,
|
||||
addWeight
|
||||
}
|
||||
Reference in New Issue
Block a user