parent
21960f697e
commit
3d6f0f1fe0
@ -1,26 +1,26 @@ |
||||
import {GetApi, PostApi} from "@/api/request" |
||||
|
||||
export const login = new PostApi(`/account/login`) |
||||
export const login = new PostApi('/account/login') |
||||
|
||||
export const logout = new GetApi(`/account/logout`) |
||||
export const logout = new GetApi('/account/logout') |
||||
|
||||
export const register = new PostApi(`/account/register`) |
||||
export const register = new PostApi('/account/register') |
||||
|
||||
export const updateUserPwd = new PostApi(`/account/updatePwd`) |
||||
export const updateUserPwd = new PostApi('/account/updatePwd') |
||||
|
||||
export const updateAvatar = new GetApi( |
||||
`/account/updateAvatar`, |
||||
'/account/updateAvatar', |
||||
key => ({params: {key: encodeURIComponent(key)}}) |
||||
) |
||||
|
||||
export const validate = new GetApi(`/account/validate`, pwd => ({params: {pwd}})) |
||||
export const validate = new GetApi('/account/validate', pwd => ({params: {pwd}})) |
||||
|
||||
export const checkLoginName = new GetApi( |
||||
`/account/checkLoginName`, |
||||
'/account/checkLoginName', |
||||
(name, id) => ({params: {name, id}}) |
||||
) |
||||
|
||||
export const checkNickName = new GetApi( |
||||
`/account/checkNickName`, |
||||
'/account/checkNickName', |
||||
(name, id) => ({params: {name, id}}) |
||||
) |
||||
|
||||
@ -1,3 +1,3 @@ |
||||
import {PostApi} from "@/api/request" |
||||
|
||||
export const search = new PostApi(`/doc/history/search`) |
||||
export const search = new PostApi('/doc/history/search') |
||||
|
||||
@ -1,23 +1,23 @@ |
||||
import {GetApi, PostApi} from "@/api/request" |
||||
|
||||
export const baseUrl = `/doc/purchase/inbound` |
||||
export const getById = new GetApi('/doc/purchase/inbound/getById', id => ({params: {id}})) |
||||
|
||||
export const getById = new GetApi(`${baseUrl}/getById`, id => ({params: {id}})) |
||||
export const getSubById = new GetApi('/doc/purchase/inbound/getSubById', id => ({params: {id}})) |
||||
|
||||
export const getSubById = new GetApi(`${baseUrl}/getSubById`, id => ({params: {id}})) |
||||
export const search = new PostApi('/doc/purchase/inbound/search') |
||||
|
||||
export const search = new PostApi(`${baseUrl}/search`) |
||||
export const exportExcel = new PostApi('/doc/purchase/inbound/export') |
||||
|
||||
export const add = new PostApi(`${baseUrl}/add`) |
||||
export const add = new PostApi('/doc/purchase/inbound/add') |
||||
|
||||
export const update = new PostApi(`${baseUrl}/update`) |
||||
export const update = new PostApi('/doc/purchase/inbound/update') |
||||
|
||||
export const commit = new PostApi(`${baseUrl}/commit`) |
||||
export const commit = new PostApi('/doc/purchase/inbound/commit') |
||||
|
||||
export const withdraw = new PostApi(`${baseUrl}/withdraw`) |
||||
export const withdraw = new PostApi('/doc/purchase/inbound/withdraw') |
||||
|
||||
export const pass = new PostApi(`${baseUrl}/pass`) |
||||
export const pass = new PostApi('/doc/purchase/inbound/pass') |
||||
|
||||
export const reject = new PostApi(`${baseUrl}/reject`) |
||||
export const reject = new PostApi('/doc/purchase/inbound/reject') |
||||
|
||||
export const del = new GetApi(`${baseUrl}/del`, id => ({params: {id}})) |
||||
export const del = new GetApi('/doc/purchase/inbound/del', id => ({params: {id}})) |
||||
|
||||
@ -1,23 +1,23 @@ |
||||
import {GetApi, PostApi} from "@/api/request" |
||||
|
||||
export const baseUrl = `/doc/purchase/order` |
||||
export const getById = new GetApi('/doc/purchase/order/getById', id => ({params: {id}})) |
||||
|
||||
export const getById = new GetApi(`${baseUrl}/getById`, id => ({params: {id}})) |
||||
export const getSubById = new GetApi('/doc/purchase/order/getSubById', id => ({params: {id}})) |
||||
|
||||
export const getSubById = new GetApi(`${baseUrl}/getSubById`, id => ({params: {id}})) |
||||
export const search = new PostApi('/doc/purchase/order/search') |
||||
|
||||
export const search = new PostApi(`${baseUrl}/search`) |
||||
export const exportExcel = new PostApi('/doc/purchase/order/export') |
||||
|
||||
export const add = new PostApi(`${baseUrl}/add`) |
||||
export const add = new PostApi('/doc/purchase/order/add') |
||||
|
||||
export const update = new PostApi(`${baseUrl}/update`) |
||||
export const update = new PostApi('/doc/purchase/order/update') |
||||
|
||||
export const commit = new PostApi(`${baseUrl}/commit`) |
||||
export const commit = new PostApi('/doc/purchase/order/commit') |
||||
|
||||
export const withdraw = new PostApi(`${baseUrl}/withdraw`) |
||||
export const withdraw = new PostApi('/doc/purchase/order/withdraw') |
||||
|
||||
export const pass = new PostApi(`${baseUrl}/pass`) |
||||
export const pass = new PostApi('/doc/purchase/order/pass') |
||||
|
||||
export const reject = new PostApi(`${baseUrl}/reject`) |
||||
export const reject = new PostApi('/doc/purchase/order/reject') |
||||
|
||||
export const del = new GetApi(`${baseUrl}/del`, id => ({params: {id}})) |
||||
export const del = new GetApi('/doc/purchase/order/del', id => ({params: {id}})) |
||||
|
||||
@ -1,23 +1,23 @@ |
||||
import {GetApi, PostApi} from "@/api/request" |
||||
|
||||
export const baseUrl = `/doc/sell/order` |
||||
export const getById = new GetApi('/doc/sell/order/getById', id => ({params: {id}})) |
||||
|
||||
export const getById = new GetApi(`${baseUrl}/getById`, id => ({params: {id}})) |
||||
export const getSubById = new GetApi('/doc/sell/order/getSubById', id => ({params: {id}})) |
||||
|
||||
export const getSubById = new GetApi(`${baseUrl}/getSubById`, id => ({params: {id}})) |
||||
export const search = new PostApi('/doc/sell/order/search') |
||||
|
||||
export const search = new PostApi(`${baseUrl}/search`) |
||||
export const exportExcel = new PostApi('/doc/sell/order/export') |
||||
|
||||
export const add = new PostApi(`${baseUrl}/add`) |
||||
export const add = new PostApi('/doc/sell/order/add') |
||||
|
||||
export const update = new PostApi(`${baseUrl}/update`) |
||||
export const update = new PostApi('/doc/sell/order/update') |
||||
|
||||
export const commit = new PostApi(`${baseUrl}/commit`) |
||||
export const commit = new PostApi('/doc/sell/order/commit') |
||||
|
||||
export const withdraw = new PostApi(`${baseUrl}/withdraw`) |
||||
export const withdraw = new PostApi('/doc/sell/order/withdraw') |
||||
|
||||
export const pass = new PostApi(`${baseUrl}/pass`) |
||||
export const pass = new PostApi('/doc/sell/order/pass') |
||||
|
||||
export const reject = new PostApi(`${baseUrl}/reject`) |
||||
export const reject = new PostApi('/doc/sell/order/reject') |
||||
|
||||
export const del = new GetApi(`${baseUrl}/del`, id => ({params: {id}})) |
||||
export const del = new GetApi('/doc/sell/order/del', id => ({params: {id}})) |
||||
|
||||
@ -1,23 +1,23 @@ |
||||
import {GetApi, PostApi} from "@/api/request" |
||||
|
||||
export const baseUrl = `/doc/sell/outbound` |
||||
export const getById = new GetApi('/doc/sell/outbound/getById', id => ({params: {id}})) |
||||
|
||||
export const getById = new GetApi(`${baseUrl}/getById`, id => ({params: {id}})) |
||||
export const getSubById = new GetApi('/doc/sell/outbound/getSubById', id => ({params: {id}})) |
||||
|
||||
export const getSubById = new GetApi(`${baseUrl}/getSubById`, id => ({params: {id}})) |
||||
export const search = new PostApi('/doc/sell/outbound/search') |
||||
|
||||
export const search = new PostApi(`${baseUrl}/search`) |
||||
export const exportExcel = new PostApi('/doc/sell/outbound/export') |
||||
|
||||
export const add = new PostApi(`${baseUrl}/add`) |
||||
export const add = new PostApi('/doc/sell/outbound/add') |
||||
|
||||
export const update = new PostApi(`${baseUrl}/update`) |
||||
export const update = new PostApi('/doc/sell/outbound/update') |
||||
|
||||
export const commit = new PostApi(`${baseUrl}/commit`) |
||||
export const commit = new PostApi('/doc/sell/outbound/commit') |
||||
|
||||
export const withdraw = new PostApi(`${baseUrl}/withdraw`) |
||||
export const withdraw = new PostApi('/doc/sell/outbound/withdraw') |
||||
|
||||
export const pass = new PostApi(`${baseUrl}/pass`) |
||||
export const pass = new PostApi('/doc/sell/outbound/pass') |
||||
|
||||
export const reject = new PostApi(`${baseUrl}/reject`) |
||||
export const reject = new PostApi('/doc/sell/outbound/reject') |
||||
|
||||
export const del = new GetApi(`${baseUrl}/del`, id => ({params: {id}})) |
||||
export const del = new GetApi('/doc/sell/outbound/del', id => ({params: {id}})) |
||||
|
||||
Loading…
Reference in new issue