迁移一部分接口
This commit is contained in:
10
request/api/prescription.js
Normal file
10
request/api/prescription.js
Normal file
@@ -0,0 +1,10 @@
|
||||
import {post} from './http'
|
||||
|
||||
/**
|
||||
* 获取处方记录列表
|
||||
* @param params { up_id: number, store_id: number, page: number }
|
||||
* @returns {Promise<*>}
|
||||
*/
|
||||
export async function getPrescriptionListApi(params) {
|
||||
return await post('/prescription/list', params, 3)
|
||||
}
|
||||
10
request/api/register.js
Normal file
10
request/api/register.js
Normal file
@@ -0,0 +1,10 @@
|
||||
import {post} from './http'
|
||||
|
||||
/**
|
||||
* 获取挂号记录列表
|
||||
* @param params { patient_id: number, store_id: number, page: number }
|
||||
* @returns {Promise<*>}
|
||||
*/
|
||||
export async function getRegisterListApi(params) {
|
||||
return await post('/register/list', params, 3)
|
||||
}
|
||||
10
request/api/user.js
Normal file
10
request/api/user.js
Normal file
@@ -0,0 +1,10 @@
|
||||
import {post} from './http'
|
||||
|
||||
/**
|
||||
* 获取用户信息(包含订单统计)
|
||||
* @param params { store_id: number }
|
||||
* @returns {Promise<*>}
|
||||
*/
|
||||
export async function getUserInfoApi(params) {
|
||||
return await post('/user/info', params, 3)
|
||||
}
|
||||
Reference in New Issue
Block a user