chore: 批量更新 vtj 低代码引擎依赖
This commit is contained in:
@@ -1,11 +0,0 @@
|
||||
import { request } from '@/utils/request';
|
||||
|
||||
export type DictType = 'gender' | 'sell_status';
|
||||
|
||||
export async function getDictData(params: { type: DictType }) {
|
||||
return request<LabelValueOptions>({
|
||||
url: '/dict/data',
|
||||
method: 'GET',
|
||||
params,
|
||||
});
|
||||
}
|
||||
@@ -1,33 +0,0 @@
|
||||
import { request } from '@/utils/request';
|
||||
|
||||
/**
|
||||
* @description 获取王者荣耀英雄列表
|
||||
*/
|
||||
export function getWzryHeroList(query: API.PageParams) {
|
||||
return request({
|
||||
url: '/demo/wzry/hero_list',
|
||||
method: 'get',
|
||||
params: query,
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* @description 获取英雄联盟英雄列表
|
||||
*/
|
||||
export function getLolHeroList(query: API.PageParams) {
|
||||
return request({
|
||||
url: '/demo/lol/hero_list',
|
||||
method: 'get',
|
||||
params: query,
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* @description 获取英雄联盟英雄列表
|
||||
*/
|
||||
export function getLolHeroInfo({ id }) {
|
||||
return request({
|
||||
url: `/demo/lol/hero_info/${id}`,
|
||||
method: 'get',
|
||||
});
|
||||
}
|
||||
@@ -1,14 +0,0 @@
|
||||
import { request } from '@/utils/request';
|
||||
|
||||
interface DemoOptionsItem {
|
||||
name: string;
|
||||
id: string;
|
||||
}
|
||||
|
||||
export async function optionsListApi(params?: Recordable) {
|
||||
return request<DemoOptionsItem[]>({
|
||||
url: '/select/getDemoOptions',
|
||||
method: 'GET',
|
||||
params,
|
||||
});
|
||||
}
|
||||
@@ -1,26 +0,0 @@
|
||||
import { request } from '@/utils/request';
|
||||
|
||||
enum Api {
|
||||
Login = '/boyanghu/iotree-service/platform/login',
|
||||
}
|
||||
|
||||
/**
|
||||
* @description: 登录接口参数
|
||||
*/
|
||||
export interface LoginParams {
|
||||
phone: string;
|
||||
password?: string;
|
||||
code?: string;
|
||||
type: number; // 0短信 1密码
|
||||
}
|
||||
|
||||
/**
|
||||
* @description: 用户登录
|
||||
*/
|
||||
export function loginApi(params: LoginParams) {
|
||||
return request({
|
||||
url: Api.Login,
|
||||
method: 'POST',
|
||||
data: params,
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user