国际化国家
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import request from '@/config/axios'
|
||||
import type { RegisterVO, UserLoginVO } from './types'
|
||||
import type { RegisterVO, TenantRegisterVO, UserLoginVO } from './types'
|
||||
|
||||
export interface SmsCodeVO {
|
||||
mobile: string
|
||||
@@ -16,11 +16,14 @@ export const login = (data: UserLoginVO) => {
|
||||
return request.post({ url: '/system/auth/login', data })
|
||||
}
|
||||
|
||||
// 注册
|
||||
// 用户注册
|
||||
export const register = (data: RegisterVO) => {
|
||||
return request.post({ url: '/system/auth/register', data })
|
||||
}
|
||||
|
||||
// 租户注册
|
||||
export const tenantRegister = (data: TenantRegisterVO) => {
|
||||
return request.post({ url: '/system/tenant/register', data })
|
||||
}
|
||||
// 使用租户名,获得租户编号
|
||||
export const getTenantIdByName = (name: string) => {
|
||||
return request.get({ url: '/system/tenant/get-id-by-name?name=' + name })
|
||||
|
||||
@@ -36,3 +36,12 @@ export type RegisterVO = {
|
||||
password: string
|
||||
captchaVerification: string
|
||||
}
|
||||
|
||||
export type TenantRegisterVO = {
|
||||
name: string
|
||||
contactName: string
|
||||
contactMobile: string
|
||||
username: string
|
||||
password: string
|
||||
captchaVerification: string
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user