cmc-web/packages/api/system/csc_login.js

19 lines
494 B
JavaScript
Raw Permalink Normal View History

2024-08-20 12:11:31 +00:00
/**
* Created by HaijunZhang on 2019/7/23.
*/
import { request } from '@cmp/cmp-element'
import { wrapperParams } from 'utils/index'
export function login(params) {
return request.post('/sms/v1/users/login', params)
}
export function loginByTenant(params) {
return request.post('/sms/v1/tenants/login', params)
}
export function logout() {
return request.post('/sms/v1/users/logout')
}
export function logoutByTenant(params) {
return request.post('/sms/v1/tenants/logout', params)
}