250108
This commit is contained in:
@@ -104,3 +104,13 @@ export async function getThinkVip(id: number) {
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
export async function thinkVipTotal(params?: ThinkVipParam) {
|
||||
const res = await request.get<ApiResult<ThinkVip[]>>(
|
||||
THINK_API_URL + '/think/think-vip/total', {params}
|
||||
);
|
||||
if (res.data.code === 0 && res.data.data) {
|
||||
return res.data.data;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
import type { PageParam } from '@/api';
|
||||
|
||||
/**
|
||||
*
|
||||
@@ -53,7 +52,9 @@ export interface ThinkVip {
|
||||
/**
|
||||
* 搜索条件
|
||||
*/
|
||||
export interface ThinkVipParam extends PageParam {
|
||||
export interface ThinkVipParam{
|
||||
id?: number;
|
||||
createTimeStart?: number;
|
||||
createTimeEnd?: number;
|
||||
keywords?: string;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user