国际化国家

This commit is contained in:
2026-02-10 20:55:56 +08:00
parent c8a11a6d78
commit 4ef5815890
29 changed files with 774 additions and 405 deletions

View File

@@ -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 })

View File

@@ -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
}