14 lines
552 B
JavaScript
14 lines
552 B
JavaScript
import { authRequest } from '../utils/request'
|
|
|
|
export function getSynthesisRecipes(userId) {
|
|
return authRequest({ url: `/api/app/users/${userId}/synthesis/recipes`, method: 'GET' })
|
|
}
|
|
|
|
export function doSynthesis(userId, recipeId) {
|
|
return authRequest({ url: `/api/app/users/${userId}/synthesis/do`, method: 'POST', data: { recipe_id: recipeId } })
|
|
}
|
|
|
|
export function getSynthesisLogs(userId, page = 1, pageSize = 20) {
|
|
return authRequest({ url: `/api/app/users/${userId}/synthesis/logs`, method: 'GET', data: { page, page_size: pageSize } })
|
|
}
|