| | |
| | | } |
| | | }); |
| | | |
| | | export const loginForm = (tenant_id, username, password) => request({ |
| | | url: '/api/oauth/form', |
| | | method: 'post', |
| | | headers:{ |
| | | 'Content-Type':"application/x-www-form-urlencoded" |
| | | }, |
| | | params: { |
| | | tenant_id, |
| | | username, |
| | | password |
| | | } |
| | | }); |
| | | |
| | | export const loginBySocial = (tenantId, source, code, state) => request({ |
| | | url: '/api/oauth/token', |
| | | method: 'post', |
| | |
| | | }); |
| | | |
| | | export const registerGuest = (form, oauthId) => request({ |
| | | url: '/api/blade-system/user/register-guest', |
| | | url: '/api//user/register-guest', |
| | | method: 'post', |
| | | params: { |
| | | tenantId: form.tenantId, |
| | |
| | | }); |
| | | |
| | | export const getButtons = () => request({ |
| | | url: '/api/blade-system/menu/buttons', |
| | | url: '/api//menu/buttons', |
| | | method: 'get' |
| | | }); |
| | | |