260720
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
import request from '@/utils/request';
|
||||
import type { ApiResult } from '@/api';
|
||||
import { MODULES_API_URL } from '@/config/setting';
|
||||
import type {
|
||||
ActivityOutlineGenParams,
|
||||
ActivityOutlineGenResponse
|
||||
} from './model';
|
||||
|
||||
/**
|
||||
* 活动策划大纲生成
|
||||
*/
|
||||
export async function activityOutlineGen(data: ActivityOutlineGenParams) {
|
||||
const res = await request.post<ApiResult<ActivityOutlineGenResponse>>(
|
||||
MODULES_API_URL + '/ai/activityOutlineGen',
|
||||
data
|
||||
);
|
||||
if (res.data.code === 0) {
|
||||
return res.data.data;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message || '生成失败'));
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
export interface ActivityOutlineGenParams {
|
||||
event_theme: string;
|
||||
people: string;
|
||||
event_time: string;
|
||||
event_funding: string;
|
||||
event_type?: string;
|
||||
event_location?: string;
|
||||
event_meme?: string;
|
||||
}
|
||||
|
||||
export interface ActivityOutlineGenResponse {
|
||||
answer?: string;
|
||||
conversationId?: string;
|
||||
messageId?: string;
|
||||
raw?: Record<string, any>;
|
||||
[key: string]: any;
|
||||
}
|
||||
@@ -1,14 +1,14 @@
|
||||
import request from '@/utils/request';
|
||||
import type { ApiResult, PageResult } from '@/api';
|
||||
import type { LawNotaryList, LawNotaryListParam } from './model';
|
||||
import type { AiChatHistory, AiChatHistoryParam } from './model';
|
||||
import { MODULES_API_URL } from '@/config/setting';
|
||||
|
||||
/**
|
||||
* 分页查询公证列表
|
||||
* 分页查询
|
||||
*/
|
||||
export async function pageLawNotaryList(params: LawNotaryListParam) {
|
||||
const res = await request.get<ApiResult<PageResult<LawNotaryList>>>(
|
||||
MODULES_API_URL + '/law/law-notary-list/page',
|
||||
export async function pageAiChatHistory(params: AiChatHistoryParam) {
|
||||
const res = await request.get<ApiResult<PageResult<AiChatHistory>>>(
|
||||
MODULES_API_URL + '/ai/ai-chat-history/page',
|
||||
{
|
||||
params
|
||||
}
|
||||
@@ -20,11 +20,11 @@ export async function pageLawNotaryList(params: LawNotaryListParam) {
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询公证列表列表
|
||||
* 查询列表
|
||||
*/
|
||||
export async function listLawNotaryList(params?: LawNotaryListParam) {
|
||||
const res = await request.get<ApiResult<LawNotaryList[]>>(
|
||||
MODULES_API_URL + '/law/law-notary-list',
|
||||
export async function listAiChatHistory(params?: AiChatHistoryParam) {
|
||||
const res = await request.get<ApiResult<AiChatHistory[]>>(
|
||||
MODULES_API_URL + '/ai/ai-chat-history',
|
||||
{
|
||||
params
|
||||
}
|
||||
@@ -36,11 +36,11 @@ export async function listLawNotaryList(params?: LawNotaryListParam) {
|
||||
}
|
||||
|
||||
/**
|
||||
* 添加公证列表
|
||||
* 添加
|
||||
*/
|
||||
export async function addLawNotaryList(data: LawNotaryList) {
|
||||
export async function addAiChatHistory(data: AiChatHistory) {
|
||||
const res = await request.post<ApiResult<unknown>>(
|
||||
MODULES_API_URL + '/law/law-notary-list',
|
||||
MODULES_API_URL + '/ai/ai-chat-history',
|
||||
data
|
||||
);
|
||||
if (res.data.code === 0) {
|
||||
@@ -50,11 +50,11 @@ export async function addLawNotaryList(data: LawNotaryList) {
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改公证列表
|
||||
* 修改
|
||||
*/
|
||||
export async function updateLawNotaryList(data: LawNotaryList) {
|
||||
export async function updateAiChatHistory(data: AiChatHistory) {
|
||||
const res = await request.put<ApiResult<unknown>>(
|
||||
MODULES_API_URL + '/law/law-notary-list',
|
||||
MODULES_API_URL + '/ai/ai-chat-history',
|
||||
data
|
||||
);
|
||||
if (res.data.code === 0) {
|
||||
@@ -64,11 +64,11 @@ export async function updateLawNotaryList(data: LawNotaryList) {
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除公证列表
|
||||
* 删除
|
||||
*/
|
||||
export async function removeLawNotaryList(id?: number) {
|
||||
export async function removeAiChatHistory(id?: number) {
|
||||
const res = await request.delete<ApiResult<unknown>>(
|
||||
MODULES_API_URL + '/law/law-notary-list/' + id
|
||||
MODULES_API_URL + '/ai/ai-chat-history/' + id
|
||||
);
|
||||
if (res.data.code === 0) {
|
||||
return res.data.message;
|
||||
@@ -77,11 +77,11 @@ export async function removeLawNotaryList(id?: number) {
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除公证列表
|
||||
* 批量删除
|
||||
*/
|
||||
export async function removeBatchLawNotaryList(data: (number | undefined)[]) {
|
||||
export async function removeBatchAiChatHistory(data: (number | undefined)[]) {
|
||||
const res = await request.delete<ApiResult<unknown>>(
|
||||
MODULES_API_URL + '/law/law-notary-list/batch',
|
||||
MODULES_API_URL + '/ai/ai-chat-history/batch',
|
||||
{
|
||||
data
|
||||
}
|
||||
@@ -93,11 +93,11 @@ export async function removeBatchLawNotaryList(data: (number | undefined)[]) {
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据id查询公证列表
|
||||
* 根据id查询
|
||||
*/
|
||||
export async function getLawNotaryList(id: number) {
|
||||
const res = await request.get<ApiResult<LawNotaryList>>(
|
||||
MODULES_API_URL + '/law/law-notary-list/' + id
|
||||
export async function getAiChatHistory(id: number) {
|
||||
const res = await request.get<ApiResult<AiChatHistory>>(
|
||||
MODULES_API_URL + '/ai/ai-chat-history/' + id
|
||||
);
|
||||
if (res.data.code === 0 && res.data.data) {
|
||||
return res.data.data;
|
||||
@@ -0,0 +1,44 @@
|
||||
import type { PageParam } from '@/api';
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
export interface AiChatHistory {
|
||||
//
|
||||
id?: number;
|
||||
//
|
||||
chatId?: number;
|
||||
//
|
||||
conversationId?: string;
|
||||
//
|
||||
userId?: number;
|
||||
//
|
||||
content?: string;
|
||||
//
|
||||
reply?: string;
|
||||
// 状态, 0正常, 1冻结
|
||||
status?: number;
|
||||
// 是否删除, 0否, 1是
|
||||
deleted?: number;
|
||||
// 租户id
|
||||
tenantId?: number;
|
||||
// 注册时间
|
||||
createTime?: string;
|
||||
// 修改时间
|
||||
updateTime?: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* 搜索条件
|
||||
*/
|
||||
export interface AiChatHistoryParam extends PageParam {
|
||||
id?: number;
|
||||
chatId?: number;
|
||||
conversationId?: string;
|
||||
userId?: number;
|
||||
content?: string;
|
||||
reply?: string;
|
||||
status?: number;
|
||||
deleted?: number;
|
||||
keywords?: string;
|
||||
}
|
||||
@@ -1,14 +1,14 @@
|
||||
import request from '@/utils/request';
|
||||
import type { ApiResult, PageResult } from '@/api';
|
||||
import type { LawFeedback, LawFeedbackParam } from './model';
|
||||
import type { AiChatList, AiChatListParam } from './model';
|
||||
import { MODULES_API_URL } from '@/config/setting';
|
||||
|
||||
/**
|
||||
* 分页查询
|
||||
*/
|
||||
export async function pageLawFeedback(params: LawFeedbackParam) {
|
||||
const res = await request.get<ApiResult<PageResult<LawFeedback>>>(
|
||||
MODULES_API_URL + '/law/law-feedback/page',
|
||||
export async function pageAiChatList(params: AiChatListParam) {
|
||||
const res = await request.get<ApiResult<PageResult<AiChatList>>>(
|
||||
MODULES_API_URL + '/ai/ai-chat-list/page',
|
||||
{
|
||||
params
|
||||
}
|
||||
@@ -22,9 +22,9 @@ export async function pageLawFeedback(params: LawFeedbackParam) {
|
||||
/**
|
||||
* 查询列表
|
||||
*/
|
||||
export async function listLawFeedback(params?: LawFeedbackParam) {
|
||||
const res = await request.get<ApiResult<LawFeedback[]>>(
|
||||
MODULES_API_URL + '/law/law-feedback',
|
||||
export async function listAiChatList(params?: AiChatListParam) {
|
||||
const res = await request.get<ApiResult<AiChatList[]>>(
|
||||
MODULES_API_URL + '/ai/ai-chat-list',
|
||||
{
|
||||
params
|
||||
}
|
||||
@@ -38,9 +38,9 @@ export async function listLawFeedback(params?: LawFeedbackParam) {
|
||||
/**
|
||||
* 添加
|
||||
*/
|
||||
export async function addLawFeedback(data: LawFeedback) {
|
||||
export async function addAiChatList(data: AiChatList) {
|
||||
const res = await request.post<ApiResult<unknown>>(
|
||||
MODULES_API_URL + '/law/law-feedback',
|
||||
MODULES_API_URL + '/ai/ai-chat-list',
|
||||
data
|
||||
);
|
||||
if (res.data.code === 0) {
|
||||
@@ -52,9 +52,9 @@ export async function addLawFeedback(data: LawFeedback) {
|
||||
/**
|
||||
* 修改
|
||||
*/
|
||||
export async function updateLawFeedback(data: LawFeedback) {
|
||||
export async function updateAiChatList(data: AiChatList) {
|
||||
const res = await request.put<ApiResult<unknown>>(
|
||||
MODULES_API_URL + '/law/law-feedback',
|
||||
MODULES_API_URL + '/ai/ai-chat-list',
|
||||
data
|
||||
);
|
||||
if (res.data.code === 0) {
|
||||
@@ -66,9 +66,9 @@ export async function updateLawFeedback(data: LawFeedback) {
|
||||
/**
|
||||
* 删除
|
||||
*/
|
||||
export async function removeLawFeedback(id?: number) {
|
||||
export async function removeAiChatList(id?: number) {
|
||||
const res = await request.delete<ApiResult<unknown>>(
|
||||
MODULES_API_URL + '/law/law-feedback/' + id
|
||||
MODULES_API_URL + '/ai/ai-chat-list/' + id
|
||||
);
|
||||
if (res.data.code === 0) {
|
||||
return res.data.message;
|
||||
@@ -79,9 +79,9 @@ export async function removeLawFeedback(id?: number) {
|
||||
/**
|
||||
* 批量删除
|
||||
*/
|
||||
export async function removeBatchLawFeedback(data: (number | undefined)[]) {
|
||||
export async function removeBatchAiChatList(data: (number | undefined)[]) {
|
||||
const res = await request.delete<ApiResult<unknown>>(
|
||||
MODULES_API_URL + '/law/law-feedback/batch',
|
||||
MODULES_API_URL + '/ai/ai-chat-list/batch',
|
||||
{
|
||||
data
|
||||
}
|
||||
@@ -95,9 +95,9 @@ export async function removeBatchLawFeedback(data: (number | undefined)[]) {
|
||||
/**
|
||||
* 根据id查询
|
||||
*/
|
||||
export async function getLawFeedback(id: number) {
|
||||
const res = await request.get<ApiResult<LawFeedback>>(
|
||||
MODULES_API_URL + '/law/law-feedback/' + id
|
||||
export async function getAiChatList(id: number) {
|
||||
const res = await request.get<ApiResult<AiChatList>>(
|
||||
MODULES_API_URL + '/ai/ai-chat-list/' + id
|
||||
);
|
||||
if (res.data.code === 0 && res.data.data) {
|
||||
return res.data.data;
|
||||
@@ -0,0 +1,47 @@
|
||||
import type { PageParam } from '@/api';
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
export interface AiChatList {
|
||||
//
|
||||
id?: number;
|
||||
//
|
||||
conversationId?: string;
|
||||
//
|
||||
userId?: number;
|
||||
//
|
||||
roleId?: number;
|
||||
//
|
||||
roleName?: string;
|
||||
//
|
||||
roleDesc?: string;
|
||||
// 状态, 0正常, 1冻结
|
||||
status?: number;
|
||||
// 是否删除, 0否, 1是
|
||||
deleted?: number;
|
||||
// 租户id
|
||||
tenantId?: number;
|
||||
// 注册时间
|
||||
createTime?: string;
|
||||
// 修改时间
|
||||
updateTime?: string;
|
||||
//
|
||||
title?: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* 搜索条件
|
||||
*/
|
||||
export interface AiChatListParam extends PageParam {
|
||||
id?: number;
|
||||
conversationId?: string;
|
||||
userId?: number;
|
||||
roleId?: number;
|
||||
roleName?: string;
|
||||
roleDesc?: string;
|
||||
status?: number;
|
||||
deleted?: number;
|
||||
title?: string;
|
||||
keywords?: string;
|
||||
}
|
||||
@@ -0,0 +1,46 @@
|
||||
import request from '@/utils/request';
|
||||
import type { ApiResult } from '@/api';
|
||||
import { MODULES_API_URL } from '@/config/setting';
|
||||
import type {
|
||||
ChallengeCupDocumentListResult,
|
||||
ChallengeCupDocumentParam,
|
||||
CompetitionHistoryPreprocessResult
|
||||
} from './model';
|
||||
|
||||
export async function preprocessCompetitionHistoryFiles(
|
||||
files: File[],
|
||||
scoreFile?: File,
|
||||
manualText?: string
|
||||
) {
|
||||
const formData = new FormData();
|
||||
files.forEach((file) => {
|
||||
formData.append('files', file);
|
||||
});
|
||||
if (scoreFile) {
|
||||
formData.append('scoreFile', scoreFile);
|
||||
}
|
||||
if (manualText?.trim()) {
|
||||
formData.append('manualText', manualText.trim());
|
||||
}
|
||||
const res = await request.post<ApiResult<CompetitionHistoryPreprocessResult>>(
|
||||
MODULES_API_URL + '/ai/competition-history/preprocess',
|
||||
formData
|
||||
);
|
||||
if (res.data.code === 0) {
|
||||
return res.data.data;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message || '历史竞赛文件预处理失败'));
|
||||
}
|
||||
|
||||
export async function listChallengeCupDocuments(
|
||||
params?: ChallengeCupDocumentParam
|
||||
) {
|
||||
const res = await request.get<ApiResult<ChallengeCupDocumentListResult>>(
|
||||
MODULES_API_URL + '/ai/knowledge-base/challenge-cup/documents',
|
||||
{ params }
|
||||
);
|
||||
if (res.data.code === 0) {
|
||||
return res.data.data;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message || '获取知识库文档失败'));
|
||||
}
|
||||
@@ -0,0 +1,48 @@
|
||||
export interface AiUploadedFile {
|
||||
id?: string | number;
|
||||
upload_file_id?: string | number;
|
||||
name?: string;
|
||||
size?: number;
|
||||
extension?: string;
|
||||
mime_type?: string;
|
||||
created_by?: string;
|
||||
created_at?: number;
|
||||
[key: string]: any;
|
||||
}
|
||||
|
||||
export interface CompetitionHistoryPreprocessResult {
|
||||
answer?: string;
|
||||
taskId?: string;
|
||||
workflowRunId?: string;
|
||||
outputs?: Record<string, any>;
|
||||
raw?: Record<string, any>;
|
||||
[key: string]: any;
|
||||
}
|
||||
|
||||
export interface ChallengeCupDocument {
|
||||
id: string;
|
||||
name?: string;
|
||||
data_source_type?: string;
|
||||
display_status?: string;
|
||||
indexing_status?: string;
|
||||
enabled?: boolean;
|
||||
word_count?: number;
|
||||
created_at?: number;
|
||||
updated_at?: number;
|
||||
archived?: boolean;
|
||||
[key: string]: any;
|
||||
}
|
||||
|
||||
export interface ChallengeCupDocumentListResult {
|
||||
data: ChallengeCupDocument[];
|
||||
has_more?: boolean;
|
||||
limit?: number;
|
||||
total?: number;
|
||||
page?: number;
|
||||
}
|
||||
|
||||
export interface ChallengeCupDocumentParam {
|
||||
page?: number;
|
||||
limit?: number;
|
||||
keyword?: string;
|
||||
}
|
||||
@@ -0,0 +1,45 @@
|
||||
import request from '@/utils/request';
|
||||
import type { AxiosRequestConfig } from 'axios';
|
||||
import type { ApiResult } from '@/api';
|
||||
import { MODULES_API_URL } from '@/config/setting';
|
||||
import type { FileRecord } from '@/api/system/file/model';
|
||||
import type {
|
||||
CreativeAssistantRequest,
|
||||
CreativeAssistantResponse
|
||||
} from './model';
|
||||
|
||||
/**
|
||||
* AI文件上传
|
||||
*/
|
||||
export async function uploadAiFile(file: File) {
|
||||
const formData = new FormData();
|
||||
formData.append('file', file);
|
||||
const res = await request.post<ApiResult<FileRecord>>(
|
||||
MODULES_API_URL + '/ai/file/upload',
|
||||
formData
|
||||
);
|
||||
if (res.data.code === 0 && res.data.data) {
|
||||
return res.data.data;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message || '上传失败'));
|
||||
}
|
||||
|
||||
/**
|
||||
* AI创意助手
|
||||
* 说明:接口路径根据当前项目命名规则按 /ai/creativeAssistant 约定,
|
||||
* 若后端实际路径不同,可直接在这里调整。
|
||||
*/
|
||||
export async function creativeAssistant(
|
||||
data: CreativeAssistantRequest,
|
||||
config?: AxiosRequestConfig
|
||||
) {
|
||||
const res = await request.post<ApiResult<CreativeAssistantResponse>>(
|
||||
MODULES_API_URL + '/ai/creativeAssistant',
|
||||
data,
|
||||
config
|
||||
);
|
||||
if (res.data.code === 0) {
|
||||
return res.data.data;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message || '执行失败'));
|
||||
}
|
||||
@@ -0,0 +1,27 @@
|
||||
import type { FileRecord } from '@/api/system/file/model';
|
||||
|
||||
export interface CreativeAssistantUploadFile {
|
||||
transfer_method: 'local_file';
|
||||
type: 'image' | 'document' | 'audio' | 'video';
|
||||
upload_file_id?: number;
|
||||
url: string;
|
||||
}
|
||||
|
||||
export interface CreativeAssistantRequest {
|
||||
user_content?: string;
|
||||
user_contentString?: string;
|
||||
user_files?: CreativeAssistantUploadFile[];
|
||||
}
|
||||
|
||||
export interface CreativeAssistantOutputs {
|
||||
video_result?: Partial<FileRecord>[];
|
||||
video_message?: string;
|
||||
Script_result?: string;
|
||||
photo_files?: Partial<FileRecord>[];
|
||||
photo_message?: string;
|
||||
}
|
||||
|
||||
export interface CreativeAssistantResponse {
|
||||
outputs?: CreativeAssistantOutputs;
|
||||
[key: string]: any;
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
import request from '@/utils/request';
|
||||
import type { ApiResult } from '@/api';
|
||||
import type { KnowledgeBaseListResult, KnowledgeBaseParam } from './model';
|
||||
import { MODULES_API_URL } from '@/config/setting';
|
||||
|
||||
/**
|
||||
* 知识库列表
|
||||
*/
|
||||
export async function listKnowledgeBase(params?: KnowledgeBaseParam) {
|
||||
const res = await request.get<ApiResult<KnowledgeBaseListResult>>(
|
||||
MODULES_API_URL + '/ai/knowledge-base/list',
|
||||
{ params }
|
||||
);
|
||||
if (res.data.code === 0) {
|
||||
return res.data.data;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
@@ -0,0 +1,49 @@
|
||||
/**
|
||||
* 知识库
|
||||
*/
|
||||
export interface KnowledgeBase {
|
||||
id: string;
|
||||
name: string;
|
||||
description?: string;
|
||||
provider?: string;
|
||||
permission?: string;
|
||||
data_source_type?: string;
|
||||
indexing_technique?: string;
|
||||
app_count?: number;
|
||||
document_count?: number;
|
||||
word_count?: number;
|
||||
created_by?: string;
|
||||
author_name?: string;
|
||||
created_at?: number;
|
||||
updated_by?: string;
|
||||
updated_at?: number;
|
||||
embedding_model?: string;
|
||||
embedding_model_provider?: string;
|
||||
embedding_available?: boolean;
|
||||
enable_api?: boolean;
|
||||
total_documents?: number;
|
||||
total_available_documents?: number;
|
||||
is_multimodal?: boolean;
|
||||
is_published?: boolean;
|
||||
tags?: string[];
|
||||
}
|
||||
|
||||
/**
|
||||
* 知识库列表响应
|
||||
*/
|
||||
export interface KnowledgeBaseListResult {
|
||||
data: KnowledgeBase[];
|
||||
has_more: boolean;
|
||||
limit: number;
|
||||
total: number;
|
||||
page: number;
|
||||
}
|
||||
|
||||
/**
|
||||
* 搜索条件
|
||||
*/
|
||||
export interface KnowledgeBaseParam {
|
||||
page?: number;
|
||||
limit?: number;
|
||||
keyword?: string;
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
import request from '@/utils/request';
|
||||
import type { AxiosRequestConfig } from 'axios';
|
||||
import type { ApiResult } from '@/api';
|
||||
import type { ManuscriptGenParams, ManuscriptGenResult } from './model';
|
||||
import { MODULES_API_URL } from '@/config/setting';
|
||||
|
||||
/**
|
||||
* AI内容创作
|
||||
*/
|
||||
export async function manuscriptGen(
|
||||
data: ManuscriptGenParams,
|
||||
config?: AxiosRequestConfig
|
||||
) {
|
||||
const res = await request.post<ApiResult<ManuscriptGenResult>>(
|
||||
MODULES_API_URL + '/ai/manuscriptGen',
|
||||
data,
|
||||
config
|
||||
);
|
||||
if (res.data.code === 0) {
|
||||
return res.data.data;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message || '生成失败'));
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
import type { FileRecord } from '@/api/system/file/model';
|
||||
|
||||
export interface ManuscriptGenParams {
|
||||
docType?: string;
|
||||
eventType?: string;
|
||||
theme?: string;
|
||||
time?: string;
|
||||
location?: string;
|
||||
participants?: string;
|
||||
highlights?: string;
|
||||
number?: number;
|
||||
files?: Partial<FileRecord>[];
|
||||
}
|
||||
|
||||
export type ManuscriptGenResult = string | Record<string, any>;
|
||||
@@ -0,0 +1,106 @@
|
||||
import request from '@/utils/request';
|
||||
import type { ApiResult, PageResult } from '@/api';
|
||||
import type { ArticleCollect, ArticleCollectParam } from './model';
|
||||
import { MODULES_API_URL } from '@/config/setting';
|
||||
|
||||
/**
|
||||
* 分页查询
|
||||
*/
|
||||
export async function pageArticleCollect(params: ArticleCollectParam) {
|
||||
const res = await request.get<ApiResult<PageResult<ArticleCollect>>>(
|
||||
MODULES_API_URL + '/cms/article-collect/page',
|
||||
{
|
||||
params
|
||||
}
|
||||
);
|
||||
if (res.data.code === 0) {
|
||||
return res.data.data;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询列表
|
||||
*/
|
||||
export async function listArticleCollect(params?: ArticleCollectParam) {
|
||||
const res = await request.get<ApiResult<ArticleCollect[]>>(
|
||||
MODULES_API_URL + '/cms/article-collect',
|
||||
{
|
||||
params
|
||||
}
|
||||
);
|
||||
if (res.data.code === 0 && res.data.data) {
|
||||
return res.data.data;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 添加
|
||||
*/
|
||||
export async function addArticleCollect(data: ArticleCollect) {
|
||||
const res = await request.post<ApiResult<unknown>>(
|
||||
MODULES_API_URL + '/cms/article-collect',
|
||||
data
|
||||
);
|
||||
if (res.data.code === 0) {
|
||||
return res.data.message;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改
|
||||
*/
|
||||
export async function updateArticleCollect(data: ArticleCollect) {
|
||||
const res = await request.put<ApiResult<unknown>>(
|
||||
MODULES_API_URL + '/cms/article-collect',
|
||||
data
|
||||
);
|
||||
if (res.data.code === 0) {
|
||||
return res.data.message;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除
|
||||
*/
|
||||
export async function removeArticleCollect(id?: number) {
|
||||
const res = await request.delete<ApiResult<unknown>>(
|
||||
MODULES_API_URL + '/cms/article-collect/' + id
|
||||
);
|
||||
if (res.data.code === 0) {
|
||||
return res.data.message;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除
|
||||
*/
|
||||
export async function removeBatchArticleCollect(data: (number | undefined)[]) {
|
||||
const res = await request.delete<ApiResult<unknown>>(
|
||||
MODULES_API_URL + '/cms/article-collect/batch',
|
||||
{
|
||||
data
|
||||
}
|
||||
);
|
||||
if (res.data.code === 0) {
|
||||
return res.data.message;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据id查询
|
||||
*/
|
||||
export async function getArticleCollect(id: number) {
|
||||
const res = await request.get<ApiResult<ArticleCollect>>(
|
||||
MODULES_API_URL + '/cms/article-collect/' + id
|
||||
);
|
||||
if (res.data.code === 0 && res.data.data) {
|
||||
return res.data.data;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
+8
-8
@@ -1,31 +1,31 @@
|
||||
import type { PageParam } from '@/api';
|
||||
|
||||
/**
|
||||
* 公证配置
|
||||
*
|
||||
*/
|
||||
export interface LawNotaryConfig {
|
||||
export interface ArticleCollect {
|
||||
//
|
||||
id?: number;
|
||||
//
|
||||
title?: string;
|
||||
// 配置
|
||||
configList?: string;
|
||||
articleId?: number;
|
||||
//
|
||||
userId?: number;
|
||||
// 状态, 0正常, 1冻结
|
||||
status?: number;
|
||||
// 是否删除, 0否, 1是
|
||||
deleted?: number;
|
||||
// 租户id
|
||||
tenantId?: number;
|
||||
// 创建时间
|
||||
// 注册时间
|
||||
createTime?: string;
|
||||
// 修改时间
|
||||
updateTime?: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* 公证配置搜索条件
|
||||
* 搜索条件
|
||||
*/
|
||||
export interface LawNotaryConfigParam extends PageParam {
|
||||
export interface ArticleCollectParam extends PageParam {
|
||||
id?: number;
|
||||
keywords?: string;
|
||||
}
|
||||
@@ -0,0 +1,106 @@
|
||||
import request from '@/utils/request';
|
||||
import type { ApiResult, PageResult } from '@/api';
|
||||
import type { ArticleComment, ArticleCommentParam } from './model';
|
||||
import { MODULES_API_URL } from '@/config/setting';
|
||||
|
||||
/**
|
||||
* 分页查询
|
||||
*/
|
||||
export async function pageArticleComment(params: ArticleCommentParam) {
|
||||
const res = await request.get<ApiResult<PageResult<ArticleComment>>>(
|
||||
MODULES_API_URL + '/cms/article-comment/page',
|
||||
{
|
||||
params
|
||||
}
|
||||
);
|
||||
if (res.data.code === 0) {
|
||||
return res.data.data;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询列表
|
||||
*/
|
||||
export async function listArticleComment(params?: ArticleCommentParam) {
|
||||
const res = await request.get<ApiResult<ArticleComment[]>>(
|
||||
MODULES_API_URL + '/cms/article-comment',
|
||||
{
|
||||
params
|
||||
}
|
||||
);
|
||||
if (res.data.code === 0 && res.data.data) {
|
||||
return res.data.data;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 添加
|
||||
*/
|
||||
export async function addArticleComment(data: ArticleComment) {
|
||||
const res = await request.post<ApiResult<unknown>>(
|
||||
MODULES_API_URL + '/cms/article-comment',
|
||||
data
|
||||
);
|
||||
if (res.data.code === 0) {
|
||||
return res.data.message;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改
|
||||
*/
|
||||
export async function updateArticleComment(data: ArticleComment) {
|
||||
const res = await request.put<ApiResult<unknown>>(
|
||||
MODULES_API_URL + '/cms/article-comment',
|
||||
data
|
||||
);
|
||||
if (res.data.code === 0) {
|
||||
return res.data.message;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除
|
||||
*/
|
||||
export async function removeArticleComment(id?: number) {
|
||||
const res = await request.delete<ApiResult<unknown>>(
|
||||
MODULES_API_URL + '/cms/article-comment/' + id
|
||||
);
|
||||
if (res.data.code === 0) {
|
||||
return res.data.message;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除
|
||||
*/
|
||||
export async function removeBatchArticleComment(data: (number | undefined)[]) {
|
||||
const res = await request.delete<ApiResult<unknown>>(
|
||||
MODULES_API_URL + '/cms/article-comment/batch',
|
||||
{
|
||||
data
|
||||
}
|
||||
);
|
||||
if (res.data.code === 0) {
|
||||
return res.data.message;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据id查询
|
||||
*/
|
||||
export async function getArticleComment(id: number) {
|
||||
const res = await request.get<ApiResult<ArticleComment>>(
|
||||
MODULES_API_URL + '/cms/article-comment/' + id
|
||||
);
|
||||
if (res.data.code === 0 && res.data.data) {
|
||||
return res.data.data;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
+8
-12
@@ -3,26 +3,22 @@ import type { PageParam } from '@/api';
|
||||
/**
|
||||
*
|
||||
*/
|
||||
export interface LawOrgPeople {
|
||||
export interface ArticleComment {
|
||||
//
|
||||
id?: number;
|
||||
//
|
||||
orgId?: number;
|
||||
//
|
||||
name?: string;
|
||||
//
|
||||
phone?: string;
|
||||
//
|
||||
position?: string;
|
||||
//
|
||||
type?: string;
|
||||
articleId?: number;
|
||||
//
|
||||
userId?: number;
|
||||
//
|
||||
content?: string;
|
||||
// 状态, 0正常, 1冻结
|
||||
status?: number;
|
||||
// 是否删除, 0否, 1是
|
||||
deleted?: number;
|
||||
// 租户id
|
||||
tenantId?: number;
|
||||
// 创建时间
|
||||
// 注册时间
|
||||
createTime?: string;
|
||||
// 修改时间
|
||||
updateTime?: string;
|
||||
@@ -31,7 +27,7 @@ export interface LawOrgPeople {
|
||||
/**
|
||||
* 搜索条件
|
||||
*/
|
||||
export interface LawOrgPeopleParam extends PageParam {
|
||||
export interface ArticleCommentParam extends PageParam {
|
||||
id?: number;
|
||||
keywords?: string;
|
||||
}
|
||||
@@ -0,0 +1,106 @@
|
||||
import request from '@/utils/request';
|
||||
import type { ApiResult, PageResult } from '@/api';
|
||||
import type { Manuscript, ManuscriptParam } from './model';
|
||||
import { MODULES_API_URL } from '@/config/setting';
|
||||
|
||||
/**
|
||||
* 分页查询稿件
|
||||
*/
|
||||
export async function pageManuscript(params: ManuscriptParam) {
|
||||
const res = await request.get<ApiResult<PageResult<Manuscript>>>(
|
||||
MODULES_API_URL + '/cms/manuscript/page',
|
||||
{
|
||||
params
|
||||
}
|
||||
);
|
||||
if (res.data.code === 0) {
|
||||
return res.data.data;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询稿件列表
|
||||
*/
|
||||
export async function listManuscript(params?: ManuscriptParam) {
|
||||
const res = await request.get<ApiResult<Manuscript[]>>(
|
||||
MODULES_API_URL + '/cms/manuscript',
|
||||
{
|
||||
params
|
||||
}
|
||||
);
|
||||
if (res.data.code === 0 && res.data.data) {
|
||||
return res.data.data;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 添加稿件
|
||||
*/
|
||||
export async function addManuscript(data: Manuscript) {
|
||||
const res = await request.post<ApiResult<unknown>>(
|
||||
MODULES_API_URL + '/cms/manuscript',
|
||||
data
|
||||
);
|
||||
if (res.data.code === 0) {
|
||||
return res.data.message;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改稿件
|
||||
*/
|
||||
export async function updateManuscript(data: Manuscript) {
|
||||
const res = await request.put<ApiResult<unknown>>(
|
||||
MODULES_API_URL + '/cms/manuscript',
|
||||
data
|
||||
);
|
||||
if (res.data.code === 0) {
|
||||
return res.data.message;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除稿件
|
||||
*/
|
||||
export async function removeManuscript(id?: number) {
|
||||
const res = await request.delete<ApiResult<unknown>>(
|
||||
MODULES_API_URL + '/cms/manuscript/' + id
|
||||
);
|
||||
if (res.data.code === 0) {
|
||||
return res.data.message;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除稿件
|
||||
*/
|
||||
export async function removeBatchManuscript(data: (number | undefined)[]) {
|
||||
const res = await request.delete<ApiResult<unknown>>(
|
||||
MODULES_API_URL + '/cms/manuscript/batch',
|
||||
{
|
||||
data
|
||||
}
|
||||
);
|
||||
if (res.data.code === 0) {
|
||||
return res.data.message;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据id查询稿件
|
||||
*/
|
||||
export async function getManuscript(id: number) {
|
||||
const res = await request.get<ApiResult<Manuscript>>(
|
||||
MODULES_API_URL + '/cms/manuscript/' + id
|
||||
);
|
||||
if (res.data.code === 0 && res.data.data) {
|
||||
return res.data.data;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
+15
-11
@@ -1,21 +1,18 @@
|
||||
import type { PageParam } from "@/api";
|
||||
import { ReviewList } from "@/api/gxmu/reviewList/model";
|
||||
|
||||
/**
|
||||
* 企业法制体检配置
|
||||
* 稿件
|
||||
*/
|
||||
export interface LawLegalOrgCheckType {
|
||||
export interface Manuscript {
|
||||
//
|
||||
id?: number;
|
||||
//
|
||||
icon?: string;
|
||||
//
|
||||
title?: string;
|
||||
content?: string;
|
||||
scoreConfig?: string;
|
||||
// 类型
|
||||
sortNumber?: number;
|
||||
//
|
||||
userId?: number;
|
||||
content?: string;
|
||||
//
|
||||
cover?: string;
|
||||
// 是否删除, 0否, 1是
|
||||
deleted?: number;
|
||||
// 租户id
|
||||
@@ -24,12 +21,19 @@ export interface LawLegalOrgCheckType {
|
||||
createTime?: string;
|
||||
// 修改时间
|
||||
updateTime?: string;
|
||||
//
|
||||
userId?: number;
|
||||
//
|
||||
sortNumber?: number;
|
||||
// 待审核
|
||||
status?: string;
|
||||
reviewList?: ReviewList[];
|
||||
}
|
||||
|
||||
/**
|
||||
* 企业法制体检配置搜索条件
|
||||
* 稿件搜索条件
|
||||
*/
|
||||
export interface LawLegalOrgCheckTypeParam extends PageParam {
|
||||
export interface ManuscriptParam extends PageParam {
|
||||
id?: number;
|
||||
keywords?: string;
|
||||
}
|
||||
@@ -0,0 +1,106 @@
|
||||
import request from '@/utils/request';
|
||||
import type { ApiResult, PageResult } from '@/api';
|
||||
import type { ArticleCollect, ArticleCollectParam } from './model';
|
||||
import { MODULES_API_URL } from '@/config/setting';
|
||||
|
||||
/**
|
||||
* 分页查询
|
||||
*/
|
||||
export async function pageArticleCollect(params: ArticleCollectParam) {
|
||||
const res = await request.get<ApiResult<PageResult<ArticleCollect>>>(
|
||||
MODULES_API_URL + '/gx/article-collect/page',
|
||||
{
|
||||
params
|
||||
}
|
||||
);
|
||||
if (res.data.code === 0) {
|
||||
return res.data.data;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询列表
|
||||
*/
|
||||
export async function listArticleCollect(params?: ArticleCollectParam) {
|
||||
const res = await request.get<ApiResult<ArticleCollect[]>>(
|
||||
MODULES_API_URL + '/gx/article-collect',
|
||||
{
|
||||
params
|
||||
}
|
||||
);
|
||||
if (res.data.code === 0 && res.data.data) {
|
||||
return res.data.data;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 添加
|
||||
*/
|
||||
export async function addArticleCollect(data: ArticleCollect) {
|
||||
const res = await request.post<ApiResult<unknown>>(
|
||||
MODULES_API_URL + '/gx/article-collect',
|
||||
data
|
||||
);
|
||||
if (res.data.code === 0) {
|
||||
return res.data.message;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改
|
||||
*/
|
||||
export async function updateArticleCollect(data: ArticleCollect) {
|
||||
const res = await request.put<ApiResult<unknown>>(
|
||||
MODULES_API_URL + '/gx/article-collect',
|
||||
data
|
||||
);
|
||||
if (res.data.code === 0) {
|
||||
return res.data.message;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除
|
||||
*/
|
||||
export async function removeArticleCollect(id?: number) {
|
||||
const res = await request.delete<ApiResult<unknown>>(
|
||||
MODULES_API_URL + '/gx/article-collect/' + id
|
||||
);
|
||||
if (res.data.code === 0) {
|
||||
return res.data.message;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除
|
||||
*/
|
||||
export async function removeBatchArticleCollect(data: (number | undefined)[]) {
|
||||
const res = await request.delete<ApiResult<unknown>>(
|
||||
MODULES_API_URL + '/gx/article-collect/batch',
|
||||
{
|
||||
data
|
||||
}
|
||||
);
|
||||
if (res.data.code === 0) {
|
||||
return res.data.message;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据id查询
|
||||
*/
|
||||
export async function getArticleCollect(id: number) {
|
||||
const res = await request.get<ApiResult<ArticleCollect>>(
|
||||
MODULES_API_URL + '/gx/article-collect/' + id
|
||||
);
|
||||
if (res.data.code === 0 && res.data.data) {
|
||||
return res.data.data;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
+8
-8
@@ -1,31 +1,31 @@
|
||||
import type { PageParam } from '@/api';
|
||||
|
||||
/**
|
||||
* 用户填写法律文书内容
|
||||
*
|
||||
*/
|
||||
export interface LawLegalDocContent {
|
||||
export interface ArticleCollect {
|
||||
//
|
||||
id?: number;
|
||||
//
|
||||
groupId?: number;
|
||||
//
|
||||
content?: string;
|
||||
articleId?: number;
|
||||
//
|
||||
userId?: number;
|
||||
// 状态, 0正常, 1冻结
|
||||
status?: number;
|
||||
// 是否删除, 0否, 1是
|
||||
deleted?: number;
|
||||
// 租户id
|
||||
tenantId?: number;
|
||||
// 创建时间
|
||||
// 注册时间
|
||||
createTime?: string;
|
||||
// 修改时间
|
||||
updateTime?: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* 用户填写法律文书内容搜索条件
|
||||
* 搜索条件
|
||||
*/
|
||||
export interface LawLegalDocContentParam extends PageParam {
|
||||
export interface ArticleCollectParam extends PageParam {
|
||||
id?: number;
|
||||
keywords?: string;
|
||||
}
|
||||
@@ -0,0 +1,106 @@
|
||||
import request from '@/utils/request';
|
||||
import type { ApiResult, PageResult } from '@/api';
|
||||
import type { GxChatHistory, GxChatHistoryParam } from './model';
|
||||
import { MODULES_API_URL } from '@/config/setting';
|
||||
|
||||
/**
|
||||
* 分页查询
|
||||
*/
|
||||
export async function pageGxChatHistory(params: GxChatHistoryParam) {
|
||||
const res = await request.get<ApiResult<PageResult<GxChatHistory>>>(
|
||||
MODULES_API_URL + '/gx/gx-chat-history/page',
|
||||
{
|
||||
params
|
||||
}
|
||||
);
|
||||
if (res.data.code === 0) {
|
||||
return res.data.data;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询列表
|
||||
*/
|
||||
export async function listGxChatHistory(params?: GxChatHistoryParam) {
|
||||
const res = await request.get<ApiResult<GxChatHistory[]>>(
|
||||
MODULES_API_URL + '/gx/gx-chat-history',
|
||||
{
|
||||
params
|
||||
}
|
||||
);
|
||||
if (res.data.code === 0 && res.data.data) {
|
||||
return res.data.data;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 添加
|
||||
*/
|
||||
export async function addGxChatHistory(data: GxChatHistory) {
|
||||
const res = await request.post<ApiResult<unknown>>(
|
||||
MODULES_API_URL + '/gx/gx-chat-history',
|
||||
data
|
||||
);
|
||||
if (res.data.code === 0) {
|
||||
return res.data.message;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改
|
||||
*/
|
||||
export async function updateGxChatHistory(data: GxChatHistory) {
|
||||
const res = await request.put<ApiResult<unknown>>(
|
||||
MODULES_API_URL + '/gx/gx-chat-history',
|
||||
data
|
||||
);
|
||||
if (res.data.code === 0) {
|
||||
return res.data.message;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除
|
||||
*/
|
||||
export async function removeGxChatHistory(id?: number) {
|
||||
const res = await request.delete<ApiResult<unknown>>(
|
||||
MODULES_API_URL + '/gx/gx-chat-history/' + id
|
||||
);
|
||||
if (res.data.code === 0) {
|
||||
return res.data.message;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除
|
||||
*/
|
||||
export async function removeBatchGxChatHistory(data: (number | undefined)[]) {
|
||||
const res = await request.delete<ApiResult<unknown>>(
|
||||
MODULES_API_URL + '/gx/gx-chat-history/batch',
|
||||
{
|
||||
data
|
||||
}
|
||||
);
|
||||
if (res.data.code === 0) {
|
||||
return res.data.message;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据id查询
|
||||
*/
|
||||
export async function getGxChatHistory(id: number) {
|
||||
const res = await request.get<ApiResult<GxChatHistory>>(
|
||||
MODULES_API_URL + '/gx/gx-chat-history/' + id
|
||||
);
|
||||
if (res.data.code === 0 && res.data.data) {
|
||||
return res.data.data;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
@@ -3,30 +3,28 @@ import type { PageParam } from '@/api';
|
||||
/**
|
||||
*
|
||||
*/
|
||||
export interface LawFeedback {
|
||||
export interface GxChatHistory {
|
||||
//
|
||||
id?: number;
|
||||
//
|
||||
chatId?: number;
|
||||
//
|
||||
conversationId?: string;
|
||||
//
|
||||
userId?: number;
|
||||
//
|
||||
title?: string;
|
||||
//
|
||||
company?: string;
|
||||
//
|
||||
address?: string;
|
||||
//
|
||||
date?: string;
|
||||
//
|
||||
pics?: string;
|
||||
//
|
||||
video?: string;
|
||||
//
|
||||
content?: string;
|
||||
//
|
||||
reply?: string;
|
||||
// 状态, 0正常, 1冻结
|
||||
status?: number;
|
||||
// 是否删除, 0否, 1是
|
||||
deleted?: number;
|
||||
// 商户编码
|
||||
merchantCode?: string;
|
||||
// 租户id
|
||||
tenantId?: number;
|
||||
// 创建时间
|
||||
// 注册时间
|
||||
createTime?: string;
|
||||
// 修改时间
|
||||
updateTime?: string;
|
||||
@@ -35,7 +33,7 @@ export interface LawFeedback {
|
||||
/**
|
||||
* 搜索条件
|
||||
*/
|
||||
export interface LawFeedbackParam extends PageParam {
|
||||
export interface GxChatHistoryParam extends PageParam {
|
||||
id?: number;
|
||||
keywords?: string;
|
||||
}
|
||||
@@ -1,14 +1,14 @@
|
||||
import request from '@/utils/request';
|
||||
import type { ApiResult, PageResult } from '@/api';
|
||||
import type { LawOrgPeople, LawOrgPeopleParam } from './model';
|
||||
import type { GxChatList, GxChatListParam } from './model';
|
||||
import { MODULES_API_URL } from '@/config/setting';
|
||||
|
||||
/**
|
||||
* 分页查询
|
||||
*/
|
||||
export async function pageLawOrgPeople(params: LawOrgPeopleParam) {
|
||||
const res = await request.get<ApiResult<PageResult<LawOrgPeople>>>(
|
||||
MODULES_API_URL + '/law/law-org-people/page',
|
||||
export async function pageGxChatList(params: GxChatListParam) {
|
||||
const res = await request.get<ApiResult<PageResult<GxChatList>>>(
|
||||
MODULES_API_URL + '/gx/gx-chat-list/page',
|
||||
{
|
||||
params
|
||||
}
|
||||
@@ -22,9 +22,9 @@ export async function pageLawOrgPeople(params: LawOrgPeopleParam) {
|
||||
/**
|
||||
* 查询列表
|
||||
*/
|
||||
export async function listLawOrgPeople(params?: LawOrgPeopleParam) {
|
||||
const res = await request.get<ApiResult<LawOrgPeople[]>>(
|
||||
MODULES_API_URL + '/law/law-org-people',
|
||||
export async function listGxChatList(params?: GxChatListParam) {
|
||||
const res = await request.get<ApiResult<GxChatList[]>>(
|
||||
MODULES_API_URL + '/gx/gx-chat-list',
|
||||
{
|
||||
params
|
||||
}
|
||||
@@ -38,9 +38,9 @@ export async function listLawOrgPeople(params?: LawOrgPeopleParam) {
|
||||
/**
|
||||
* 添加
|
||||
*/
|
||||
export async function addLawOrgPeople(data: LawOrgPeople) {
|
||||
export async function addGxChatList(data: GxChatList) {
|
||||
const res = await request.post<ApiResult<unknown>>(
|
||||
MODULES_API_URL + '/law/law-org-people',
|
||||
MODULES_API_URL + '/gx/gx-chat-list',
|
||||
data
|
||||
);
|
||||
if (res.data.code === 0) {
|
||||
@@ -52,9 +52,9 @@ export async function addLawOrgPeople(data: LawOrgPeople) {
|
||||
/**
|
||||
* 修改
|
||||
*/
|
||||
export async function updateLawOrgPeople(data: LawOrgPeople) {
|
||||
export async function updateGxChatList(data: GxChatList) {
|
||||
const res = await request.put<ApiResult<unknown>>(
|
||||
MODULES_API_URL + '/law/law-org-people',
|
||||
MODULES_API_URL + '/gx/gx-chat-list',
|
||||
data
|
||||
);
|
||||
if (res.data.code === 0) {
|
||||
@@ -66,9 +66,9 @@ export async function updateLawOrgPeople(data: LawOrgPeople) {
|
||||
/**
|
||||
* 删除
|
||||
*/
|
||||
export async function removeLawOrgPeople(id?: number) {
|
||||
export async function removeGxChatList(id?: number) {
|
||||
const res = await request.delete<ApiResult<unknown>>(
|
||||
MODULES_API_URL + '/law/law-org-people/' + id
|
||||
MODULES_API_URL + '/gx/gx-chat-list/' + id
|
||||
);
|
||||
if (res.data.code === 0) {
|
||||
return res.data.message;
|
||||
@@ -79,9 +79,9 @@ export async function removeLawOrgPeople(id?: number) {
|
||||
/**
|
||||
* 批量删除
|
||||
*/
|
||||
export async function removeBatchLawOrgPeople(data: (number | undefined)[]) {
|
||||
export async function removeBatchGxChatList(data: (number | undefined)[]) {
|
||||
const res = await request.delete<ApiResult<unknown>>(
|
||||
MODULES_API_URL + '/law/law-org-people/batch',
|
||||
MODULES_API_URL + '/gx/gx-chat-list/batch',
|
||||
{
|
||||
data
|
||||
}
|
||||
@@ -95,9 +95,9 @@ export async function removeBatchLawOrgPeople(data: (number | undefined)[]) {
|
||||
/**
|
||||
* 根据id查询
|
||||
*/
|
||||
export async function getLawOrgPeople(id: number) {
|
||||
const res = await request.get<ApiResult<LawOrgPeople>>(
|
||||
MODULES_API_URL + '/law/law-org-people/' + id
|
||||
export async function getGxChatList(id: number) {
|
||||
const res = await request.get<ApiResult<GxChatList>>(
|
||||
MODULES_API_URL + '/gx/gx-chat-list/' + id
|
||||
);
|
||||
if (res.data.code === 0 && res.data.data) {
|
||||
return res.data.data;
|
||||
@@ -0,0 +1,31 @@
|
||||
import type { PageParam } from '@/api';
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
export interface GxChatList {
|
||||
//
|
||||
id?: number;
|
||||
//
|
||||
conversationId?: string;
|
||||
//
|
||||
uid?: number;
|
||||
// 状态, 0正常, 1冻结
|
||||
status?: number;
|
||||
// 是否删除, 0否, 1是
|
||||
deleted?: number;
|
||||
// 租户id
|
||||
tenantId?: number;
|
||||
// 注册时间
|
||||
createTime?: string;
|
||||
// 修改时间
|
||||
updateTime?: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* 搜索条件
|
||||
*/
|
||||
export interface GxChatListParam extends PageParam {
|
||||
id?: number;
|
||||
keywords?: string;
|
||||
}
|
||||
@@ -0,0 +1,106 @@
|
||||
import request from '@/utils/request';
|
||||
import type { ApiResult, PageResult } from '@/api';
|
||||
import type { GxCoinLog, GxCoinLogParam } from './model';
|
||||
import { MODULES_API_URL } from '@/config/setting';
|
||||
|
||||
/**
|
||||
* 分页查询金币记录
|
||||
*/
|
||||
export async function pageGxCoinLog(params: GxCoinLogParam) {
|
||||
const res = await request.get<ApiResult<PageResult<GxCoinLog>>>(
|
||||
MODULES_API_URL + '/gx/gx-coin-log/page',
|
||||
{
|
||||
params
|
||||
}
|
||||
);
|
||||
if (res.data.code === 0) {
|
||||
return res.data.data;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询金币记录列表
|
||||
*/
|
||||
export async function listGxCoinLog(params?: GxCoinLogParam) {
|
||||
const res = await request.get<ApiResult<GxCoinLog[]>>(
|
||||
MODULES_API_URL + '/gx/gx-coin-log',
|
||||
{
|
||||
params
|
||||
}
|
||||
);
|
||||
if (res.data.code === 0 && res.data.data) {
|
||||
return res.data.data;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 添加金币记录
|
||||
*/
|
||||
export async function addGxCoinLog(data: GxCoinLog) {
|
||||
const res = await request.post<ApiResult<unknown>>(
|
||||
MODULES_API_URL + '/gx/gx-coin-log',
|
||||
data
|
||||
);
|
||||
if (res.data.code === 0) {
|
||||
return res.data.message;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改金币记录
|
||||
*/
|
||||
export async function updateGxCoinLog(data: GxCoinLog) {
|
||||
const res = await request.put<ApiResult<unknown>>(
|
||||
MODULES_API_URL + '/gx/gx-coin-log',
|
||||
data
|
||||
);
|
||||
if (res.data.code === 0) {
|
||||
return res.data.message;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除金币记录
|
||||
*/
|
||||
export async function removeGxCoinLog(id?: number) {
|
||||
const res = await request.delete<ApiResult<unknown>>(
|
||||
MODULES_API_URL + '/gx/gx-coin-log/' + id
|
||||
);
|
||||
if (res.data.code === 0) {
|
||||
return res.data.message;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除金币记录
|
||||
*/
|
||||
export async function removeBatchGxCoinLog(data: (number | undefined)[]) {
|
||||
const res = await request.delete<ApiResult<unknown>>(
|
||||
MODULES_API_URL + '/gx/gx-coin-log/batch',
|
||||
{
|
||||
data
|
||||
}
|
||||
);
|
||||
if (res.data.code === 0) {
|
||||
return res.data.message;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据id查询金币记录
|
||||
*/
|
||||
export async function getGxCoinLog(id: number) {
|
||||
const res = await request.get<ApiResult<GxCoinLog>>(
|
||||
MODULES_API_URL + '/gx/gx-coin-log/' + id
|
||||
);
|
||||
if (res.data.code === 0 && res.data.data) {
|
||||
return res.data.data;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
@@ -0,0 +1,43 @@
|
||||
import type { PageParam } from '@/api';
|
||||
|
||||
/**
|
||||
* 金币记录
|
||||
*/
|
||||
export interface GxCoinLog {
|
||||
//
|
||||
id?: number;
|
||||
//
|
||||
orderNo?: string;
|
||||
//
|
||||
userId?: number;
|
||||
// +/-
|
||||
type?: string;
|
||||
//
|
||||
num?: number;
|
||||
// 描述
|
||||
desc?: string;
|
||||
//
|
||||
sortNumber?: number;
|
||||
// 是否删除, 0否, 1是
|
||||
deleted?: number;
|
||||
// 租户id
|
||||
tenantId?: number;
|
||||
// 注册时间
|
||||
createTime?: string;
|
||||
// 修改时间
|
||||
updateTime?: string;
|
||||
//
|
||||
paidNo?: string;
|
||||
// 0待支付 1已支付
|
||||
status?: number;
|
||||
}
|
||||
|
||||
/**
|
||||
* 金币记录搜索条件
|
||||
*/
|
||||
export interface GxCoinLogParam extends PageParam {
|
||||
id?: number;
|
||||
// 用户id
|
||||
userId?: number;
|
||||
keywords?: string;
|
||||
}
|
||||
@@ -0,0 +1,106 @@
|
||||
import request from '@/utils/request';
|
||||
import type { ApiResult, PageResult } from '@/api';
|
||||
import type { GxFeedback, GxFeedbackParam } from './model';
|
||||
import { MODULES_API_URL } from '@/config/setting';
|
||||
|
||||
/**
|
||||
* 分页查询
|
||||
*/
|
||||
export async function pageGxFeedback(params: GxFeedbackParam) {
|
||||
const res = await request.get<ApiResult<PageResult<GxFeedback>>>(
|
||||
MODULES_API_URL + '/gx/gx-feedback/page',
|
||||
{
|
||||
params
|
||||
}
|
||||
);
|
||||
if (res.data.code === 0) {
|
||||
return res.data.data;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询列表
|
||||
*/
|
||||
export async function listGxFeedback(params?: GxFeedbackParam) {
|
||||
const res = await request.get<ApiResult<GxFeedback[]>>(
|
||||
MODULES_API_URL + '/gx/gx-feedback',
|
||||
{
|
||||
params
|
||||
}
|
||||
);
|
||||
if (res.data.code === 0 && res.data.data) {
|
||||
return res.data.data;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 添加
|
||||
*/
|
||||
export async function addGxFeedback(data: GxFeedback) {
|
||||
const res = await request.post<ApiResult<unknown>>(
|
||||
MODULES_API_URL + '/gx/gx-feedback',
|
||||
data
|
||||
);
|
||||
if (res.data.code === 0) {
|
||||
return res.data.message;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改
|
||||
*/
|
||||
export async function updateGxFeedback(data: GxFeedback) {
|
||||
const res = await request.put<ApiResult<unknown>>(
|
||||
MODULES_API_URL + '/gx/gx-feedback',
|
||||
data
|
||||
);
|
||||
if (res.data.code === 0) {
|
||||
return res.data.message;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除
|
||||
*/
|
||||
export async function removeGxFeedback(id?: number) {
|
||||
const res = await request.delete<ApiResult<unknown>>(
|
||||
MODULES_API_URL + '/gx/gx-feedback/' + id
|
||||
);
|
||||
if (res.data.code === 0) {
|
||||
return res.data.message;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除
|
||||
*/
|
||||
export async function removeBatchGxFeedback(data: (number | undefined)[]) {
|
||||
const res = await request.delete<ApiResult<unknown>>(
|
||||
MODULES_API_URL + '/gx/gx-feedback/batch',
|
||||
{
|
||||
data
|
||||
}
|
||||
);
|
||||
if (res.data.code === 0) {
|
||||
return res.data.message;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据id查询
|
||||
*/
|
||||
export async function getGxFeedback(id: number) {
|
||||
const res = await request.get<ApiResult<GxFeedback>>(
|
||||
MODULES_API_URL + '/gx/gx-feedback/' + id
|
||||
);
|
||||
if (res.data.code === 0 && res.data.data) {
|
||||
return res.data.data;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
@@ -0,0 +1,37 @@
|
||||
import type { PageParam } from '@/api';
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
export interface GxFeedback {
|
||||
//
|
||||
id?: number;
|
||||
// 功能体验
|
||||
funcExp?: string;
|
||||
// 咨询体验
|
||||
advisoryExp?: string;
|
||||
//
|
||||
comments?: string;
|
||||
//
|
||||
userId?: number;
|
||||
//
|
||||
sortNumber?: number;
|
||||
// 状态, 0正常, 1冻结
|
||||
status?: number;
|
||||
// 是否删除, 0否, 1是
|
||||
deleted?: number;
|
||||
// 租户id
|
||||
tenantId?: number;
|
||||
// 注册时间
|
||||
createTime?: string;
|
||||
// 修改时间
|
||||
updateTime?: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* 搜索条件
|
||||
*/
|
||||
export interface GxFeedbackParam extends PageParam {
|
||||
id?: number;
|
||||
keywords?: string;
|
||||
}
|
||||
@@ -0,0 +1,141 @@
|
||||
import request from "@/utils/request";
|
||||
import type { ApiResult, PageResult } from "@/api";
|
||||
import type { GxRole, GxRoleParam } from "./model";
|
||||
import { MODULES_API_URL } from "@/config/setting";
|
||||
|
||||
/**
|
||||
* 分页查询
|
||||
*/
|
||||
export async function pageGxRole(params: GxRoleParam) {
|
||||
const res = await request.get<ApiResult<PageResult<GxRole>>>(
|
||||
MODULES_API_URL + "/gx/gx-role/page",
|
||||
{
|
||||
params
|
||||
}
|
||||
);
|
||||
if (res.data.code === 0) {
|
||||
return res.data.data;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询列表
|
||||
*/
|
||||
export async function listGxRole(params?: GxRoleParam) {
|
||||
const res = await request.get<ApiResult<GxRole[]>>(
|
||||
MODULES_API_URL + "/gx/gx-role",
|
||||
{
|
||||
params
|
||||
}
|
||||
);
|
||||
if (res.data.code === 0 && res.data.data) {
|
||||
return res.data.data;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 添加
|
||||
*/
|
||||
export async function addGxRole(data: GxRole) {
|
||||
const res = await request.post<ApiResult<unknown>>(
|
||||
MODULES_API_URL + "/gx/gx-role",
|
||||
data
|
||||
);
|
||||
if (res.data.code === 0) {
|
||||
return res.data.message;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改
|
||||
*/
|
||||
export async function updateGxRole(data: GxRole) {
|
||||
const res = await request.put<ApiResult<unknown>>(
|
||||
MODULES_API_URL + "/gx/gx-role",
|
||||
data
|
||||
);
|
||||
if (res.data.code === 0) {
|
||||
return res.data.message;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除
|
||||
*/
|
||||
export async function removeGxRole(id?: number) {
|
||||
const res = await request.delete<ApiResult<unknown>>(
|
||||
MODULES_API_URL + "/gx/gx-role/" + id
|
||||
);
|
||||
if (res.data.code === 0) {
|
||||
return res.data.message;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除
|
||||
*/
|
||||
export async function removeBatchGxRole(data: (number | undefined)[]) {
|
||||
const res = await request.delete<ApiResult<unknown>>(
|
||||
MODULES_API_URL + "/gx/gx-role/batch",
|
||||
{
|
||||
data
|
||||
}
|
||||
);
|
||||
if (res.data.code === 0) {
|
||||
return res.data.message;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据id查询
|
||||
*/
|
||||
export async function getGxRole(id: number) {
|
||||
const res = await request.get<ApiResult<GxRole>>(
|
||||
MODULES_API_URL + "/gx/gx-role/" + id
|
||||
);
|
||||
if (res.data.code === 0 && res.data.data) {
|
||||
return res.data.data;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
export interface VoiceMakeParam {
|
||||
voice: string;
|
||||
text: string;
|
||||
emo?: string;
|
||||
}
|
||||
|
||||
export type VoiceMakeResult =
|
||||
| string
|
||||
| {
|
||||
url?: string;
|
||||
audioUrl?: string;
|
||||
src?: string;
|
||||
path?: string;
|
||||
};
|
||||
|
||||
/**
|
||||
* 角色音色试听
|
||||
*/
|
||||
export async function makeVoice(params: VoiceMakeParam) {
|
||||
const { voice, text, emo } = params;
|
||||
const res = await request.post<ApiResult<VoiceMakeResult | undefined>>(
|
||||
`${MODULES_API_URL}/voice/make`,
|
||||
{
|
||||
text,
|
||||
content: text,
|
||||
emo,
|
||||
voice
|
||||
}
|
||||
);
|
||||
if (res.data.code === 0) {
|
||||
return res.data.data;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
@@ -0,0 +1,41 @@
|
||||
import type { PageParam } from '@/api';
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
export interface GxRole {
|
||||
//
|
||||
id?: number;
|
||||
// 角色名称
|
||||
roleName?: string;
|
||||
// 提示词
|
||||
prompt?: string;
|
||||
// 角色描述
|
||||
roleDesc?: string;
|
||||
// 角色头像
|
||||
avatar?: string;
|
||||
// 背景图片
|
||||
bgImage?: string;
|
||||
// 音色
|
||||
voice?: string;
|
||||
// 情绪
|
||||
emo?: string;
|
||||
// 状态, 0正常, 1冻结
|
||||
status?: number;
|
||||
// 是否删除, 0否, 1是
|
||||
deleted?: number;
|
||||
// 租户id
|
||||
tenantId?: number;
|
||||
// 注册时间
|
||||
createTime?: string;
|
||||
// 修改时间
|
||||
updateTime?: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* 搜索条件
|
||||
*/
|
||||
export interface GxRoleParam extends PageParam {
|
||||
id?: number;
|
||||
keywords?: string;
|
||||
}
|
||||
@@ -0,0 +1,106 @@
|
||||
import request from '@/utils/request';
|
||||
import type { ApiResult, PageResult } from '@/api';
|
||||
import type { GxSignLog, GxSignLogParam } from './model';
|
||||
import { MODULES_API_URL } from '@/config/setting';
|
||||
|
||||
/**
|
||||
* 分页查询
|
||||
*/
|
||||
export async function pageGxSignLog(params: GxSignLogParam) {
|
||||
const res = await request.get<ApiResult<PageResult<GxSignLog>>>(
|
||||
MODULES_API_URL + '/gx/gx-sign-log/page',
|
||||
{
|
||||
params
|
||||
}
|
||||
);
|
||||
if (res.data.code === 0) {
|
||||
return res.data.data;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询列表
|
||||
*/
|
||||
export async function listGxSignLog(params?: GxSignLogParam) {
|
||||
const res = await request.get<ApiResult<GxSignLog[]>>(
|
||||
MODULES_API_URL + '/gx/gx-sign-log',
|
||||
{
|
||||
params
|
||||
}
|
||||
);
|
||||
if (res.data.code === 0 && res.data.data) {
|
||||
return res.data.data;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 添加
|
||||
*/
|
||||
export async function addGxSignLog(data: GxSignLog) {
|
||||
const res = await request.post<ApiResult<unknown>>(
|
||||
MODULES_API_URL + '/gx/gx-sign-log',
|
||||
data
|
||||
);
|
||||
if (res.data.code === 0) {
|
||||
return res.data.message;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改
|
||||
*/
|
||||
export async function updateGxSignLog(data: GxSignLog) {
|
||||
const res = await request.put<ApiResult<unknown>>(
|
||||
MODULES_API_URL + '/gx/gx-sign-log',
|
||||
data
|
||||
);
|
||||
if (res.data.code === 0) {
|
||||
return res.data.message;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除
|
||||
*/
|
||||
export async function removeGxSignLog(id?: number) {
|
||||
const res = await request.delete<ApiResult<unknown>>(
|
||||
MODULES_API_URL + '/gx/gx-sign-log/' + id
|
||||
);
|
||||
if (res.data.code === 0) {
|
||||
return res.data.message;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除
|
||||
*/
|
||||
export async function removeBatchGxSignLog(data: (number | undefined)[]) {
|
||||
const res = await request.delete<ApiResult<unknown>>(
|
||||
MODULES_API_URL + '/gx/gx-sign-log/batch',
|
||||
{
|
||||
data
|
||||
}
|
||||
);
|
||||
if (res.data.code === 0) {
|
||||
return res.data.message;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据id查询
|
||||
*/
|
||||
export async function getGxSignLog(id: number) {
|
||||
const res = await request.get<ApiResult<GxSignLog>>(
|
||||
MODULES_API_URL + '/gx/gx-sign-log/' + id
|
||||
);
|
||||
if (res.data.code === 0 && res.data.data) {
|
||||
return res.data.data;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
@@ -1,33 +1,33 @@
|
||||
import type { PageParam } from '@/api';
|
||||
|
||||
/**
|
||||
* 法律计算器配置
|
||||
*
|
||||
*/
|
||||
export interface LawLegalCalType {
|
||||
export interface GxSignLog {
|
||||
//
|
||||
id?: number;
|
||||
//
|
||||
icon?: string;
|
||||
//
|
||||
title?: string;
|
||||
// 类型
|
||||
sortNumber?: number;
|
||||
//
|
||||
userId?: number;
|
||||
//
|
||||
date?: string;
|
||||
//
|
||||
sortNumber?: number;
|
||||
// 状态, 0正常, 1冻结
|
||||
status?: number;
|
||||
// 是否删除, 0否, 1是
|
||||
deleted?: number;
|
||||
// 租户id
|
||||
tenantId?: number;
|
||||
// 创建时间
|
||||
// 注册时间
|
||||
createTime?: string;
|
||||
// 修改时间
|
||||
updateTime?: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* 法律计算器配置搜索条件
|
||||
* 搜索条件
|
||||
*/
|
||||
export interface LawLegalCalTypeParam extends PageParam {
|
||||
export interface GxSignLogParam extends PageParam {
|
||||
id?: number;
|
||||
keywords?: string;
|
||||
}
|
||||
@@ -0,0 +1,79 @@
|
||||
import request from '@/utils/request';
|
||||
import type { ApiResult, PageResult } from '@/api';
|
||||
import type { ClassInfo, ClassImportItem, ClassInfoParam } from './model';
|
||||
|
||||
export async function pageClassInfo(params: ClassInfoParam) {
|
||||
const res = await request.get<ApiResult<PageResult<ClassInfo>>>(
|
||||
'/gxmu/class/page',
|
||||
{
|
||||
params
|
||||
}
|
||||
);
|
||||
if (res.data.code === 0 && res.data.data) {
|
||||
return res.data.data;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
export async function listClassInfo(params?: ClassInfoParam) {
|
||||
const res = await request.get<ApiResult<ClassInfo[]>>('/gxmu/class', {
|
||||
params
|
||||
});
|
||||
if (res.data.code === 0 && res.data.data) {
|
||||
return res.data.data;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
export async function getClassInfo(id: number) {
|
||||
const res = await request.get<ApiResult<ClassInfo>>('/gxmu/class/' + id);
|
||||
if (res.data.code === 0 && res.data.data) {
|
||||
return res.data.data;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
export async function addClassInfo(data: ClassInfo) {
|
||||
const res = await request.post<ApiResult<unknown>>('/gxmu/class', data);
|
||||
if (res.data.code === 0) {
|
||||
return res.data.message;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
export async function updateClassInfo(data: ClassInfo) {
|
||||
const res = await request.put<ApiResult<unknown>>('/gxmu/class', data);
|
||||
if (res.data.code === 0) {
|
||||
return res.data.message;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
export async function removeClassInfo(id?: number) {
|
||||
const res = await request.delete<ApiResult<unknown>>('/gxmu/class/' + id);
|
||||
if (res.data.code === 0) {
|
||||
return res.data.message;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
export async function removeBatchClassInfo(data: (number | undefined)[]) {
|
||||
const res = await request.delete<ApiResult<unknown>>('/gxmu/class/batch', {
|
||||
data
|
||||
});
|
||||
if (res.data.code === 0) {
|
||||
return res.data.message;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
export async function importClassInfo(data: ClassImportItem[]) {
|
||||
const res = await request.post<ApiResult<unknown>>(
|
||||
'/gxmu/class/import',
|
||||
data
|
||||
);
|
||||
if (res.data.code === 0) {
|
||||
return res.data.message;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
@@ -0,0 +1,41 @@
|
||||
import type { PageParam } from '@/api';
|
||||
|
||||
export interface ClassInfo {
|
||||
id?: number;
|
||||
collegeId?: number;
|
||||
collegeName?: string;
|
||||
classCode?: string;
|
||||
className?: string;
|
||||
gradeYear?: number;
|
||||
counselorName?: string;
|
||||
counselorPhone?: string;
|
||||
studentCount?: number;
|
||||
sortNumber?: number;
|
||||
status?: number;
|
||||
remark?: string;
|
||||
createTime?: string;
|
||||
updateTime?: string;
|
||||
}
|
||||
|
||||
export interface ClassImportItem {
|
||||
collegeName?: string;
|
||||
classCode?: string;
|
||||
className?: string;
|
||||
gradeYear?: number;
|
||||
counselorName?: string;
|
||||
counselorPhone?: string;
|
||||
studentCount?: number;
|
||||
sortNumber?: number;
|
||||
status?: number;
|
||||
remark?: string;
|
||||
}
|
||||
|
||||
export interface ClassInfoParam extends PageParam {
|
||||
id?: number;
|
||||
collegeId?: number;
|
||||
classCode?: string;
|
||||
className?: string;
|
||||
gradeYear?: number;
|
||||
status?: number;
|
||||
keywords?: string;
|
||||
}
|
||||
@@ -0,0 +1,68 @@
|
||||
import request from '@/utils/request';
|
||||
import type { ApiResult, PageResult } from '@/api';
|
||||
import type { College, CollegeParam } from './model';
|
||||
|
||||
export async function pageCollege(params: CollegeParam) {
|
||||
const res = await request.get<ApiResult<PageResult<College>>>(
|
||||
'/gxmu/college/page',
|
||||
{
|
||||
params
|
||||
}
|
||||
);
|
||||
if (res.data.code === 0 && res.data.data) {
|
||||
return res.data.data;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
export async function listCollege(params?: CollegeParam) {
|
||||
const res = await request.get<ApiResult<College[]>>('/gxmu/college', {
|
||||
params
|
||||
});
|
||||
if (res.data.code === 0 && res.data.data) {
|
||||
return res.data.data;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
export async function getCollege(id: number) {
|
||||
const res = await request.get<ApiResult<College>>('/gxmu/college/' + id);
|
||||
if (res.data.code === 0 && res.data.data) {
|
||||
return res.data.data;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
export async function addCollege(data: College) {
|
||||
const res = await request.post<ApiResult<unknown>>('/gxmu/college', data);
|
||||
if (res.data.code === 0) {
|
||||
return res.data.message;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
export async function updateCollege(data: College) {
|
||||
const res = await request.put<ApiResult<unknown>>('/gxmu/college', data);
|
||||
if (res.data.code === 0) {
|
||||
return res.data.message;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
export async function removeCollege(id?: number) {
|
||||
const res = await request.delete<ApiResult<unknown>>('/gxmu/college/' + id);
|
||||
if (res.data.code === 0) {
|
||||
return res.data.message;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
export async function removeBatchCollege(data: (number | undefined)[]) {
|
||||
const res = await request.delete<ApiResult<unknown>>('/gxmu/college/batch', {
|
||||
data
|
||||
});
|
||||
if (res.data.code === 0) {
|
||||
return res.data.message;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
import type { PageParam } from '@/api';
|
||||
|
||||
export interface College {
|
||||
id?: number;
|
||||
collegeCode?: string;
|
||||
collegeName?: string;
|
||||
shortName?: string;
|
||||
leaderName?: string;
|
||||
leaderPhone?: string;
|
||||
sortNumber?: number;
|
||||
status?: number;
|
||||
remark?: string;
|
||||
classCount?: number;
|
||||
createTime?: string;
|
||||
updateTime?: string;
|
||||
}
|
||||
|
||||
export interface CollegeParam extends PageParam {
|
||||
id?: number;
|
||||
collegeCode?: string;
|
||||
collegeName?: string;
|
||||
status?: number;
|
||||
keywords?: string;
|
||||
}
|
||||
@@ -0,0 +1,55 @@
|
||||
import request from '@/utils/request';
|
||||
import type { ApiResult, PageResult } from '@/api';
|
||||
import type {
|
||||
CrossSchoolActivityArticle,
|
||||
CrossSchoolActivityArticleParam
|
||||
} from './model';
|
||||
|
||||
/**
|
||||
* 分页查询跨校活动情报文章
|
||||
*/
|
||||
export async function pageCrossSchoolActivityArticle(
|
||||
params: CrossSchoolActivityArticleParam
|
||||
) {
|
||||
const res = await request.get<ApiResult<PageResult<CrossSchoolActivityArticle>>>(
|
||||
'/gxmu/cross-school-activity-article/page',
|
||||
{
|
||||
params
|
||||
}
|
||||
);
|
||||
if (res.data.code === 0 && res.data.data) {
|
||||
return res.data.data;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询跨校活动情报文章
|
||||
*/
|
||||
export async function listCrossSchoolActivityArticle(
|
||||
params?: CrossSchoolActivityArticleParam
|
||||
) {
|
||||
const res = await request.get<ApiResult<CrossSchoolActivityArticle[]>>(
|
||||
'/gxmu/cross-school-activity-article',
|
||||
{
|
||||
params
|
||||
}
|
||||
);
|
||||
if (res.data.code === 0 && res.data.data) {
|
||||
return res.data.data;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 同步跨校活动情报文章
|
||||
*/
|
||||
export async function syncCrossSchoolActivityArticle() {
|
||||
const res = await request.post<ApiResult<number>>(
|
||||
'/gxmu/cross-school-activity-article/sync'
|
||||
);
|
||||
if (res.data.code === 0) {
|
||||
return res.data.data ?? 0;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
@@ -0,0 +1,38 @@
|
||||
import type { PageParam } from '@/api';
|
||||
|
||||
/**
|
||||
* 跨校活动情报文章
|
||||
*/
|
||||
export interface CrossSchoolActivityArticle {
|
||||
id?: number;
|
||||
sourceKey?: string;
|
||||
title?: string;
|
||||
schoolName?: string;
|
||||
category?: string;
|
||||
heatLevel?: '高热' | '跟进' | '观察' | string;
|
||||
sourceName?: string;
|
||||
publishTime?: string;
|
||||
summary?: string;
|
||||
tags?: string;
|
||||
coverImage?: string;
|
||||
detailUrl?: string;
|
||||
sourceUrl?: string;
|
||||
highlight?: string;
|
||||
contentText?: string;
|
||||
lastSyncTime?: string;
|
||||
createTime?: string;
|
||||
updateTime?: string;
|
||||
deleted?: number;
|
||||
}
|
||||
|
||||
/**
|
||||
* 跨校活动情报文章搜索条件
|
||||
*/
|
||||
export interface CrossSchoolActivityArticleParam extends PageParam {
|
||||
id?: number;
|
||||
title?: string;
|
||||
schoolName?: string;
|
||||
category?: string;
|
||||
heatLevel?: string;
|
||||
keywords?: string;
|
||||
}
|
||||
@@ -0,0 +1,106 @@
|
||||
import request from '@/utils/request';
|
||||
import type { ApiResult, PageResult } from '@/api';
|
||||
import type { Declare, DeclareParam } from './model';
|
||||
import { MODULES_API_URL } from '@/config/setting';
|
||||
|
||||
/**
|
||||
* 分页查询申报管理
|
||||
*/
|
||||
export async function pageDeclare(params: DeclareParam) {
|
||||
const res = await request.get<ApiResult<PageResult<Declare>>>(
|
||||
MODULES_API_URL + '/gxmu/declare/page',
|
||||
{
|
||||
params
|
||||
}
|
||||
);
|
||||
if (res.data.code === 0) {
|
||||
return res.data.data;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询申报管理列表
|
||||
*/
|
||||
export async function listDeclare(params?: DeclareParam) {
|
||||
const res = await request.get<ApiResult<Declare[]>>(
|
||||
MODULES_API_URL + '/gxmu/declare',
|
||||
{
|
||||
params
|
||||
}
|
||||
);
|
||||
if (res.data.code === 0 && res.data.data) {
|
||||
return res.data.data;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 添加申报管理
|
||||
*/
|
||||
export async function addDeclare(data: Declare) {
|
||||
const res = await request.post<ApiResult<unknown>>(
|
||||
MODULES_API_URL + '/gxmu/declare',
|
||||
data
|
||||
);
|
||||
if (res.data.code === 0) {
|
||||
return res.data.message;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改申报管理
|
||||
*/
|
||||
export async function updateDeclare(data: Declare) {
|
||||
const res = await request.put<ApiResult<unknown>>(
|
||||
MODULES_API_URL + '/gxmu/declare',
|
||||
data
|
||||
);
|
||||
if (res.data.code === 0) {
|
||||
return res.data.message;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除申报管理
|
||||
*/
|
||||
export async function removeDeclare(id?: number) {
|
||||
const res = await request.delete<ApiResult<unknown>>(
|
||||
MODULES_API_URL + '/gxmu/declare/' + id
|
||||
);
|
||||
if (res.data.code === 0) {
|
||||
return res.data.message;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除申报管理
|
||||
*/
|
||||
export async function removeBatchDeclare(data: (number | undefined)[]) {
|
||||
const res = await request.delete<ApiResult<unknown>>(
|
||||
MODULES_API_URL + '/gxmu/declare/batch',
|
||||
{
|
||||
data
|
||||
}
|
||||
);
|
||||
if (res.data.code === 0) {
|
||||
return res.data.message;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据id查询申报管理
|
||||
*/
|
||||
export async function getDeclare(id: number) {
|
||||
const res = await request.get<ApiResult<Declare>>(
|
||||
MODULES_API_URL + '/gxmu/declare/' + id
|
||||
);
|
||||
if (res.data.code === 0 && res.data.data) {
|
||||
return res.data.data;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
@@ -0,0 +1,58 @@
|
||||
import type { PageParam } from '@/api';
|
||||
|
||||
/**
|
||||
* 申报管理
|
||||
*/
|
||||
export interface Declare {
|
||||
//
|
||||
id?: number;
|
||||
//
|
||||
title?: string;
|
||||
//
|
||||
year?: number;
|
||||
//
|
||||
module?: string;
|
||||
// 挑战杯项目类型
|
||||
projectType?: string | string[];
|
||||
// 挑战杯项目分组
|
||||
projectGroup?: string | string[];
|
||||
// 挑战杯申报表项目类型
|
||||
formProjectType?: string | string[];
|
||||
// 挑战杯申报表项目分组
|
||||
formProjectGroup?: string | string[];
|
||||
// 挑战杯公开展示项目类型
|
||||
publicProjectType?: string | string[];
|
||||
// 挑战杯公开展示项目分组
|
||||
publicProjectGroup?: string | string[];
|
||||
//
|
||||
startTime?: string;
|
||||
//
|
||||
endTime?: string;
|
||||
// 用户ID
|
||||
userId?: string;
|
||||
// 租户ID
|
||||
tenantId?: string;
|
||||
// 创建时间
|
||||
createTime?: string;
|
||||
// 更新时间
|
||||
updateTime?: string;
|
||||
// 删除标记:0未删 1已删
|
||||
deleted?: number;
|
||||
// 是否可申报
|
||||
usable?: boolean;
|
||||
}
|
||||
|
||||
/**
|
||||
* 申报管理搜索条件
|
||||
*/
|
||||
export interface DeclareParam extends PageParam {
|
||||
id?: number;
|
||||
keywords?: string;
|
||||
usable?: boolean;
|
||||
projectType?: string;
|
||||
projectGroup?: string;
|
||||
formProjectType?: string;
|
||||
formProjectGroup?: string;
|
||||
publicProjectType?: string;
|
||||
publicProjectGroup?: string;
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
import request from '@/utils/request';
|
||||
import type { ApiResult } from '@/api';
|
||||
import type { WxxzxTopicSemanticSearchItem } from './model';
|
||||
|
||||
/**
|
||||
* 项目主题语义检索
|
||||
*/
|
||||
export async function searchProjectTopics(keyword: string, module?: string) {
|
||||
const res = await request.get<ApiResult<WxxzxTopicSemanticSearchItem[]>>(
|
||||
'/gxmu/wxxzx-form/semantic-search',
|
||||
{
|
||||
params: { keyword, module }
|
||||
}
|
||||
);
|
||||
if (res.data.code === 0) {
|
||||
return res.data.data || [];
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
export interface WxxzxTopicSemanticSearchItem {
|
||||
id: number;
|
||||
module?: string;
|
||||
moduleName?: string;
|
||||
topicName?: string;
|
||||
topicType?: string;
|
||||
rationale?: string;
|
||||
snippet?: string;
|
||||
score?: number;
|
||||
}
|
||||
@@ -0,0 +1,123 @@
|
||||
import request from '@/utils/request';
|
||||
import type { ApiResult, PageResult } from '@/api';
|
||||
import type { FileRecord } from '@/api/system/file/model';
|
||||
import type { QmgcForm, QmgcFormParam } from './model';
|
||||
|
||||
/**
|
||||
* 分页查询QmgcForm
|
||||
*/
|
||||
export async function pageQmgcForm(params: QmgcFormParam) {
|
||||
const res = await request.get<ApiResult<PageResult<QmgcForm>>>(
|
||||
'/gxmu/qmgc-form/page',
|
||||
{
|
||||
params: { ...params, backendAccess: true }
|
||||
}
|
||||
);
|
||||
if (res.data.code === 0 && res.data.data) {
|
||||
return res.data.data;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 用户分页查询QmgcForm
|
||||
*/
|
||||
export async function userPageQmgcForm(params: QmgcFormParam) {
|
||||
const res = await request.get<ApiResult<PageResult<QmgcForm>>>(
|
||||
'/gxmu/qmgc-form/userPage',
|
||||
{
|
||||
params: { ...params, backendAccess: true }
|
||||
}
|
||||
);
|
||||
if (res.data.code === 0 && res.data.data) {
|
||||
return res.data.data;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询QmgcForm列表
|
||||
*/
|
||||
export async function listQmgcForm(params?: QmgcFormParam) {
|
||||
const res = await request.get<ApiResult<QmgcForm[]>>('/gxmu/qmgc-form', {
|
||||
params
|
||||
});
|
||||
if (res.data.code === 0 && res.data.data) {
|
||||
return res.data.data;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据id查询QmgcForm
|
||||
*/
|
||||
export async function getQmgcForm(id: number) {
|
||||
const res = await request.get<ApiResult<QmgcForm>>('/gxmu/qmgc-form/' + id);
|
||||
if (res.data.code === 0 && res.data.data) {
|
||||
return res.data.data;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 添加QmgcForm
|
||||
*/
|
||||
export async function addQmgcForm(data: QmgcForm) {
|
||||
const res = await request.post<ApiResult<unknown>>('/gxmu/qmgc-form', data);
|
||||
if (res.data.code === 0) {
|
||||
return res.data.message;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改QmgcForm
|
||||
*/
|
||||
export async function updateQmgcForm(data: QmgcForm) {
|
||||
const res = await request.put<ApiResult<unknown>>('/gxmu/qmgc-form', data);
|
||||
if (res.data.code === 0) {
|
||||
return res.data.message;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除QmgcForm
|
||||
*/
|
||||
export async function removeQmgcForm(id?: number) {
|
||||
const res = await request.delete<ApiResult<unknown>>('/gxmu/qmgc-form/' + id);
|
||||
if (res.data.code === 0) {
|
||||
return res.data.message;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除QmgcForm
|
||||
*/
|
||||
export async function removeBatchQmgcForm(data: (number | undefined)[]) {
|
||||
const res = await request.delete<ApiResult<unknown>>(
|
||||
'/gxmu/qmgc-form/batch',
|
||||
{
|
||||
data
|
||||
}
|
||||
);
|
||||
if (res.data.code === 0) {
|
||||
return res.data.message;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出QmgcForm
|
||||
*/
|
||||
export async function exportQmgcForm(params?: QmgcFormParam) {
|
||||
const res = await request.post<ApiResult<FileRecord>>('/gxmu/qmgc-form/export', {
|
||||
...params,
|
||||
backendAccess: true
|
||||
});
|
||||
if (res.data.code === 0 && res.data.data) {
|
||||
return res.data.data;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
@@ -0,0 +1,48 @@
|
||||
import type { PageParam } from '@/api';
|
||||
import type { ReviewList } from '@/api/gxmu/reviewList/model';
|
||||
|
||||
/**
|
||||
* QmgcForm
|
||||
*/
|
||||
export interface QmgcForm {
|
||||
id?: number;
|
||||
year?: string;
|
||||
name?: string;
|
||||
gender?: string;
|
||||
nation?: string;
|
||||
photo?: string;
|
||||
birthMonth?: string;
|
||||
politics?: string;
|
||||
nativePlace?: string;
|
||||
phone?: string;
|
||||
wechat?: string;
|
||||
email?: string;
|
||||
qq?: string;
|
||||
idCardNo?: string;
|
||||
hobby?: string;
|
||||
willingToWorkInGuangxi?: string;
|
||||
schoolInfo?: string;
|
||||
leaguePosition?: string;
|
||||
resume?: string;
|
||||
awards?: string;
|
||||
academicPerformance?: string;
|
||||
secondaryLeagueOpinion?: string;
|
||||
secondaryLeagueOpinionDate?: string;
|
||||
secondaryPartyOpinion?: string;
|
||||
secondaryPartyOpinionDate?: string;
|
||||
schoolLeagueOpinion?: string;
|
||||
schoolLeagueOpinionDate?: string;
|
||||
reviewList?: ReviewList[];
|
||||
}
|
||||
|
||||
/**
|
||||
* QmgcForm 搜索条件
|
||||
*/
|
||||
export interface QmgcFormParam extends PageParam {
|
||||
id?: number;
|
||||
year?: string;
|
||||
name?: string;
|
||||
phone?: string;
|
||||
schoolInfo?: string;
|
||||
keywords?: string;
|
||||
}
|
||||
@@ -0,0 +1,106 @@
|
||||
import request from '@/utils/request';
|
||||
import type { ApiResult, PageResult } from '@/api';
|
||||
import type { ReviewFlow, ReviewFlowParam } from './model';
|
||||
import { MODULES_API_URL } from '@/config/setting';
|
||||
|
||||
/**
|
||||
* 分页查询审核流
|
||||
*/
|
||||
export async function pageReviewFlow(params: ReviewFlowParam) {
|
||||
const res = await request.get<ApiResult<PageResult<ReviewFlow>>>(
|
||||
MODULES_API_URL + '/gxmu/review-flow/page',
|
||||
{
|
||||
params
|
||||
}
|
||||
);
|
||||
if (res.data.code === 0) {
|
||||
return res.data.data;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询审核流列表
|
||||
*/
|
||||
export async function listReviewFlow(params?: ReviewFlowParam) {
|
||||
const res = await request.get<ApiResult<ReviewFlow[]>>(
|
||||
MODULES_API_URL + '/gxmu/review-flow',
|
||||
{
|
||||
params
|
||||
}
|
||||
);
|
||||
if (res.data.code === 0 && res.data.data) {
|
||||
return res.data.data;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 添加审核流
|
||||
*/
|
||||
export async function addReviewFlow(data: ReviewFlow) {
|
||||
const res = await request.post<ApiResult<unknown>>(
|
||||
MODULES_API_URL + '/gxmu/review-flow',
|
||||
data
|
||||
);
|
||||
if (res.data.code === 0) {
|
||||
return res.data.message;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改审核流
|
||||
*/
|
||||
export async function updateReviewFlow(data: ReviewFlow) {
|
||||
const res = await request.put<ApiResult<unknown>>(
|
||||
MODULES_API_URL + '/gxmu/review-flow',
|
||||
data
|
||||
);
|
||||
if (res.data.code === 0) {
|
||||
return res.data.message;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除审核流
|
||||
*/
|
||||
export async function removeReviewFlow(id?: number) {
|
||||
const res = await request.delete<ApiResult<unknown>>(
|
||||
MODULES_API_URL + '/gxmu/review-flow/' + id
|
||||
);
|
||||
if (res.data.code === 0) {
|
||||
return res.data.message;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除审核流
|
||||
*/
|
||||
export async function removeBatchReviewFlow(data: (number | undefined)[]) {
|
||||
const res = await request.delete<ApiResult<unknown>>(
|
||||
MODULES_API_URL + '/gxmu/review-flow/batch',
|
||||
{
|
||||
data
|
||||
}
|
||||
);
|
||||
if (res.data.code === 0) {
|
||||
return res.data.message;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据id查询审核流
|
||||
*/
|
||||
export async function getReviewFlow(id: number) {
|
||||
const res = await request.get<ApiResult<ReviewFlow>>(
|
||||
MODULES_API_URL + '/gxmu/review-flow/' + id
|
||||
);
|
||||
if (res.data.code === 0 && res.data.data) {
|
||||
return res.data.data;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
+13
-12
@@ -1,36 +1,37 @@
|
||||
import type { PageParam } from "@/api";
|
||||
|
||||
/**
|
||||
* 法律文书配置
|
||||
* 审核流
|
||||
*/
|
||||
export interface LawLegalDocType {
|
||||
export interface ReviewFlow {
|
||||
//
|
||||
id?: number;
|
||||
//
|
||||
icon?: string;
|
||||
//
|
||||
title?: string;
|
||||
topContent?: string;
|
||||
extraContent?: string;
|
||||
comment?: string;
|
||||
// 类型
|
||||
sortNumber?: number;
|
||||
//
|
||||
userId?: number;
|
||||
organizationId?: number;
|
||||
//
|
||||
level?: number;
|
||||
// 是否删除, 0否, 1是
|
||||
deleted?: number;
|
||||
// 租户id
|
||||
tenantId?: number;
|
||||
reviewUserId?: number;
|
||||
// 创建时间
|
||||
createTime?: string;
|
||||
// 修改时间
|
||||
updateTime?: string;
|
||||
//
|
||||
userId?: number;
|
||||
organizationName?: string;
|
||||
flows?: ReviewFlow[];
|
||||
}
|
||||
|
||||
/**
|
||||
* 法律文书配置搜索条件
|
||||
* 审核流搜索条件
|
||||
*/
|
||||
export interface LawLegalDocTypeParam extends PageParam {
|
||||
export interface ReviewFlowParam extends PageParam {
|
||||
id?: number;
|
||||
keywords?: string;
|
||||
withGroup?: boolean;
|
||||
}
|
||||
@@ -0,0 +1,106 @@
|
||||
import request from '@/utils/request';
|
||||
import type { ApiResult, PageResult } from '@/api';
|
||||
import type { ReviewFlowConfig, ReviewFlowConfigParam } from './model';
|
||||
import { MODULES_API_URL } from '@/config/setting';
|
||||
|
||||
/**
|
||||
* 分页查询
|
||||
*/
|
||||
export async function pageReviewFlowConfig(params: ReviewFlowConfigParam) {
|
||||
const res = await request.get<ApiResult<PageResult<ReviewFlowConfig>>>(
|
||||
MODULES_API_URL + '/gxmu/review-flow-config/page',
|
||||
{
|
||||
params
|
||||
}
|
||||
);
|
||||
if (res.data.code === 0) {
|
||||
return res.data.data;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询列表
|
||||
*/
|
||||
export async function listReviewFlowConfig(params?: ReviewFlowConfigParam) {
|
||||
const res = await request.get<ApiResult<ReviewFlowConfig[]>>(
|
||||
MODULES_API_URL + '/gxmu/review-flow-config',
|
||||
{
|
||||
params
|
||||
}
|
||||
);
|
||||
if (res.data.code === 0 && res.data.data) {
|
||||
return res.data.data;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 添加
|
||||
*/
|
||||
export async function addReviewFlowConfig(data: ReviewFlowConfig) {
|
||||
const res = await request.post<ApiResult<unknown>>(
|
||||
MODULES_API_URL + '/gxmu/review-flow-config',
|
||||
data
|
||||
);
|
||||
if (res.data.code === 0) {
|
||||
return res.data.message;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改
|
||||
*/
|
||||
export async function updateReviewFlowConfig(data: ReviewFlowConfig) {
|
||||
const res = await request.put<ApiResult<unknown>>(
|
||||
MODULES_API_URL + '/gxmu/review-flow-config',
|
||||
data
|
||||
);
|
||||
if (res.data.code === 0) {
|
||||
return res.data.message;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除
|
||||
*/
|
||||
export async function removeReviewFlowConfig(id?: number) {
|
||||
const res = await request.delete<ApiResult<unknown>>(
|
||||
MODULES_API_URL + '/gxmu/review-flow-config/' + id
|
||||
);
|
||||
if (res.data.code === 0) {
|
||||
return res.data.message;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除
|
||||
*/
|
||||
export async function removeBatchReviewFlowConfig(data: (number | undefined)[]) {
|
||||
const res = await request.delete<ApiResult<unknown>>(
|
||||
MODULES_API_URL + '/gxmu/review-flow-config/batch',
|
||||
{
|
||||
data
|
||||
}
|
||||
);
|
||||
if (res.data.code === 0) {
|
||||
return res.data.message;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据id查询
|
||||
*/
|
||||
export async function getReviewFlowConfig(id: number) {
|
||||
const res = await request.get<ApiResult<ReviewFlowConfig>>(
|
||||
MODULES_API_URL + '/gxmu/review-flow-config/' + id
|
||||
);
|
||||
if (res.data.code === 0 && res.data.data) {
|
||||
return res.data.data;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
+14
-12
@@ -1,21 +1,21 @@
|
||||
import type { PageParam } from '@/api';
|
||||
|
||||
/**
|
||||
* 法律计算器配置
|
||||
*
|
||||
*/
|
||||
export interface LawLegalCalConfig {
|
||||
export interface ReviewFlowConfig {
|
||||
//
|
||||
id?: number;
|
||||
//
|
||||
typeId?: number;
|
||||
//
|
||||
title?: string;
|
||||
// 类型
|
||||
type?: string;
|
||||
// 内容
|
||||
answer?: string;
|
||||
//
|
||||
userId?: number;
|
||||
// 所属部门(机构)
|
||||
organizationId?: number;
|
||||
// 所属部门名称(后端可能返回)
|
||||
organizationName?: string;
|
||||
// 流id
|
||||
flowId?: number;
|
||||
// 模块
|
||||
module?: string;
|
||||
// 是否删除, 0否, 1是
|
||||
deleted?: number;
|
||||
// 租户id
|
||||
@@ -24,12 +24,14 @@ export interface LawLegalCalConfig {
|
||||
createTime?: string;
|
||||
// 修改时间
|
||||
updateTime?: string;
|
||||
//
|
||||
userId?: number;
|
||||
}
|
||||
|
||||
/**
|
||||
* 法律计算器配置搜索条件
|
||||
* 搜索条件
|
||||
*/
|
||||
export interface LawLegalCalConfigParam extends PageParam {
|
||||
export interface ReviewFlowConfigParam extends PageParam {
|
||||
id?: number;
|
||||
keywords?: string;
|
||||
}
|
||||
@@ -0,0 +1,122 @@
|
||||
import request from '@/utils/request';
|
||||
import type { ApiResult, PageResult } from '@/api';
|
||||
import type { ReviewList, ReviewListParam } from './model';
|
||||
import { MODULES_API_URL } from '@/config/setting';
|
||||
|
||||
/**
|
||||
* 分页查询审核列表
|
||||
*/
|
||||
export async function pageReviewList(params: ReviewListParam) {
|
||||
const res = await request.get<ApiResult<PageResult<ReviewList>>>(
|
||||
MODULES_API_URL + '/gxmu/review-list/page',
|
||||
{
|
||||
params: { ...params, backendAccess: true }
|
||||
}
|
||||
);
|
||||
if (res.data.code === 0) {
|
||||
return res.data.data;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 分页查询聚合后的审核列表
|
||||
*/
|
||||
export async function pageGroupReviewList(params: ReviewListParam) {
|
||||
const res = await request.get<ApiResult<PageResult<ReviewList>>>(
|
||||
MODULES_API_URL + '/gxmu/review-list/groupPage',
|
||||
{
|
||||
params: { ...params, backendAccess: true }
|
||||
}
|
||||
);
|
||||
if (res.data.code === 0) {
|
||||
return res.data.data;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询审核列表列表
|
||||
*/
|
||||
export async function listReviewList(params?: ReviewListParam) {
|
||||
const res = await request.get<ApiResult<ReviewList[]>>(
|
||||
MODULES_API_URL + '/gxmu/review-list',
|
||||
{
|
||||
params
|
||||
}
|
||||
);
|
||||
if (res.data.code === 0 && res.data.data) {
|
||||
return res.data.data;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 添加审核列表
|
||||
*/
|
||||
export async function addReviewList(data: ReviewList) {
|
||||
const res = await request.post<ApiResult<unknown>>(
|
||||
MODULES_API_URL + '/gxmu/review-list',
|
||||
data
|
||||
);
|
||||
if (res.data.code === 0) {
|
||||
return res.data.message;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改审核列表
|
||||
*/
|
||||
export async function updateReviewList(data: ReviewList) {
|
||||
const res = await request.put<ApiResult<unknown>>(
|
||||
MODULES_API_URL + '/gxmu/review-list',
|
||||
data
|
||||
);
|
||||
if (res.data.code === 0) {
|
||||
return res.data.message;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除审核列表
|
||||
*/
|
||||
export async function removeReviewList(id?: number) {
|
||||
const res = await request.delete<ApiResult<unknown>>(
|
||||
MODULES_API_URL + '/gxmu/review-list/' + id
|
||||
);
|
||||
if (res.data.code === 0) {
|
||||
return res.data.message;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除审核列表
|
||||
*/
|
||||
export async function removeBatchReviewList(data: (number | undefined)[]) {
|
||||
const res = await request.delete<ApiResult<unknown>>(
|
||||
MODULES_API_URL + '/gxmu/review-list/batch',
|
||||
{
|
||||
data
|
||||
}
|
||||
);
|
||||
if (res.data.code === 0) {
|
||||
return res.data.message;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据id查询审核列表
|
||||
*/
|
||||
export async function getReviewList(id: number) {
|
||||
const res = await request.get<ApiResult<ReviewList>>(
|
||||
MODULES_API_URL + '/gxmu/review-list/' + id
|
||||
);
|
||||
if (res.data.code === 0 && res.data.data) {
|
||||
return res.data.data;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
@@ -0,0 +1,51 @@
|
||||
import type { PageParam } from '@/api';
|
||||
|
||||
/**
|
||||
* 审核列表
|
||||
*/
|
||||
export interface ReviewList {
|
||||
//
|
||||
id?: number;
|
||||
// 模块
|
||||
module?: string;
|
||||
// 模块名称
|
||||
moduleName?: string;
|
||||
// 业务名称
|
||||
businessName?: string;
|
||||
// 主键
|
||||
pk?: number;
|
||||
// 状态(0不通过 1通过)
|
||||
status?: number;
|
||||
// 审核意见
|
||||
content?: string;
|
||||
// 是否删除, 0否, 1是
|
||||
deleted?: number;
|
||||
// 租户id
|
||||
tenantId?: number;
|
||||
// 创建时间
|
||||
createTime?: string;
|
||||
// 修改时间
|
||||
updateTime?: string;
|
||||
//
|
||||
userId?: number;
|
||||
//
|
||||
sortNumber?: number;
|
||||
// 审核人信息
|
||||
user?: {
|
||||
realName?: string;
|
||||
username?: string;
|
||||
};
|
||||
// 聚合后的审核流
|
||||
reviewFlowList?: ReviewList[];
|
||||
}
|
||||
|
||||
/**
|
||||
* 审核列表搜索条件
|
||||
*/
|
||||
export interface ReviewListParam extends PageParam {
|
||||
backendAccess?: boolean;
|
||||
id?: number;
|
||||
keywords?: string;
|
||||
module?: string;
|
||||
pk?: number;
|
||||
}
|
||||
@@ -0,0 +1,114 @@
|
||||
import request from '@/utils/request';
|
||||
import type { ApiResult, PageResult } from '@/api';
|
||||
import type { FileRecord } from '@/api/system/file/model';
|
||||
import type { SjqnForm, SjqnFormParam } from './model';
|
||||
|
||||
/**
|
||||
* 分页查询SjqnForm
|
||||
*/
|
||||
export async function pageSjqnForm(params: SjqnFormParam) {
|
||||
const res = await request.get<ApiResult<PageResult<SjqnForm>>>('/gxmu/sjqn-form/page', {
|
||||
params: { ...params, backendAccess: true }
|
||||
});
|
||||
if (res.data.code === 0 && res.data.data) {
|
||||
return res.data.data;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 用户分页查询SjqnForm
|
||||
*/
|
||||
export async function userPageSjqnForm(params: SjqnFormParam) {
|
||||
const res = await request.get<ApiResult<PageResult<SjqnForm>>>('/gxmu/sjqn-form/userPage', {
|
||||
params: { ...params, backendAccess: true }
|
||||
});
|
||||
if (res.data.code === 0 && res.data.data) {
|
||||
return res.data.data;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询SjqnForm列表
|
||||
*/
|
||||
export async function listSjqnForm(params?: SjqnFormParam) {
|
||||
const res = await request.get<ApiResult<SjqnForm[]>>('/gxmu/sjqn-form', {
|
||||
params
|
||||
});
|
||||
if (res.data.code === 0 && res.data.data) {
|
||||
return res.data.data;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据id查询SjqnForm
|
||||
*/
|
||||
export async function getSjqnForm(id: number) {
|
||||
const res = await request.get<ApiResult<SjqnForm>>('/gxmu/sjqn-form/' + id);
|
||||
if (res.data.code === 0 && res.data.data) {
|
||||
return res.data.data;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 添加SjqnForm
|
||||
*/
|
||||
export async function addSjqnForm(data: SjqnForm) {
|
||||
const res = await request.post<ApiResult<unknown>>('/gxmu/sjqn-form', data);
|
||||
if (res.data.code === 0) {
|
||||
return res.data.message;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改SjqnForm
|
||||
*/
|
||||
export async function updateSjqnForm(data: SjqnForm) {
|
||||
const res = await request.put<ApiResult<unknown>>('/gxmu/sjqn-form', data);
|
||||
if (res.data.code === 0) {
|
||||
return res.data.message;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除SjqnForm
|
||||
*/
|
||||
export async function removeSjqnForm(id?: number) {
|
||||
const res = await request.delete<ApiResult<unknown>>('/gxmu/sjqn-form/' + id);
|
||||
if (res.data.code === 0) {
|
||||
return res.data.message;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除SjqnForm
|
||||
*/
|
||||
export async function removeBatchSjqnForm(data: (number | undefined)[]) {
|
||||
const res = await request.delete<ApiResult<unknown>>('/gxmu/sjqn-form/batch', {
|
||||
data
|
||||
});
|
||||
if (res.data.code === 0) {
|
||||
return res.data.message;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出SjqnForm
|
||||
*/
|
||||
export async function exportSjqnForm(params?: SjqnFormParam) {
|
||||
const res = await request.post<ApiResult<FileRecord>>('/gxmu/sjqn-form/export', {
|
||||
...params,
|
||||
backendAccess: true
|
||||
});
|
||||
if (res.data.code === 0 && res.data.data) {
|
||||
return res.data.data;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
@@ -0,0 +1,40 @@
|
||||
import type { PageParam } from '@/api';
|
||||
import type { ReviewList } from '@/api/gxmu/reviewList/model';
|
||||
|
||||
/**
|
||||
* SjqnForm
|
||||
*/
|
||||
export interface SjqnForm {
|
||||
id?: number;
|
||||
year?: string;
|
||||
applyType?: string;
|
||||
name?: string;
|
||||
gender?: string;
|
||||
birthMonth?: string;
|
||||
nation?: string;
|
||||
politics?: string;
|
||||
education?: string;
|
||||
position?: string;
|
||||
title?: string;
|
||||
unit?: string;
|
||||
awards?: string;
|
||||
experience?: string;
|
||||
mainStory?: string;
|
||||
leagueOpinion?: string;
|
||||
partyOpinion?: string;
|
||||
schoolOpinion?: string;
|
||||
reviewList?: ReviewList[];
|
||||
}
|
||||
|
||||
/**
|
||||
* SjqnForm搜索条件
|
||||
*/
|
||||
export interface SjqnFormParam extends PageParam {
|
||||
backendAccess?: boolean;
|
||||
id?: number;
|
||||
year?: string;
|
||||
name?: string;
|
||||
unit?: string;
|
||||
applyType?: string;
|
||||
keywords?: string;
|
||||
}
|
||||
@@ -0,0 +1,114 @@
|
||||
import request from '@/utils/request';
|
||||
import type { ApiResult, PageResult } from '@/api';
|
||||
import type { FileRecord } from '@/api/system/file/model';
|
||||
import type { SjtbzbsjForm, SjtbzbsjFormParam } from './model';
|
||||
|
||||
/**
|
||||
* 分页查询SjtbzbsjForm
|
||||
*/
|
||||
export async function pageSjtbzbsjForm(params: SjtbzbsjFormParam) {
|
||||
const res = await request.get<ApiResult<PageResult<SjtbzbsjForm>>>('/gxmu/sjtbzbsj-form/page', {
|
||||
params: { ...params, backendAccess: true }
|
||||
});
|
||||
if (res.data.code === 0 && res.data.data) {
|
||||
return res.data.data;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 用户分页查询SjtbzbsjForm
|
||||
*/
|
||||
export async function userPageSjtbzbsjForm(params: SjtbzbsjFormParam) {
|
||||
const res = await request.get<ApiResult<PageResult<SjtbzbsjForm>>>('/gxmu/sjtbzbsj-form/userPage', {
|
||||
params: { ...params, backendAccess: true }
|
||||
});
|
||||
if (res.data.code === 0 && res.data.data) {
|
||||
return res.data.data;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询SjtbzbsjForm列表
|
||||
*/
|
||||
export async function listSjtbzbsjForm(params?: SjtbzbsjFormParam) {
|
||||
const res = await request.get<ApiResult<SjtbzbsjForm[]>>('/gxmu/sjtbzbsj-form', {
|
||||
params
|
||||
});
|
||||
if (res.data.code === 0 && res.data.data) {
|
||||
return res.data.data;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据id查询SjtbzbsjForm
|
||||
*/
|
||||
export async function getSjtbzbsjForm(id: number) {
|
||||
const res = await request.get<ApiResult<SjtbzbsjForm>>('/gxmu/sjtbzbsj-form/' + id);
|
||||
if (res.data.code === 0 && res.data.data) {
|
||||
return res.data.data;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 添加SjtbzbsjForm
|
||||
*/
|
||||
export async function addSjtbzbsjForm(data: SjtbzbsjForm) {
|
||||
const res = await request.post<ApiResult<unknown>>('/gxmu/sjtbzbsj-form', data);
|
||||
if (res.data.code === 0) {
|
||||
return res.data.message;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改SjtbzbsjForm
|
||||
*/
|
||||
export async function updateSjtbzbsjForm(data: SjtbzbsjForm) {
|
||||
const res = await request.put<ApiResult<unknown>>('/gxmu/sjtbzbsj-form', data);
|
||||
if (res.data.code === 0) {
|
||||
return res.data.message;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除SjtbzbsjForm
|
||||
*/
|
||||
export async function removeSjtbzbsjForm(id?: number) {
|
||||
const res = await request.delete<ApiResult<unknown>>('/gxmu/sjtbzbsj-form/' + id);
|
||||
if (res.data.code === 0) {
|
||||
return res.data.message;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除SjtbzbsjForm
|
||||
*/
|
||||
export async function removeBatchSjtbzbsjForm(data: (number | undefined)[]) {
|
||||
const res = await request.delete<ApiResult<unknown>>('/gxmu/sjtbzbsj-form/batch', {
|
||||
data
|
||||
});
|
||||
if (res.data.code === 0) {
|
||||
return res.data.message;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出SjtbzbsjForm
|
||||
*/
|
||||
export async function exportSjtbzbsjForm(params?: SjtbzbsjFormParam) {
|
||||
const res = await request.post<ApiResult<FileRecord>>('/gxmu/sjtbzbsj-form/export', {
|
||||
...params,
|
||||
backendAccess: true
|
||||
});
|
||||
if (res.data.code === 0 && res.data.data) {
|
||||
return res.data.data;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
@@ -0,0 +1,37 @@
|
||||
import type { PageParam } from '@/api';
|
||||
import type { ReviewList } from '@/api/gxmu/reviewList/model';
|
||||
|
||||
/**
|
||||
* SjtbzbsjForm
|
||||
*/
|
||||
export interface SjtbzbsjForm {
|
||||
id?: number;
|
||||
year?: string;
|
||||
name?: string;
|
||||
gender?: string;
|
||||
birthMonth?: string;
|
||||
nation?: string;
|
||||
politics?: string;
|
||||
collegeClass?: string;
|
||||
branch?: string;
|
||||
eduEval?: string;
|
||||
awards?: string;
|
||||
experience?: string;
|
||||
mainStory?: string;
|
||||
leagueOpinion?: string;
|
||||
partyOpinion?: string;
|
||||
schoolOpinion?: string;
|
||||
reviewList?: ReviewList[];
|
||||
}
|
||||
|
||||
/**
|
||||
* SjtbzbsjForm搜索条件
|
||||
*/
|
||||
export interface SjtbzbsjFormParam extends PageParam {
|
||||
id?: number;
|
||||
year?: string;
|
||||
name?: string;
|
||||
collegeClass?: string;
|
||||
branch?: string;
|
||||
keywords?: string;
|
||||
}
|
||||
@@ -0,0 +1,169 @@
|
||||
import request from '@/utils/request';
|
||||
import type { ApiResult, PageResult } from '@/api';
|
||||
import type { FileRecord } from '@/api/system/file/model';
|
||||
import type {
|
||||
TyglDataCenterRecord,
|
||||
TyglDataCenterResult,
|
||||
TyglForm,
|
||||
TyglFormParam,
|
||||
TyglGrowthArchive,
|
||||
TyglMemberRecord
|
||||
} from './model';
|
||||
|
||||
export interface TyglMemberRecordsPayload {
|
||||
memberRecords?: TyglMemberRecord[];
|
||||
}
|
||||
|
||||
export interface TyglGrowthArchivesPayload {
|
||||
growthArchives?: TyglGrowthArchive[];
|
||||
}
|
||||
|
||||
/**
|
||||
* 分页查询TyglForm
|
||||
*/
|
||||
export async function pageTyglForm(params: TyglFormParam) {
|
||||
const res = await request.get<ApiResult<PageResult<TyglForm>>>(
|
||||
'/gxmu/tygl-form/page',
|
||||
{
|
||||
params: { ...params, backendAccess: true }
|
||||
}
|
||||
);
|
||||
if (res.data.code === 0 && res.data.data) {
|
||||
return res.data.data;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询TyglForm列表
|
||||
*/
|
||||
export async function listTyglForm(params?: TyglFormParam) {
|
||||
const res = await request.get<ApiResult<TyglForm[]>>('/gxmu/tygl-form', {
|
||||
params
|
||||
});
|
||||
if (res.data.code === 0 && res.data.data) {
|
||||
return res.data.data;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据id查询TyglForm
|
||||
*/
|
||||
export async function getTyglForm(id: number) {
|
||||
const res = await request.get<ApiResult<TyglForm>>('/gxmu/tygl-form/' + id);
|
||||
if (res.data.code === 0 && res.data.data) {
|
||||
return res.data.data;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询团员青年数据分析中心明细
|
||||
*/
|
||||
export async function getTyglDataCenterRecords() {
|
||||
const res = await request.get<ApiResult<TyglDataCenterResult>>(
|
||||
'/gxmu/tygl-form/data-center'
|
||||
);
|
||||
if (res.data.code === 0 && res.data.data) {
|
||||
return res.data.data;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 添加TyglForm
|
||||
*/
|
||||
export async function addTyglForm(data: TyglForm) {
|
||||
const res = await request.post<ApiResult<unknown>>('/gxmu/tygl-form', data);
|
||||
if (res.data.code === 0) {
|
||||
return res.data.message;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改TyglForm
|
||||
*/
|
||||
export async function updateTyglForm(data: TyglForm) {
|
||||
const res = await request.put<ApiResult<unknown>>('/gxmu/tygl-form', data);
|
||||
if (res.data.code === 0) {
|
||||
return res.data.message;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 更新团员记录
|
||||
*/
|
||||
export async function updateTyglMemberRecords(
|
||||
id: number,
|
||||
data: TyglMemberRecordsPayload
|
||||
) {
|
||||
const res = await request.put<ApiResult<unknown>>(
|
||||
'/gxmu/tygl-form/member-records/' + id,
|
||||
data
|
||||
);
|
||||
if (res.data.code === 0) {
|
||||
return res.data.message;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 更新成长档案
|
||||
*/
|
||||
export async function updateTyglGrowthArchives(
|
||||
id: number,
|
||||
data: TyglGrowthArchivesPayload
|
||||
) {
|
||||
const res = await request.put<ApiResult<unknown>>(
|
||||
'/gxmu/tygl-form/growth-archives/' + id,
|
||||
data
|
||||
);
|
||||
if (res.data.code === 0) {
|
||||
return res.data.message;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除TyglForm
|
||||
*/
|
||||
export async function removeTyglForm(id?: number) {
|
||||
const res = await request.delete<ApiResult<unknown>>('/gxmu/tygl-form/' + id);
|
||||
if (res.data.code === 0) {
|
||||
return res.data.message;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除TyglForm
|
||||
*/
|
||||
export async function removeBatchTyglForm(data: (number | undefined)[]) {
|
||||
const res = await request.delete<ApiResult<unknown>>(
|
||||
'/gxmu/tygl-form/batch',
|
||||
{
|
||||
data
|
||||
}
|
||||
);
|
||||
if (res.data.code === 0) {
|
||||
return res.data.message;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出TyglForm
|
||||
*/
|
||||
export async function exportTyglForm(params?: TyglFormParam) {
|
||||
const res = await request.post<ApiResult<FileRecord>>('/gxmu/tygl-form/export', {
|
||||
...params,
|
||||
backendAccess: true
|
||||
});
|
||||
if (res.data.code === 0 && res.data.data) {
|
||||
return res.data.data;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
@@ -0,0 +1,84 @@
|
||||
import type { PageParam } from '@/api';
|
||||
import type { ReviewList } from '@/api/gxmu/reviewList/model';
|
||||
|
||||
export interface TyglMemberRecord {
|
||||
type?: string;
|
||||
content?: string;
|
||||
recordTime?: string;
|
||||
}
|
||||
|
||||
export interface TyglGrowthArchive {
|
||||
content?: string;
|
||||
archiveTime?: string;
|
||||
}
|
||||
|
||||
export interface TyglDataCenterRecord {
|
||||
id?: number;
|
||||
serialNo?: number;
|
||||
name?: string;
|
||||
gender?: string;
|
||||
nation?: string;
|
||||
phone?: string;
|
||||
leaguePosition?: string;
|
||||
archiveInCurrentOrg?: string;
|
||||
joinMonth?: string;
|
||||
joinYear?: string;
|
||||
memberRecordCount?: number;
|
||||
growthArchiveCount?: number;
|
||||
profileStatus?: string;
|
||||
}
|
||||
|
||||
export interface TyglDataCenterSummary {
|
||||
memberCount?: number;
|
||||
youthUnder28Count?: number;
|
||||
memberYouthRatio?: string;
|
||||
maleCount?: number;
|
||||
femaleCount?: number;
|
||||
genderRatio?: string;
|
||||
archiveInOrgCount?: number;
|
||||
completedProfileCount?: number;
|
||||
}
|
||||
|
||||
export interface TyglDataCenterResult {
|
||||
records?: TyglDataCenterRecord[];
|
||||
summary?: TyglDataCenterSummary;
|
||||
}
|
||||
|
||||
/**
|
||||
* TyglForm
|
||||
*/
|
||||
export interface TyglForm {
|
||||
id?: number;
|
||||
serialNo?: number;
|
||||
name?: string;
|
||||
gender?: string;
|
||||
nation?: string;
|
||||
college?: string;
|
||||
className?: string;
|
||||
politics?: string;
|
||||
phone?: string;
|
||||
leaguePosition?: string;
|
||||
branchOrganizationId?: number;
|
||||
branchOrganizationName?: string;
|
||||
idCardNo?: string;
|
||||
birthDate?: string;
|
||||
archiveInCurrentOrg?: string;
|
||||
joinMonth?: string;
|
||||
memberRecords?: TyglMemberRecord[];
|
||||
growthArchives?: TyglGrowthArchive[];
|
||||
reviewList?: ReviewList[];
|
||||
}
|
||||
|
||||
/**
|
||||
* TyglForm 搜索条件
|
||||
*/
|
||||
export interface TyglFormParam extends PageParam {
|
||||
backendAccess?: boolean;
|
||||
id?: number;
|
||||
name?: string;
|
||||
nation?: string;
|
||||
phone?: string;
|
||||
politics?: string;
|
||||
leaguePosition?: string;
|
||||
keywords?: string;
|
||||
}
|
||||
@@ -0,0 +1,53 @@
|
||||
import request from '@/utils/request';
|
||||
import type { ApiResult, PageResult } from '@/api';
|
||||
import type {
|
||||
TzbProjectListRecord,
|
||||
TzbProjectListRecordParam
|
||||
} from './model';
|
||||
|
||||
/**
|
||||
* 分页查询挑战杯项目库列表
|
||||
*/
|
||||
export async function pageTzbProjectList(params: TzbProjectListRecordParam) {
|
||||
const res = await request.get<ApiResult<PageResult<TzbProjectListRecord>>>(
|
||||
'/gxmu/tzb-project-list/page',
|
||||
{
|
||||
params
|
||||
}
|
||||
);
|
||||
if (res.data.code === 0 && res.data.data) {
|
||||
return res.data.data;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询挑战杯项目库列表
|
||||
*/
|
||||
export async function listTzbProjectList(
|
||||
params?: TzbProjectListRecordParam
|
||||
) {
|
||||
const res = await request.get<ApiResult<TzbProjectListRecord[]>>(
|
||||
'/gxmu/tzb-project-list',
|
||||
{
|
||||
params
|
||||
}
|
||||
);
|
||||
if (res.data.code === 0 && res.data.data) {
|
||||
return res.data.data;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据ID查询挑战杯项目库列表记录
|
||||
*/
|
||||
export async function getTzbProjectList(id: number) {
|
||||
const res = await request.get<ApiResult<TzbProjectListRecord>>(
|
||||
'/gxmu/tzb-project-list/' + id
|
||||
);
|
||||
if (res.data.code === 0 && res.data.data) {
|
||||
return res.data.data;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
@@ -0,0 +1,38 @@
|
||||
import type { PageParam } from '@/api';
|
||||
|
||||
/**
|
||||
* 挑战杯项目库列表记录
|
||||
*/
|
||||
export interface TzbProjectListRecord {
|
||||
id?: number;
|
||||
sourceId?: number;
|
||||
projectName?: string;
|
||||
schoolName?: string;
|
||||
awardName?: string;
|
||||
matchYear?: number;
|
||||
matchTerm?: string;
|
||||
matchLevel?: string;
|
||||
coverImage?: string;
|
||||
detailUrl?: string;
|
||||
sourceUrl?: string;
|
||||
pageNo?: number;
|
||||
lastSyncTime?: string;
|
||||
createTime?: string;
|
||||
updateTime?: string;
|
||||
deleted?: number;
|
||||
}
|
||||
|
||||
/**
|
||||
* 挑战杯项目库列表搜索条件
|
||||
*/
|
||||
export interface TzbProjectListRecordParam extends PageParam {
|
||||
id?: number;
|
||||
sourceId?: number;
|
||||
projectName?: string;
|
||||
schoolName?: string;
|
||||
awardName?: string;
|
||||
matchYear?: number;
|
||||
matchTerm?: string;
|
||||
matchLevel?: string;
|
||||
keywords?: string;
|
||||
}
|
||||
@@ -0,0 +1,51 @@
|
||||
import request from '@/utils/request';
|
||||
import type { ApiResult, PageResult } from '@/api';
|
||||
import type {
|
||||
TzbTalentListRecord,
|
||||
TzbTalentListRecordParam
|
||||
} from './model';
|
||||
|
||||
/**
|
||||
* 分页查询挑战杯人才库列表
|
||||
*/
|
||||
export async function pageTzbTalentList(params: TzbTalentListRecordParam) {
|
||||
const res = await request.get<ApiResult<PageResult<TzbTalentListRecord>>>(
|
||||
'/gxmu/tzb-talent-list/page',
|
||||
{
|
||||
params
|
||||
}
|
||||
);
|
||||
if (res.data.code === 0 && res.data.data) {
|
||||
return res.data.data;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询挑战杯人才库列表
|
||||
*/
|
||||
export async function listTzbTalentList(params?: TzbTalentListRecordParam) {
|
||||
const res = await request.get<ApiResult<TzbTalentListRecord[]>>(
|
||||
'/gxmu/tzb-talent-list',
|
||||
{
|
||||
params
|
||||
}
|
||||
);
|
||||
if (res.data.code === 0 && res.data.data) {
|
||||
return res.data.data;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据ID查询挑战杯人才库列表记录
|
||||
*/
|
||||
export async function getTzbTalentList(id: number) {
|
||||
const res = await request.get<ApiResult<TzbTalentListRecord>>(
|
||||
'/gxmu/tzb-talent-list/' + id
|
||||
);
|
||||
if (res.data.code === 0 && res.data.data) {
|
||||
return res.data.data;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
@@ -0,0 +1,40 @@
|
||||
import type { PageParam } from '@/api';
|
||||
|
||||
/**
|
||||
* 挑战杯人才库列表记录
|
||||
*/
|
||||
export interface TzbTalentListRecord {
|
||||
id?: number;
|
||||
sourceId?: number;
|
||||
personName?: string;
|
||||
schoolName?: string;
|
||||
talentType?: string;
|
||||
projectName?: string;
|
||||
awardName?: string;
|
||||
matchTerm?: string;
|
||||
matchLevel?: string;
|
||||
coverImage?: string;
|
||||
detailUrl?: string;
|
||||
sourceUrl?: string;
|
||||
pageNo?: number;
|
||||
lastSyncTime?: string;
|
||||
createTime?: string;
|
||||
updateTime?: string;
|
||||
deleted?: number;
|
||||
}
|
||||
|
||||
/**
|
||||
* 挑战杯人才库列表搜索条件
|
||||
*/
|
||||
export interface TzbTalentListRecordParam extends PageParam {
|
||||
id?: number;
|
||||
sourceId?: number;
|
||||
personName?: string;
|
||||
schoolName?: string;
|
||||
talentType?: string;
|
||||
projectName?: string;
|
||||
awardName?: string;
|
||||
matchTerm?: string;
|
||||
matchLevel?: string;
|
||||
keywords?: string;
|
||||
}
|
||||
@@ -0,0 +1,126 @@
|
||||
import request from '@/utils/request';
|
||||
import type { ApiResult, PageResult } from '@/api';
|
||||
import type { TzbcyForm, TzbcyFormParam, TzbcyStatisticsResult } from './model';
|
||||
|
||||
/**
|
||||
* 分页查询TzbcyForm
|
||||
*/
|
||||
export async function pageTzbcyForm(params: TzbcyFormParam) {
|
||||
const res = await request.get<ApiResult<PageResult<TzbcyForm>>>(
|
||||
'/gxmu/tzbcy-form/page',
|
||||
{
|
||||
params: { ...params, backendAccess: true }
|
||||
}
|
||||
);
|
||||
if (res.data.code === 0 && res.data.data) {
|
||||
return res.data.data;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 用户分页查询TzbcyForm
|
||||
*/
|
||||
export async function userPageTzbcyForm(params: TzbcyFormParam) {
|
||||
const res = await request.get<ApiResult<PageResult<TzbcyForm>>>(
|
||||
'/gxmu/tzbcy-form/userPage',
|
||||
{
|
||||
params: { ...params, backendAccess: true }
|
||||
}
|
||||
);
|
||||
if (res.data.code === 0 && res.data.data) {
|
||||
return res.data.data;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询TzbcyForm列表
|
||||
*/
|
||||
export async function listTzbcyForm(params?: TzbcyFormParam) {
|
||||
const res = await request.get<ApiResult<TzbcyForm[]>>('/gxmu/tzbcy-form', {
|
||||
params
|
||||
});
|
||||
if (res.data.code === 0 && res.data.data) {
|
||||
return res.data.data;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据id查询TzbcyForm
|
||||
*/
|
||||
export async function getTzbcyForm(id: number) {
|
||||
const res = await request.get<ApiResult<TzbcyForm>>('/gxmu/tzbcy-form/' + id);
|
||||
if (res.data.code === 0 && res.data.data) {
|
||||
return res.data.data;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 添加TzbcyForm
|
||||
*/
|
||||
export async function addTzbcyForm(data: TzbcyForm) {
|
||||
const res = await request.post<ApiResult<unknown>>('/gxmu/tzbcy-form', data);
|
||||
if (res.data.code === 0) {
|
||||
return res.data.message;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改TzbcyForm
|
||||
*/
|
||||
export async function updateTzbcyForm(data: TzbcyForm) {
|
||||
const res = await request.put<ApiResult<unknown>>('/gxmu/tzbcy-form', data);
|
||||
if (res.data.code === 0) {
|
||||
return res.data.message;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除TzbcyForm
|
||||
*/
|
||||
export async function removeTzbcyForm(id?: number) {
|
||||
const res = await request.delete<ApiResult<unknown>>(
|
||||
'/gxmu/tzbcy-form/' + id
|
||||
);
|
||||
if (res.data.code === 0) {
|
||||
return res.data.message;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除TzbcyForm
|
||||
*/
|
||||
export async function removeBatchTzbcyForm(data: (number | undefined)[]) {
|
||||
const res = await request.delete<ApiResult<unknown>>(
|
||||
'/gxmu/tzbcy-form/batch',
|
||||
{
|
||||
data
|
||||
}
|
||||
);
|
||||
if (res.data.code === 0) {
|
||||
return res.data.message;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询挑战杯数据统计
|
||||
*/
|
||||
export async function getTzbcyStatistics(params?: { year?: number }) {
|
||||
const res = await request.get<ApiResult<TzbcyStatisticsResult>>(
|
||||
'/gxmu/tzbcy-form/statistics',
|
||||
{
|
||||
params
|
||||
}
|
||||
);
|
||||
if (res.data.code === 0 && res.data.data) {
|
||||
return res.data.data;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
@@ -0,0 +1,82 @@
|
||||
import type { PageParam } from '@/api';
|
||||
import type { ReviewList } from '@/api/gxmu/reviewList/model';
|
||||
|
||||
export interface TzbcyTeamMember {
|
||||
name?: string;
|
||||
gender?: string;
|
||||
college?: string;
|
||||
gradeMajor?: string;
|
||||
phone?: string;
|
||||
remark?: string;
|
||||
}
|
||||
|
||||
export interface TzbcyAdvisor {
|
||||
name?: string;
|
||||
gender?: string;
|
||||
college?: string;
|
||||
title?: string;
|
||||
duty?: string;
|
||||
phone?: string;
|
||||
}
|
||||
|
||||
export interface TzbcyForm {
|
||||
id?: number;
|
||||
year?: string;
|
||||
provinceCity?: string;
|
||||
schoolName?: string;
|
||||
projectName?: string;
|
||||
projectType?: string;
|
||||
projectGroup?: string;
|
||||
publicProjectType?: string;
|
||||
publicProjectGroup?: string;
|
||||
leader?: string;
|
||||
phone?: string;
|
||||
teamMembers?: TzbcyTeamMember[];
|
||||
advisors?: TzbcyAdvisor[];
|
||||
projectBrief?: string;
|
||||
socialValue?: string;
|
||||
practiceProcess?: string;
|
||||
innovationMeaning?: string;
|
||||
developmentProspect?: string;
|
||||
teamCooperation?: string;
|
||||
projectMaterials?: string;
|
||||
otherProofs?: string;
|
||||
projectSummary?: string;
|
||||
teamIntro?: string;
|
||||
teamSlogan?: string;
|
||||
practiceLog?: string;
|
||||
reviewList?: ReviewList[];
|
||||
}
|
||||
|
||||
export interface TzbcyFormParam extends PageParam {
|
||||
id?: number;
|
||||
year?: string;
|
||||
projectName?: string;
|
||||
leader?: string;
|
||||
schoolName?: string;
|
||||
keywords?: string;
|
||||
}
|
||||
|
||||
export interface TzbcyStatisticItem {
|
||||
label: string;
|
||||
value: number;
|
||||
}
|
||||
|
||||
export interface TzbcyStatisticsSummary {
|
||||
declarationCount: number;
|
||||
participantCount: number;
|
||||
advisorCount: number;
|
||||
awardCount: number;
|
||||
schoolCount: number;
|
||||
}
|
||||
|
||||
export interface TzbcyStatisticsResult {
|
||||
year?: number;
|
||||
availableYears: number[];
|
||||
summary: TzbcyStatisticsSummary;
|
||||
awardCountDescription?: string;
|
||||
yearDistribution: TzbcyStatisticItem[];
|
||||
typeDistribution: TzbcyStatisticItem[];
|
||||
groupDistribution: TzbcyStatisticItem[];
|
||||
schoolDistribution: TzbcyStatisticItem[];
|
||||
}
|
||||
@@ -0,0 +1,88 @@
|
||||
import request from '@/utils/request';
|
||||
import type { ApiResult, PageResult } from '@/api';
|
||||
import type { FileRecord } from '@/api/system/file/model';
|
||||
import type {
|
||||
TzbcyMaterial,
|
||||
TzbcyMaterialAuditParam,
|
||||
TzbcyMaterialParam
|
||||
} from './model';
|
||||
|
||||
export async function pageTzbcyMaterial(params: TzbcyMaterialParam) {
|
||||
const res = await request.get<ApiResult<PageResult<TzbcyMaterial>>>(
|
||||
'/gxmu/tzbcy-material/page',
|
||||
{
|
||||
params: { ...params, backendAccess: true }
|
||||
}
|
||||
);
|
||||
if (res.data.code === 0 && res.data.data) {
|
||||
return res.data.data;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
export async function listTzbcyMaterial(params?: TzbcyMaterialParam) {
|
||||
const res = await request.get<ApiResult<TzbcyMaterial[]>>(
|
||||
'/gxmu/tzbcy-material',
|
||||
{
|
||||
params: { ...params, backendAccess: true }
|
||||
}
|
||||
);
|
||||
if (res.data.code === 0 && res.data.data) {
|
||||
return res.data.data;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
export async function addTzbcyMaterial(data: TzbcyMaterial) {
|
||||
const res = await request.post<ApiResult<unknown>>(
|
||||
'/gxmu/tzbcy-material',
|
||||
data
|
||||
);
|
||||
if (res.data.code === 0) {
|
||||
return res.data.message;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
export async function updateTzbcyMaterial(data: TzbcyMaterial) {
|
||||
const res = await request.put<ApiResult<unknown>>(
|
||||
'/gxmu/tzbcy-material',
|
||||
data
|
||||
);
|
||||
if (res.data.code === 0) {
|
||||
return res.data.message;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
export async function auditTzbcyMaterial(data: TzbcyMaterialAuditParam) {
|
||||
const res = await request.put<ApiResult<unknown>>(
|
||||
'/gxmu/tzbcy-material/audit',
|
||||
data
|
||||
);
|
||||
if (res.data.code === 0) {
|
||||
return res.data.message;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
export async function removeTzbcyMaterial(id?: number) {
|
||||
const res = await request.delete<ApiResult<unknown>>(
|
||||
'/gxmu/tzbcy-material/' + id
|
||||
);
|
||||
if (res.data.code === 0) {
|
||||
return res.data.message;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
export async function exportTzbcyMaterial(params?: TzbcyMaterialParam) {
|
||||
const res = await request.post<ApiResult<FileRecord>>(
|
||||
'/gxmu/tzbcy-material/export',
|
||||
{ ...params, backendAccess: true }
|
||||
);
|
||||
if (res.data.code === 0 && res.data.data) {
|
||||
return res.data.data;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
@@ -0,0 +1,39 @@
|
||||
import type { PageParam } from '@/api';
|
||||
|
||||
export interface TzbcyMaterial {
|
||||
id?: number;
|
||||
formId?: number;
|
||||
materialType?: string;
|
||||
fileId?: number;
|
||||
fileName?: string;
|
||||
filePath?: string;
|
||||
fileUrl?: string;
|
||||
downloadUrl?: string;
|
||||
fileSize?: number;
|
||||
contentType?: string;
|
||||
status?: number;
|
||||
rejectReason?: string;
|
||||
auditUserId?: number;
|
||||
auditTime?: string;
|
||||
userId?: number;
|
||||
tenantId?: number;
|
||||
createTime?: string;
|
||||
updateTime?: string;
|
||||
projectName?: string;
|
||||
leader?: string;
|
||||
}
|
||||
|
||||
export interface TzbcyMaterialParam extends PageParam {
|
||||
id?: number;
|
||||
formId?: number;
|
||||
materialType?: string;
|
||||
status?: number;
|
||||
userId?: number;
|
||||
backendAccess?: boolean;
|
||||
}
|
||||
|
||||
export interface TzbcyMaterialAuditParam {
|
||||
id?: number;
|
||||
status?: number;
|
||||
rejectReason?: string;
|
||||
}
|
||||
@@ -0,0 +1,62 @@
|
||||
import request from '@/utils/request';
|
||||
import type { ApiResult, PageResult } from '@/api';
|
||||
import type { WorkLedger, WorkLedgerParam } from './model';
|
||||
|
||||
const createWorkLedgerApi = (baseUrl: string) => ({
|
||||
async page(params: WorkLedgerParam) {
|
||||
const res = await request.get<ApiResult<PageResult<WorkLedger>>>(
|
||||
`${baseUrl}/page`,
|
||||
{ params }
|
||||
);
|
||||
if (res.data.code === 0 && res.data.data) {
|
||||
return res.data.data;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
},
|
||||
async userPage(params: WorkLedgerParam) {
|
||||
const res = await request.get<ApiResult<PageResult<WorkLedger>>>(
|
||||
`${baseUrl}/userPage`,
|
||||
{ params }
|
||||
);
|
||||
if (res.data.code === 0 && res.data.data) {
|
||||
return res.data.data;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
},
|
||||
async get(id: number) {
|
||||
const res = await request.get<ApiResult<WorkLedger>>(`${baseUrl}/${id}`);
|
||||
if (res.data.code === 0 && res.data.data) {
|
||||
return res.data.data;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
},
|
||||
async add(data: WorkLedger) {
|
||||
const res = await request.post<ApiResult<unknown>>(baseUrl, data);
|
||||
if (res.data.code === 0) {
|
||||
return res.data.message;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
},
|
||||
async update(data: WorkLedger) {
|
||||
const res = await request.put<ApiResult<unknown>>(baseUrl, data);
|
||||
if (res.data.code === 0) {
|
||||
return res.data.message;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
},
|
||||
async remove(id?: number) {
|
||||
const res = await request.delete<ApiResult<unknown>>(`${baseUrl}/${id}`);
|
||||
if (res.data.code === 0) {
|
||||
return res.data.message;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
});
|
||||
|
||||
export const leagueCommitteeLedgerApi = createWorkLedgerApi(
|
||||
'/gxmu/league-committee-ledger'
|
||||
);
|
||||
|
||||
export const leagueBranchLedgerApi = createWorkLedgerApi(
|
||||
'/gxmu/league-branch-ledger'
|
||||
);
|
||||
@@ -0,0 +1,237 @@
|
||||
import type { PageParam } from '@/api';
|
||||
|
||||
export interface WorkLedgerCommitteeMember {
|
||||
name?: string;
|
||||
gender?: string;
|
||||
birthMonth?: string;
|
||||
politics?: string;
|
||||
leagueDuty?: string;
|
||||
partTimeWork?: string;
|
||||
}
|
||||
|
||||
export interface WorkLedgerFeeRecord {
|
||||
date?: string;
|
||||
purpose?: string;
|
||||
income?: string;
|
||||
expense?: string;
|
||||
balance?: string;
|
||||
}
|
||||
|
||||
export interface WorkLedgerSubordinateOrg {
|
||||
branchName?: string;
|
||||
leaderName?: string;
|
||||
phone?: string;
|
||||
memberCount?: string;
|
||||
youthCount?: string;
|
||||
feeCount?: string;
|
||||
paidCount?: string;
|
||||
}
|
||||
|
||||
export interface WorkLedgerHonorRecord {
|
||||
honorName?: string;
|
||||
awardTime?: string;
|
||||
winner?: string;
|
||||
rewardSituation?: string;
|
||||
remark?: string;
|
||||
}
|
||||
|
||||
export interface WorkLedgerActivistRecommendation {
|
||||
name?: string;
|
||||
gender?: string;
|
||||
nation?: string;
|
||||
birthMonth?: string;
|
||||
classMajor?: string;
|
||||
currentDuty?: string;
|
||||
}
|
||||
|
||||
export interface WorkLedgerDisciplineRecord {
|
||||
name?: string;
|
||||
time?: string;
|
||||
handlingType?: string;
|
||||
reason?: string;
|
||||
}
|
||||
|
||||
export interface WorkLedgerMeetingRecord {
|
||||
meetingName?: string;
|
||||
meetingTheme?: string;
|
||||
time?: string;
|
||||
location?: string;
|
||||
host?: string;
|
||||
attendees?: string;
|
||||
absentees?: string;
|
||||
content?: string;
|
||||
recorder?: string;
|
||||
}
|
||||
|
||||
export interface WorkLedgerActivityRecord {
|
||||
activityName?: string;
|
||||
activityTheme?: string;
|
||||
activityTime?: string;
|
||||
location?: string;
|
||||
participants?: string;
|
||||
content?: string;
|
||||
recorder?: string;
|
||||
}
|
||||
|
||||
export interface WorkLedgerEducationEvaluation {
|
||||
branchName?: string;
|
||||
name?: string;
|
||||
result?: string;
|
||||
remark?: string;
|
||||
}
|
||||
|
||||
export interface WorkLedgerBranchOverviewMember {
|
||||
name?: string;
|
||||
phone?: string;
|
||||
}
|
||||
|
||||
export interface WorkLedgerBranchCommitteeMember {
|
||||
name?: string;
|
||||
gender?: string;
|
||||
birthMonth?: string;
|
||||
politics?: string;
|
||||
leagueDuty?: string;
|
||||
partTimeWork?: string;
|
||||
}
|
||||
|
||||
export interface WorkLedgerLeagueMemberRegister {
|
||||
name?: string;
|
||||
gender?: string;
|
||||
birthMonth?: string;
|
||||
nation?: string;
|
||||
joinMonth?: string;
|
||||
leagueDuty?: string;
|
||||
workDuty?: string;
|
||||
remark?: string;
|
||||
}
|
||||
|
||||
export interface WorkLedgerYouthRegister {
|
||||
name?: string;
|
||||
gender?: string;
|
||||
birthMonth?: string;
|
||||
nation?: string;
|
||||
workDuty?: string;
|
||||
remark?: string;
|
||||
}
|
||||
|
||||
export interface WorkLedgerBranchHonorRecord {
|
||||
honorName?: string;
|
||||
awardTime?: string;
|
||||
winner?: string;
|
||||
rewardSituation?: string;
|
||||
remark?: string;
|
||||
}
|
||||
|
||||
export interface WorkLedgerMemberFeeRecord {
|
||||
name?: string;
|
||||
januaryAmount?: string;
|
||||
februaryAmount?: string;
|
||||
marchAmount?: string;
|
||||
aprilAmount?: string;
|
||||
mayAmount?: string;
|
||||
juneAmount?: string;
|
||||
julyAmount?: string;
|
||||
augustAmount?: string;
|
||||
septemberAmount?: string;
|
||||
octoberAmount?: string;
|
||||
novemberAmount?: string;
|
||||
decemberAmount?: string;
|
||||
totalAmount?: string;
|
||||
}
|
||||
|
||||
export interface WorkLedgerBranchMeetingRecord {
|
||||
meetingName?: string;
|
||||
meetingTheme?: string;
|
||||
time?: string;
|
||||
location?: string;
|
||||
host?: string;
|
||||
attendees?: string;
|
||||
absentees?: string;
|
||||
content?: string;
|
||||
recorder?: string;
|
||||
}
|
||||
|
||||
export interface WorkLedgerBranchActivityRecord {
|
||||
activityName?: string;
|
||||
activityTheme?: string;
|
||||
activityTime?: string;
|
||||
location?: string;
|
||||
participants?: string;
|
||||
content?: string;
|
||||
recorder?: string;
|
||||
}
|
||||
|
||||
export interface WorkLedgerBranchEducationEvaluation {
|
||||
name?: string;
|
||||
excellent?: string;
|
||||
qualified?: string;
|
||||
basicallyQualified?: string;
|
||||
unqualified?: string;
|
||||
remark?: string;
|
||||
}
|
||||
|
||||
export interface WorkLedger {
|
||||
id?: number;
|
||||
ledgerType?: string;
|
||||
unitName?: string;
|
||||
responsiblePerson?: string;
|
||||
useStartMonth?: string;
|
||||
useEndMonth?: string;
|
||||
secretaryName?: string;
|
||||
branchCount?: string;
|
||||
memberTotal?: string;
|
||||
facultyMemberCount?: string;
|
||||
studentMemberCount?: string;
|
||||
minorityMemberCount?: string;
|
||||
femaleMemberCount?: string;
|
||||
youth14To28Count?: string;
|
||||
youth29To35Count?: string;
|
||||
cadreTotal?: string;
|
||||
facultyCadreCount?: string;
|
||||
studentCadreCount?: string;
|
||||
lastElectionTime?: string;
|
||||
feeBalance?: string;
|
||||
firstHalfFeeDue?: string;
|
||||
firstHalfFeePaid?: string;
|
||||
secondHalfFeeDue?: string;
|
||||
secondHalfFeePaid?: string;
|
||||
schoolSocietyConnectionRate?: string;
|
||||
smartLeagueEntryRate?: string;
|
||||
branchSecretaryName?: string;
|
||||
branchSecretaryPhone?: string;
|
||||
totalPeopleCount?: string;
|
||||
partyMemberCount?: string;
|
||||
youthCount?: string;
|
||||
leagueYouthRatio?: string;
|
||||
branchAnnualSummary?: string;
|
||||
standardLevel?: string;
|
||||
annualSummary?: string;
|
||||
committeeMembers?: WorkLedgerCommitteeMember[];
|
||||
feeRecords?: WorkLedgerFeeRecord[];
|
||||
subordinateOrgs?: WorkLedgerSubordinateOrg[];
|
||||
honorRecords?: WorkLedgerHonorRecord[];
|
||||
activistRecommendations?: WorkLedgerActivistRecommendation[];
|
||||
disciplineRecords?: WorkLedgerDisciplineRecord[];
|
||||
meetingRecords?: WorkLedgerMeetingRecord[];
|
||||
activityRecords?: WorkLedgerActivityRecord[];
|
||||
educationEvaluations?: WorkLedgerEducationEvaluation[];
|
||||
branchCommitteeMembers?: WorkLedgerBranchCommitteeMember[];
|
||||
leagueMemberRegisters?: WorkLedgerLeagueMemberRegister[];
|
||||
youthRegisters?: WorkLedgerYouthRegister[];
|
||||
branchHonorRecords?: WorkLedgerBranchHonorRecord[];
|
||||
memberFeeRecords?: WorkLedgerMemberFeeRecord[];
|
||||
branchMeetingRecords?: WorkLedgerBranchMeetingRecord[];
|
||||
branchActivityRecords?: WorkLedgerBranchActivityRecord[];
|
||||
branchEducationEvaluations?: WorkLedgerBranchEducationEvaluation[];
|
||||
year?: number | string;
|
||||
createTime?: string;
|
||||
updateTime?: string;
|
||||
}
|
||||
|
||||
export interface WorkLedgerParam extends PageParam {
|
||||
id?: number;
|
||||
unitName?: string;
|
||||
responsiblePerson?: string;
|
||||
year?: number | string;
|
||||
keywords?: string;
|
||||
}
|
||||
@@ -0,0 +1,114 @@
|
||||
import request from '@/utils/request';
|
||||
import type { ApiResult, PageResult } from '@/api';
|
||||
import type { FileRecord } from '@/api/system/file/model';
|
||||
import type { WshqtwForm, WshqtwFormParam } from './model';
|
||||
|
||||
/**
|
||||
* 分页查询WshqtwForm
|
||||
*/
|
||||
export async function pageWshqtwForm(params: WshqtwFormParam) {
|
||||
const res = await request.get<ApiResult<PageResult<WshqtwForm>>>('/gxmu/wshqtw-form/page', {
|
||||
params: { ...params, backendAccess: true }
|
||||
});
|
||||
if (res.data.code === 0 && res.data.data) {
|
||||
return res.data.data;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 用户分页查询WshqtwForm
|
||||
*/
|
||||
export async function userPageWshqtwForm(params: WshqtwFormParam) {
|
||||
const res = await request.get<ApiResult<PageResult<WshqtwForm>>>('/gxmu/wshqtw-form/userPage', {
|
||||
params: { ...params, backendAccess: true }
|
||||
});
|
||||
if (res.data.code === 0 && res.data.data) {
|
||||
return res.data.data;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询WshqtwForm列表
|
||||
*/
|
||||
export async function listWshqtwForm(params?: WshqtwFormParam) {
|
||||
const res = await request.get<ApiResult<WshqtwForm[]>>('/gxmu/wshqtw-form', {
|
||||
params
|
||||
});
|
||||
if (res.data.code === 0 && res.data.data) {
|
||||
return res.data.data;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据id查询WshqtwForm
|
||||
*/
|
||||
export async function getWshqtwForm(id: number) {
|
||||
const res = await request.get<ApiResult<WshqtwForm>>('/gxmu/wshqtw-form/' + id);
|
||||
if (res.data.code === 0 && res.data.data) {
|
||||
return res.data.data;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 添加WshqtwForm
|
||||
*/
|
||||
export async function addWshqtwForm(data: WshqtwForm) {
|
||||
const res = await request.post<ApiResult<unknown>>('/gxmu/wshqtw-form', data);
|
||||
if (res.data.code === 0) {
|
||||
return res.data.message;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改WshqtwForm
|
||||
*/
|
||||
export async function updateWshqtwForm(data: WshqtwForm) {
|
||||
const res = await request.put<ApiResult<unknown>>('/gxmu/wshqtw-form', data);
|
||||
if (res.data.code === 0) {
|
||||
return res.data.message;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除WshqtwForm
|
||||
*/
|
||||
export async function removeWshqtwForm(id?: number) {
|
||||
const res = await request.delete<ApiResult<unknown>>('/gxmu/wshqtw-form/' + id);
|
||||
if (res.data.code === 0) {
|
||||
return res.data.message;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除WshqtwForm
|
||||
*/
|
||||
export async function removeBatchWshqtwForm(data: (number | undefined)[]) {
|
||||
const res = await request.delete<ApiResult<unknown>>('/gxmu/wshqtw-form/batch', {
|
||||
data
|
||||
});
|
||||
if (res.data.code === 0) {
|
||||
return res.data.message;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出WshqtwForm
|
||||
*/
|
||||
export async function exportWshqtwForm(params?: WshqtwFormParam) {
|
||||
const res = await request.post<ApiResult<FileRecord>>('/gxmu/wshqtw-form/export', {
|
||||
...params,
|
||||
backendAccess: true
|
||||
});
|
||||
if (res.data.code === 0 && res.data.data) {
|
||||
return res.data.data;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
@@ -0,0 +1,47 @@
|
||||
import type { PageParam } from '@/api';
|
||||
import type { ReviewList } from '@/api/gxmu/reviewList/model';
|
||||
|
||||
/**
|
||||
* WshqtwForm
|
||||
*/
|
||||
export interface WshqtwForm {
|
||||
id?: number;
|
||||
year?: string;
|
||||
orgName?: string;
|
||||
leader?: string;
|
||||
phone?: string;
|
||||
memberTotal?: string;
|
||||
memberDeveloped2024?: string;
|
||||
smartSystemLogin?: string;
|
||||
committeeCount?: string;
|
||||
fulltimeCadreCount?: string;
|
||||
parttimeCadreCount?: string;
|
||||
lastElectionTime?: string;
|
||||
feeReceivable2024?: string;
|
||||
feeReceived2024?: string;
|
||||
feePayable2024?: string;
|
||||
feePaid2024?: string;
|
||||
branchCount?: string;
|
||||
standardizedWork2024?: string;
|
||||
recommendActivist2024?: string;
|
||||
activistConfirmed?: string;
|
||||
recommendDevTarget2024?: string;
|
||||
devTargetConfirmed?: string;
|
||||
honorsFiveYears?: string;
|
||||
workSummaryThreeYears?: string;
|
||||
partyOpinion?: string;
|
||||
schoolOpinion?: string;
|
||||
reviewList?: ReviewList[];
|
||||
}
|
||||
|
||||
/**
|
||||
* WshqtwForm搜索条件
|
||||
*/
|
||||
export interface WshqtwFormParam extends PageParam {
|
||||
id?: number;
|
||||
year?: string;
|
||||
orgName?: string;
|
||||
leader?: string;
|
||||
phone?: string;
|
||||
keywords?: string;
|
||||
}
|
||||
@@ -0,0 +1,114 @@
|
||||
import request from '@/utils/request';
|
||||
import type { ApiResult, PageResult } from '@/api';
|
||||
import type { FileRecord } from '@/api/system/file/model';
|
||||
import type { WshqtzbForm, WshqtzbFormParam } from './model';
|
||||
|
||||
/**
|
||||
* 分页查询WshqtzbForm
|
||||
*/
|
||||
export async function pageWshqtzbForm(params: WshqtzbFormParam) {
|
||||
const res = await request.get<ApiResult<PageResult<WshqtzbForm>>>('/gxmu/wshqtzb-form/page', {
|
||||
params: { ...params, backendAccess: true }
|
||||
});
|
||||
if (res.data.code === 0 && res.data.data) {
|
||||
return res.data.data;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 用户分页查询WshqtzbForm
|
||||
*/
|
||||
export async function userPageWshqtzbForm(params: WshqtzbFormParam) {
|
||||
const res = await request.get<ApiResult<PageResult<WshqtzbForm>>>('/gxmu/wshqtzb-form/userPage', {
|
||||
params: { ...params, backendAccess: true }
|
||||
});
|
||||
if (res.data.code === 0 && res.data.data) {
|
||||
return res.data.data;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询WshqtzbForm列表
|
||||
*/
|
||||
export async function listWshqtzbForm(params?: WshqtzbFormParam) {
|
||||
const res = await request.get<ApiResult<WshqtzbForm[]>>('/gxmu/wshqtzb-form', {
|
||||
params
|
||||
});
|
||||
if (res.data.code === 0 && res.data.data) {
|
||||
return res.data.data;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据id查询WshqtzbForm
|
||||
*/
|
||||
export async function getWshqtzbForm(id: number) {
|
||||
const res = await request.get<ApiResult<WshqtzbForm>>('/gxmu/wshqtzb-form/' + id);
|
||||
if (res.data.code === 0 && res.data.data) {
|
||||
return res.data.data;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 添加WshqtzbForm
|
||||
*/
|
||||
export async function addWshqtzbForm(data: WshqtzbForm) {
|
||||
const res = await request.post<ApiResult<unknown>>('/gxmu/wshqtzb-form', data);
|
||||
if (res.data.code === 0) {
|
||||
return res.data.message;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改WshqtzbForm
|
||||
*/
|
||||
export async function updateWshqtzbForm(data: WshqtzbForm) {
|
||||
const res = await request.put<ApiResult<unknown>>('/gxmu/wshqtzb-form', data);
|
||||
if (res.data.code === 0) {
|
||||
return res.data.message;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除WshqtzbForm
|
||||
*/
|
||||
export async function removeWshqtzbForm(id?: number) {
|
||||
const res = await request.delete<ApiResult<unknown>>('/gxmu/wshqtzb-form/' + id);
|
||||
if (res.data.code === 0) {
|
||||
return res.data.message;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除WshqtzbForm
|
||||
*/
|
||||
export async function removeBatchWshqtzbForm(data: (number | undefined)[]) {
|
||||
const res = await request.delete<ApiResult<unknown>>('/gxmu/wshqtzb-form/batch', {
|
||||
data
|
||||
});
|
||||
if (res.data.code === 0) {
|
||||
return res.data.message;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出WshqtzbForm
|
||||
*/
|
||||
export async function exportWshqtzbForm(params?: WshqtzbFormParam) {
|
||||
const res = await request.post<ApiResult<FileRecord>>('/gxmu/wshqtzb-form/export', {
|
||||
...params,
|
||||
backendAccess: true
|
||||
});
|
||||
if (res.data.code === 0 && res.data.data) {
|
||||
return res.data.data;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
@@ -0,0 +1,52 @@
|
||||
import type { PageParam } from '@/api';
|
||||
import type { ReviewList } from '@/api/gxmu/reviewList/model';
|
||||
|
||||
/**
|
||||
* WshqtzbForm
|
||||
*/
|
||||
export interface WshqtzbForm {
|
||||
id?: number;
|
||||
year?: string;
|
||||
branchName?: string;
|
||||
secondOrg?: string;
|
||||
secretary?: string;
|
||||
politics?: string;
|
||||
contact?: string;
|
||||
establishTime?: string;
|
||||
lastElectionTime?: string;
|
||||
smartSystemLogin?: string;
|
||||
memberTotal?: string;
|
||||
memberDeveloped2024?: string;
|
||||
feeReceivable2024?: string;
|
||||
feeReceived2024?: string;
|
||||
feePayable2024?: string;
|
||||
feePaid2024?: string;
|
||||
recommendActivist2024?: string;
|
||||
activistConfirmed?: string;
|
||||
recommendDevTarget2024?: string;
|
||||
devTargetConfirmed?: string;
|
||||
branchCommitteeMeetingCount?: string;
|
||||
branchMemberMeetingCount?: string;
|
||||
eduEvalDone?: string;
|
||||
annualRegDone?: string;
|
||||
classCount?: string;
|
||||
smartSystem100?: string;
|
||||
honorsFiveYears?: string;
|
||||
workSummaryThreeYears?: string;
|
||||
leagueOpinion?: string;
|
||||
partyOpinion?: string;
|
||||
schoolOpinion?: string;
|
||||
reviewList?: ReviewList[];
|
||||
}
|
||||
|
||||
/**
|
||||
* WshqtzbForm搜索条件
|
||||
*/
|
||||
export interface WshqtzbFormParam extends PageParam {
|
||||
id?: number;
|
||||
year?: string;
|
||||
branchName?: string;
|
||||
secretary?: string;
|
||||
contact?: string;
|
||||
keywords?: string;
|
||||
}
|
||||
@@ -0,0 +1,187 @@
|
||||
import request from '@/utils/request';
|
||||
import type { ApiResult, PageResult } from '@/api';
|
||||
import type { FileRecord } from '@/api/system/file/model';
|
||||
import type {
|
||||
WxxzxArchiveRecord,
|
||||
WxxzxDocxValidationResult,
|
||||
WxxzxForm,
|
||||
WxxzxFormParam,
|
||||
WxxzxProjectQualityReviewResult
|
||||
} from './model';
|
||||
|
||||
export interface WxxzxMaterialsPayload {
|
||||
fundingBudgetFile?: string;
|
||||
fundingAllocationFile?: string;
|
||||
midtermRemark?: string;
|
||||
midtermMaterials?: string;
|
||||
finalRemark?: string;
|
||||
finalMaterials?: string;
|
||||
archiveAwards?: string;
|
||||
archiveProofs?: string;
|
||||
archiveRecords?: WxxzxArchiveRecord[];
|
||||
}
|
||||
|
||||
/**
|
||||
* 分页查询WxxzxForm
|
||||
*/
|
||||
export async function pageWxxzxForm(params: WxxzxFormParam) {
|
||||
const res = await request.get<ApiResult<PageResult<WxxzxForm>>>('/gxmu/wxxzx-form/page', {
|
||||
params: { ...params, backendAccess: true }
|
||||
});
|
||||
if (res.data.code === 0 && res.data.data) {
|
||||
return res.data.data;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 用户分页查询WxxzxForm
|
||||
*/
|
||||
export async function userPageWxxzxForm(params: WxxzxFormParam) {
|
||||
const res = await request.get<ApiResult<PageResult<WxxzxForm>>>('/gxmu/wxxzx-form/userPage', {
|
||||
params: { ...params, backendAccess: true }
|
||||
});
|
||||
if (res.data.code === 0 && res.data.data) {
|
||||
return res.data.data;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询WxxzxForm列表
|
||||
*/
|
||||
export async function listWxxzxForm(params?: WxxzxFormParam) {
|
||||
const res = await request.get<ApiResult<WxxzxForm[]>>('/gxmu/wxxzx-form', {
|
||||
params
|
||||
});
|
||||
if (res.data.code === 0 && res.data.data) {
|
||||
return res.data.data;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据id查询WxxzxForm
|
||||
*/
|
||||
export async function getWxxzxForm(id: number) {
|
||||
const res = await request.get<ApiResult<WxxzxForm>>('/gxmu/wxxzx-form/' + id);
|
||||
if (res.data.code === 0 && res.data.data) {
|
||||
return res.data.data;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 添加WxxzxForm
|
||||
*/
|
||||
export async function addWxxzxForm(data: WxxzxForm) {
|
||||
const res = await request.post<ApiResult<unknown>>('/gxmu/wxxzx-form', data);
|
||||
if (res.data.code === 0) {
|
||||
return res.data.message;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改WxxzxForm
|
||||
*/
|
||||
export async function updateWxxzxForm(data: WxxzxForm) {
|
||||
const res = await request.put<ApiResult<unknown>>('/gxmu/wxxzx-form', data);
|
||||
if (res.data.code === 0) {
|
||||
return res.data.message;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 更新未来学术之星过程材料
|
||||
*/
|
||||
export async function updateWxxzxMaterials(
|
||||
id: number,
|
||||
data: WxxzxMaterialsPayload
|
||||
) {
|
||||
const res = await request.put<ApiResult<unknown>>(
|
||||
'/gxmu/wxxzx-form/materials/' + id,
|
||||
data
|
||||
);
|
||||
if (res.data.code === 0) {
|
||||
return res.data.message;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 校验未来学术之星项目申报书 docx 文件格式
|
||||
*/
|
||||
export async function validateWxxzxProjectBook(file: File) {
|
||||
const formData = new FormData();
|
||||
formData.append('file', file);
|
||||
const res = await request.post<ApiResult<WxxzxDocxValidationResult>>(
|
||||
'/gxmu/wxxzx-form/validate-project-book',
|
||||
formData
|
||||
);
|
||||
if (res.data.code === 0 && res.data.data) {
|
||||
return res.data.data;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 项目书质量初审
|
||||
*/
|
||||
export async function reviewWxxzxProjectBookQuality(
|
||||
newProject: File,
|
||||
customRubric?: File
|
||||
) {
|
||||
const formData = new FormData();
|
||||
formData.append('newProject', newProject);
|
||||
if (customRubric) {
|
||||
formData.append('customRubric', customRubric);
|
||||
}
|
||||
const res = await request.post<ApiResult<WxxzxProjectQualityReviewResult>>(
|
||||
'/ai/project-quality-review',
|
||||
formData
|
||||
);
|
||||
if (res.data.code === 0) {
|
||||
return res.data.data;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message || '项目书质量初审失败'));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除WxxzxForm
|
||||
*/
|
||||
export async function removeWxxzxForm(id?: number) {
|
||||
const res = await request.delete<ApiResult<unknown>>('/gxmu/wxxzx-form/' + id);
|
||||
if (res.data.code === 0) {
|
||||
return res.data.message;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除WxxzxForm
|
||||
*/
|
||||
export async function removeBatchWxxzxForm(data: (number | undefined)[]) {
|
||||
const res = await request.delete<ApiResult<unknown>>('/gxmu/wxxzx-form/batch', {
|
||||
data
|
||||
});
|
||||
if (res.data.code === 0) {
|
||||
return res.data.message;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出WxxzxForm
|
||||
*/
|
||||
export async function exportWxxzxForm(params?: WxxzxFormParam) {
|
||||
const res = await request.post<ApiResult<FileRecord>>('/gxmu/wxxzx-form/export', {
|
||||
...params,
|
||||
backendAccess: true
|
||||
});
|
||||
if (res.data.code === 0 && res.data.data) {
|
||||
return res.data.data;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
@@ -0,0 +1,123 @@
|
||||
import type { PageParam } from '@/api';
|
||||
import type { ReviewList } from '@/api/gxmu/reviewList/model';
|
||||
|
||||
export interface WxxzxGuidanceTeacher {
|
||||
year?: string;
|
||||
name?: string;
|
||||
gender?: string;
|
||||
title?: string;
|
||||
dept?: string;
|
||||
sign?: string;
|
||||
}
|
||||
|
||||
export interface WxxzxApplicant {
|
||||
year?: string;
|
||||
name?: string;
|
||||
grade?: string;
|
||||
className?: string;
|
||||
gender?: string;
|
||||
major?: string;
|
||||
role?: string;
|
||||
}
|
||||
|
||||
export interface WxxzxBudget {
|
||||
year?: string;
|
||||
item?: string;
|
||||
amount?: string;
|
||||
reason?: string;
|
||||
}
|
||||
|
||||
export interface WxxzxReviewMember {
|
||||
year?: string;
|
||||
name?: string;
|
||||
gender?: string;
|
||||
nation?: string;
|
||||
politics?: string;
|
||||
birthMonth?: string;
|
||||
title?: string;
|
||||
duty?: string;
|
||||
department?: string;
|
||||
remark?: string;
|
||||
}
|
||||
|
||||
export interface WxxzxArchiveRecord {
|
||||
id?: number;
|
||||
year?: string;
|
||||
awardName?: string;
|
||||
awardTime?: string;
|
||||
remark?: string;
|
||||
proofFile?: string;
|
||||
}
|
||||
|
||||
export interface WxxzxForm {
|
||||
id?: number;
|
||||
year?: string;
|
||||
topicName?: string;
|
||||
leader?: string;
|
||||
collegeGradeClass?: string;
|
||||
phone?: string;
|
||||
advisor?: string;
|
||||
topicType?: string;
|
||||
guidanceTeachers?: WxxzxGuidanceTeacher[];
|
||||
applicants?: WxxzxApplicant[];
|
||||
budgets?: WxxzxBudget[];
|
||||
rationale?: string;
|
||||
teacherOpinion?: string;
|
||||
teacherSign?: string;
|
||||
reviewOpinion?: string;
|
||||
reviewScore?: string;
|
||||
reviewLeaderSign?: string;
|
||||
collegeOpinion?: string;
|
||||
schoolOpinion?: string;
|
||||
promiseSigner?: string;
|
||||
promiseSignature?: string;
|
||||
reviewCollege?: string;
|
||||
reviewReporter?: string;
|
||||
reviewDate?: string;
|
||||
reviewMembers?: WxxzxReviewMember[];
|
||||
archiveRecords?: WxxzxArchiveRecord[];
|
||||
fundingBudgetFile?: string;
|
||||
fundingAllocationFile?: string;
|
||||
midtermRemark?: string;
|
||||
midtermMaterials?: string;
|
||||
finalRemark?: string;
|
||||
finalMaterials?: string;
|
||||
archiveAwards?: string;
|
||||
archiveProofs?: string;
|
||||
reviewList?: ReviewList[];
|
||||
}
|
||||
|
||||
export interface WxxzxDocxValidationItem {
|
||||
rule: string;
|
||||
passed: boolean;
|
||||
detail: string;
|
||||
suggestion?: string;
|
||||
paragraphIndex?: number;
|
||||
paragraphText?: string;
|
||||
}
|
||||
|
||||
export interface WxxzxDocxValidationResult {
|
||||
fileName?: string;
|
||||
passed: boolean;
|
||||
summary?: string;
|
||||
totalIssues?: number;
|
||||
items: WxxzxDocxValidationItem[];
|
||||
}
|
||||
|
||||
export interface WxxzxProjectQualityReviewResult {
|
||||
answer?: string;
|
||||
taskId?: string;
|
||||
workflowRunId?: string;
|
||||
outputs?: Record<string, any>;
|
||||
raw?: Record<string, any>;
|
||||
[key: string]: any;
|
||||
}
|
||||
|
||||
export interface WxxzxFormParam extends PageParam {
|
||||
id?: number;
|
||||
year?: string;
|
||||
topicName?: string;
|
||||
leader?: string;
|
||||
collegeGradeClass?: string;
|
||||
keywords?: string;
|
||||
}
|
||||
@@ -0,0 +1,114 @@
|
||||
import request from '@/utils/request';
|
||||
import type { ApiResult, PageResult } from '@/api';
|
||||
import type { FileRecord } from '@/api/system/file/model';
|
||||
import type { YxgqtdgbForm, YxgqtdgbFormParam } from './model';
|
||||
|
||||
/**
|
||||
* 分页查询YxgqtdgbForm
|
||||
*/
|
||||
export async function pageYxgqtdgbForm(params: YxgqtdgbFormParam) {
|
||||
const res = await request.get<ApiResult<PageResult<YxgqtdgbForm>>>('/gxmu/yxgqtdgb-form/page', {
|
||||
params: { ...params, backendAccess: true }
|
||||
});
|
||||
if (res.data.code === 0 && res.data.data) {
|
||||
return res.data.data;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 用户分页查询YxgqtdgbForm
|
||||
*/
|
||||
export async function userPageYxgqtdgbForm(params: YxgqtdgbFormParam) {
|
||||
const res = await request.get<ApiResult<PageResult<YxgqtdgbForm>>>('/gxmu/yxgqtdgb-form/userPage', {
|
||||
params: { ...params, backendAccess: true }
|
||||
});
|
||||
if (res.data.code === 0 && res.data.data) {
|
||||
return res.data.data;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询YxgqtdgbForm列表
|
||||
*/
|
||||
export async function listYxgqtdgbForm(params?: YxgqtdgbFormParam) {
|
||||
const res = await request.get<ApiResult<YxgqtdgbForm[]>>('/gxmu/yxgqtdgb-form', {
|
||||
params
|
||||
});
|
||||
if (res.data.code === 0 && res.data.data) {
|
||||
return res.data.data;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据id查询YxgqtdgbForm
|
||||
*/
|
||||
export async function getYxgqtdgbForm(id: number) {
|
||||
const res = await request.get<ApiResult<YxgqtdgbForm>>('/gxmu/yxgqtdgb-form/' + id);
|
||||
if (res.data.code === 0 && res.data.data) {
|
||||
return res.data.data;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 添加YxgqtdgbForm
|
||||
*/
|
||||
export async function addYxgqtdgbForm(data: YxgqtdgbForm) {
|
||||
const res = await request.post<ApiResult<unknown>>('/gxmu/yxgqtdgb-form', data);
|
||||
if (res.data.code === 0) {
|
||||
return res.data.message;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改YxgqtdgbForm
|
||||
*/
|
||||
export async function updateYxgqtdgbForm(data: YxgqtdgbForm) {
|
||||
const res = await request.put<ApiResult<unknown>>('/gxmu/yxgqtdgb-form', data);
|
||||
if (res.data.code === 0) {
|
||||
return res.data.message;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除YxgqtdgbForm
|
||||
*/
|
||||
export async function removeYxgqtdgbForm(id?: number) {
|
||||
const res = await request.delete<ApiResult<unknown>>('/gxmu/yxgqtdgb-form/' + id);
|
||||
if (res.data.code === 0) {
|
||||
return res.data.message;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除YxgqtdgbForm
|
||||
*/
|
||||
export async function removeBatchYxgqtdgbForm(data: (number | undefined)[]) {
|
||||
const res = await request.delete<ApiResult<unknown>>('/gxmu/yxgqtdgb-form/batch', {
|
||||
data
|
||||
});
|
||||
if (res.data.code === 0) {
|
||||
return res.data.message;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出YxgqtdgbForm
|
||||
*/
|
||||
export async function exportYxgqtdgbForm(params?: YxgqtdgbFormParam) {
|
||||
const res = await request.post<ApiResult<FileRecord>>('/gxmu/yxgqtdgb-form/export', {
|
||||
...params,
|
||||
backendAccess: true
|
||||
});
|
||||
if (res.data.code === 0 && res.data.data) {
|
||||
return res.data.data;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
@@ -0,0 +1,42 @@
|
||||
import type { PageParam } from '@/api';
|
||||
import type { ReviewList } from '@/api/gxmu/reviewList/model';
|
||||
|
||||
/**
|
||||
* YxgqtdgbForm
|
||||
*/
|
||||
export interface YxgqtdgbForm {
|
||||
id?: number;
|
||||
year?: string;
|
||||
name?: string;
|
||||
gender?: string;
|
||||
nation?: string;
|
||||
birthMonth?: string;
|
||||
politics?: string;
|
||||
position?: string;
|
||||
identity?: string;
|
||||
organization?: string;
|
||||
contact?: string;
|
||||
memberNo?: string;
|
||||
currentDutyTime?: string;
|
||||
cadreYears?: string;
|
||||
assessment2024?: string;
|
||||
volunteerRegTime?: string;
|
||||
cadreExperience?: string;
|
||||
honorsFiveYears?: string;
|
||||
mainStory?: string;
|
||||
leagueOpinion?: string;
|
||||
partyOpinion?: string;
|
||||
reviewList?: ReviewList[];
|
||||
}
|
||||
|
||||
/**
|
||||
* YxgqtdgbForm搜索条件
|
||||
*/
|
||||
export interface YxgqtdgbFormParam extends PageParam {
|
||||
id?: number;
|
||||
year?: string;
|
||||
name?: string;
|
||||
organization?: string;
|
||||
contact?: string;
|
||||
keywords?: string;
|
||||
}
|
||||
@@ -0,0 +1,114 @@
|
||||
import request from '@/utils/request';
|
||||
import type { ApiResult, PageResult } from '@/api';
|
||||
import type { FileRecord } from '@/api/system/file/model';
|
||||
import type { YxgqtyForm, YxgqtyFormParam } from './model';
|
||||
|
||||
/**
|
||||
* 分页查询YxgqtyForm
|
||||
*/
|
||||
export async function pageYxgqtyForm(params: YxgqtyFormParam) {
|
||||
const res = await request.get<ApiResult<PageResult<YxgqtyForm>>>('/gxmu/yxgqty-form/page', {
|
||||
params: { ...params, backendAccess: true }
|
||||
});
|
||||
if (res.data.code === 0 && res.data.data) {
|
||||
return res.data.data;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 用户分页查询YxgqtyForm
|
||||
*/
|
||||
export async function userPageYxgqtyForm(params: YxgqtyFormParam) {
|
||||
const res = await request.get<ApiResult<PageResult<YxgqtyForm>>>('/gxmu/yxgqty-form/userPage', {
|
||||
params: { ...params, backendAccess: true }
|
||||
});
|
||||
if (res.data.code === 0 && res.data.data) {
|
||||
return res.data.data;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询YxgqtyForm列表
|
||||
*/
|
||||
export async function listYxgqtyForm(params?: YxgqtyFormParam) {
|
||||
const res = await request.get<ApiResult<YxgqtyForm[]>>('/gxmu/yxgqty-form', {
|
||||
params
|
||||
});
|
||||
if (res.data.code === 0 && res.data.data) {
|
||||
return res.data.data;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据id查询YxgqtyForm
|
||||
*/
|
||||
export async function getYxgqtyForm(id: number) {
|
||||
const res = await request.get<ApiResult<YxgqtyForm>>('/gxmu/yxgqty-form/' + id);
|
||||
if (res.data.code === 0 && res.data.data) {
|
||||
return res.data.data;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 添加YxgqtyForm
|
||||
*/
|
||||
export async function addYxgqtyForm(data: YxgqtyForm) {
|
||||
const res = await request.post<ApiResult<unknown>>('/gxmu/yxgqty-form', data);
|
||||
if (res.data.code === 0) {
|
||||
return res.data.message;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改YxgqtyForm
|
||||
*/
|
||||
export async function updateYxgqtyForm(data: YxgqtyForm) {
|
||||
const res = await request.put<ApiResult<unknown>>('/gxmu/yxgqty-form', data);
|
||||
if (res.data.code === 0) {
|
||||
return res.data.message;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除YxgqtyForm
|
||||
*/
|
||||
export async function removeYxgqtyForm(id?: number) {
|
||||
const res = await request.delete<ApiResult<unknown>>('/gxmu/yxgqty-form/' + id);
|
||||
if (res.data.code === 0) {
|
||||
return res.data.message;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除YxgqtyForm
|
||||
*/
|
||||
export async function removeBatchYxgqtyForm(data: (number | undefined)[]) {
|
||||
const res = await request.delete<ApiResult<unknown>>('/gxmu/yxgqty-form/batch', {
|
||||
data
|
||||
});
|
||||
if (res.data.code === 0) {
|
||||
return res.data.message;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出YxgqtyForm
|
||||
*/
|
||||
export async function exportYxgqtyForm(params?: YxgqtyFormParam) {
|
||||
const res = await request.post<ApiResult<FileRecord>>('/gxmu/yxgqty-form/export', {
|
||||
...params,
|
||||
backendAccess: true
|
||||
});
|
||||
if (res.data.code === 0 && res.data.data) {
|
||||
return res.data.data;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
@@ -0,0 +1,43 @@
|
||||
import type { PageParam } from '@/api';
|
||||
import type { ReviewList } from '@/api/gxmu/reviewList/model';
|
||||
|
||||
/**
|
||||
* YxgqtyForm
|
||||
*/
|
||||
export interface YxgqtyForm {
|
||||
id?: number;
|
||||
year?: string;
|
||||
name?: string;
|
||||
gender?: string;
|
||||
nation?: string;
|
||||
politics?: string;
|
||||
birthMonth?: string;
|
||||
joinTime?: string;
|
||||
collegeMajorClass?: string;
|
||||
position?: string;
|
||||
volunteerRegTime?: string;
|
||||
eduEval2024?: string;
|
||||
smartSystem?: string;
|
||||
contact?: string;
|
||||
totalVolunteerHours?: string;
|
||||
volunteerHours2024?: string;
|
||||
memberNo?: string;
|
||||
honorsFiveYears?: string;
|
||||
mainStory?: string;
|
||||
leagueOpinion?: string;
|
||||
partyOpinion?: string;
|
||||
schoolOpinion?: string;
|
||||
reviewList?: ReviewList[];
|
||||
}
|
||||
|
||||
/**
|
||||
* YxgqtyForm搜索条件
|
||||
*/
|
||||
export interface YxgqtyFormParam extends PageParam {
|
||||
id?: number;
|
||||
year?: string;
|
||||
name?: string;
|
||||
collegeMajorClass?: string;
|
||||
contact?: string;
|
||||
keywords?: string;
|
||||
}
|
||||
@@ -1,116 +0,0 @@
|
||||
import request from '@/utils/request';
|
||||
import type { ApiResult, PageResult } from '@/api';
|
||||
import type { LawLegalAid, LawLegalAidParam } from './model';
|
||||
import { MODULES_API_URL } from '@/config/setting';
|
||||
|
||||
/**
|
||||
* 分页查询法律援助申请
|
||||
*/
|
||||
export async function pageLawLegalAid(params: LawLegalAidParam) {
|
||||
const res = await request.get<ApiResult<PageResult<LawLegalAid>>>(
|
||||
MODULES_API_URL + '/law/law-legal-aid/page',
|
||||
{
|
||||
params
|
||||
}
|
||||
);
|
||||
if (res.data.code === 0) {
|
||||
return res.data.data;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询法律援助申请列表
|
||||
*/
|
||||
export async function listLawLegalAid(params?: LawLegalAidParam) {
|
||||
const res = await request.get<ApiResult<LawLegalAid[]>>(
|
||||
MODULES_API_URL + '/law/law-legal-aid',
|
||||
{
|
||||
params
|
||||
}
|
||||
);
|
||||
if (res.data.code === 0 && res.data.data) {
|
||||
return res.data.data;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 添加法律援助申请
|
||||
*/
|
||||
export async function addLawLegalAid(data: LawLegalAid) {
|
||||
const res = await request.post<ApiResult<unknown>>(
|
||||
MODULES_API_URL + '/law/law-legal-aid',
|
||||
data
|
||||
);
|
||||
if (res.data.code === 0) {
|
||||
return res.data.message;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改法律援助申请
|
||||
*/
|
||||
export async function updateLawLegalAid(data: LawLegalAid) {
|
||||
const res = await request.put<ApiResult<unknown>>(
|
||||
MODULES_API_URL + '/law/law-legal-aid',
|
||||
data
|
||||
);
|
||||
if (res.data.code === 0) {
|
||||
return res.data.message;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除法律援助申请
|
||||
*/
|
||||
export async function removeLawLegalAid(id?: number) {
|
||||
const res = await request.delete<ApiResult<unknown>>(
|
||||
MODULES_API_URL + '/law/law-legal-aid/' + id
|
||||
);
|
||||
if (res.data.code === 0) {
|
||||
return res.data.message;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除法律援助申请
|
||||
*/
|
||||
export async function removeBatchLawLegalAid(data: (number | undefined)[]) {
|
||||
const res = await request.delete<ApiResult<unknown>>(
|
||||
MODULES_API_URL + '/law/law-legal-aid/batch',
|
||||
{
|
||||
data
|
||||
}
|
||||
);
|
||||
if (res.data.code === 0) {
|
||||
return res.data.message;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据id查询法律援助申请
|
||||
*/
|
||||
export async function getLawLegalAid(id: number) {
|
||||
const res = await request.get<ApiResult<LawLegalAid>>(
|
||||
MODULES_API_URL + '/law/law-legal-aid/' + id
|
||||
);
|
||||
if (res.data.code === 0 && res.data.data) {
|
||||
return res.data.data;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
export async function lawLegalAidExport() {
|
||||
const res = await request.post<ApiResult<LawLegalAid>>(
|
||||
MODULES_API_URL + '/law/law-legal-aid/export'
|
||||
);
|
||||
if (res.data.code === 0) {
|
||||
return res.data;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
@@ -1,43 +0,0 @@
|
||||
import type { PageParam } from '@/api';
|
||||
|
||||
/**
|
||||
* 法律援助申请
|
||||
*/
|
||||
export interface LawLegalAid {
|
||||
//
|
||||
id?: number;
|
||||
//
|
||||
userId?: number;
|
||||
//
|
||||
name?: string;
|
||||
//
|
||||
gender?: number;
|
||||
//
|
||||
phone?: string;
|
||||
//
|
||||
birthday?: string;
|
||||
//
|
||||
idCard?: string;
|
||||
// 住所地址
|
||||
liveAddress?: string;
|
||||
// 户籍地址
|
||||
householdAdderss?: string;
|
||||
// 说明
|
||||
content?: string;
|
||||
// 是否删除, 0否, 1是
|
||||
deleted?: number;
|
||||
// 租户id
|
||||
tenantId?: number;
|
||||
// 创建时间
|
||||
createTime?: string;
|
||||
// 修改时间
|
||||
updateTime?: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* 法律援助申请搜索条件
|
||||
*/
|
||||
export interface LawLegalAidParam extends PageParam {
|
||||
id?: number;
|
||||
keywords?: string;
|
||||
}
|
||||
@@ -1,106 +0,0 @@
|
||||
import request from '@/utils/request';
|
||||
import type { ApiResult, PageResult } from '@/api';
|
||||
import type { LawLegalAppraisal, LawLegalAppraisalParam } from './model';
|
||||
import { MODULES_API_URL } from '@/config/setting';
|
||||
|
||||
/**
|
||||
* 分页查询司法鉴定申请
|
||||
*/
|
||||
export async function pageLawLegalAppraisal(params: LawLegalAppraisalParam) {
|
||||
const res = await request.get<ApiResult<PageResult<LawLegalAppraisal>>>(
|
||||
MODULES_API_URL + '/law/law-legal-appraisal/page',
|
||||
{
|
||||
params
|
||||
}
|
||||
);
|
||||
if (res.data.code === 0) {
|
||||
return res.data.data;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询司法鉴定申请列表
|
||||
*/
|
||||
export async function listLawLegalAppraisal(params?: LawLegalAppraisalParam) {
|
||||
const res = await request.get<ApiResult<LawLegalAppraisal[]>>(
|
||||
MODULES_API_URL + '/law/law-legal-appraisal',
|
||||
{
|
||||
params
|
||||
}
|
||||
);
|
||||
if (res.data.code === 0 && res.data.data) {
|
||||
return res.data.data;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 添加司法鉴定申请
|
||||
*/
|
||||
export async function addLawLegalAppraisal(data: LawLegalAppraisal) {
|
||||
const res = await request.post<ApiResult<unknown>>(
|
||||
MODULES_API_URL + '/law/law-legal-appraisal',
|
||||
data
|
||||
);
|
||||
if (res.data.code === 0) {
|
||||
return res.data.message;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改司法鉴定申请
|
||||
*/
|
||||
export async function updateLawLegalAppraisal(data: LawLegalAppraisal) {
|
||||
const res = await request.put<ApiResult<unknown>>(
|
||||
MODULES_API_URL + '/law/law-legal-appraisal',
|
||||
data
|
||||
);
|
||||
if (res.data.code === 0) {
|
||||
return res.data.message;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除司法鉴定申请
|
||||
*/
|
||||
export async function removeLawLegalAppraisal(id?: number) {
|
||||
const res = await request.delete<ApiResult<unknown>>(
|
||||
MODULES_API_URL + '/law/law-legal-appraisal/' + id
|
||||
);
|
||||
if (res.data.code === 0) {
|
||||
return res.data.message;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除司法鉴定申请
|
||||
*/
|
||||
export async function removeBatchLawLegalAppraisal(data: (number | undefined)[]) {
|
||||
const res = await request.delete<ApiResult<unknown>>(
|
||||
MODULES_API_URL + '/law/law-legal-appraisal/batch',
|
||||
{
|
||||
data
|
||||
}
|
||||
);
|
||||
if (res.data.code === 0) {
|
||||
return res.data.message;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据id查询司法鉴定申请
|
||||
*/
|
||||
export async function getLawLegalAppraisal(id: number) {
|
||||
const res = await request.get<ApiResult<LawLegalAppraisal>>(
|
||||
MODULES_API_URL + '/law/law-legal-appraisal/' + id
|
||||
);
|
||||
if (res.data.code === 0 && res.data.data) {
|
||||
return res.data.data;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
@@ -1,47 +0,0 @@
|
||||
import type { PageParam } from '@/api';
|
||||
|
||||
/**
|
||||
* 司法鉴定申请
|
||||
*/
|
||||
export interface LawLegalAppraisal {
|
||||
//
|
||||
id?: number;
|
||||
//
|
||||
userId?: number;
|
||||
//
|
||||
name?: string;
|
||||
//
|
||||
gender?: number;
|
||||
//
|
||||
phone?: string;
|
||||
//
|
||||
birthday?: string;
|
||||
//
|
||||
idCard?: string;
|
||||
// 住所地址
|
||||
liveAddress?: string;
|
||||
// 户籍地址
|
||||
householdAddress?: string;
|
||||
//
|
||||
orgId?: number;
|
||||
// 说明
|
||||
content?: string;
|
||||
// 详情
|
||||
detail?: string;
|
||||
// 是否删除, 0否, 1是
|
||||
deleted?: number;
|
||||
// 租户id
|
||||
tenantId?: number;
|
||||
// 创建时间
|
||||
createTime?: string;
|
||||
// 修改时间
|
||||
updateTime?: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* 司法鉴定申请搜索条件
|
||||
*/
|
||||
export interface LawLegalAppraisalParam extends PageParam {
|
||||
id?: number;
|
||||
keywords?: string;
|
||||
}
|
||||
@@ -1,116 +0,0 @@
|
||||
import request from '@/utils/request';
|
||||
import type { ApiResult, PageResult } from '@/api';
|
||||
import type { LawLegalArbitrate, LawLegalArbitrateParam } from './model';
|
||||
import { MODULES_API_URL } from '@/config/setting';
|
||||
|
||||
/**
|
||||
* 分页查询法律仲裁申请
|
||||
*/
|
||||
export async function pageLawLegalArbitrate(params: LawLegalArbitrateParam) {
|
||||
const res = await request.get<ApiResult<PageResult<LawLegalArbitrate>>>(
|
||||
MODULES_API_URL + '/law/law-legal-arbitrate/page',
|
||||
{
|
||||
params
|
||||
}
|
||||
);
|
||||
if (res.data.code === 0) {
|
||||
return res.data.data;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询法律仲裁申请列表
|
||||
*/
|
||||
export async function listLawLegalArbitrate(params?: LawLegalArbitrateParam) {
|
||||
const res = await request.get<ApiResult<LawLegalArbitrate[]>>(
|
||||
MODULES_API_URL + '/law/law-legal-arbitrate',
|
||||
{
|
||||
params
|
||||
}
|
||||
);
|
||||
if (res.data.code === 0 && res.data.data) {
|
||||
return res.data.data;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 添加法律仲裁申请
|
||||
*/
|
||||
export async function addLawLegalArbitrate(data: LawLegalArbitrate) {
|
||||
const res = await request.post<ApiResult<unknown>>(
|
||||
MODULES_API_URL + '/law/law-legal-arbitrate',
|
||||
data
|
||||
);
|
||||
if (res.data.code === 0) {
|
||||
return res.data.message;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改法律仲裁申请
|
||||
*/
|
||||
export async function updateLawLegalArbitrate(data: LawLegalArbitrate) {
|
||||
const res = await request.put<ApiResult<unknown>>(
|
||||
MODULES_API_URL + '/law/law-legal-arbitrate',
|
||||
data
|
||||
);
|
||||
if (res.data.code === 0) {
|
||||
return res.data.message;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除法律仲裁申请
|
||||
*/
|
||||
export async function removeLawLegalArbitrate(id?: number) {
|
||||
const res = await request.delete<ApiResult<unknown>>(
|
||||
MODULES_API_URL + '/law/law-legal-arbitrate/' + id
|
||||
);
|
||||
if (res.data.code === 0) {
|
||||
return res.data.message;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除法律仲裁申请
|
||||
*/
|
||||
export async function removeBatchLawLegalArbitrate(data: (number | undefined)[]) {
|
||||
const res = await request.delete<ApiResult<unknown>>(
|
||||
MODULES_API_URL + '/law/law-legal-arbitrate/batch',
|
||||
{
|
||||
data
|
||||
}
|
||||
);
|
||||
if (res.data.code === 0) {
|
||||
return res.data.message;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据id查询法律仲裁申请
|
||||
*/
|
||||
export async function getLawLegalArbitrate(id: number) {
|
||||
const res = await request.get<ApiResult<LawLegalArbitrate>>(
|
||||
MODULES_API_URL + '/law/law-legal-arbitrate/' + id
|
||||
);
|
||||
if (res.data.code === 0 && res.data.data) {
|
||||
return res.data.data;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
export async function lawLegalArbitrateExport() {
|
||||
const res = await request.post<ApiResult<LawLegalArbitrate>>(
|
||||
MODULES_API_URL + '/law/law-legal-arbitrate/export'
|
||||
);
|
||||
if (res.data.code === 0) {
|
||||
return res.data;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
@@ -1,57 +0,0 @@
|
||||
import type { PageParam } from '@/api';
|
||||
|
||||
/**
|
||||
* 法律仲裁申请
|
||||
*/
|
||||
export interface LawLegalArbitrate {
|
||||
//
|
||||
id?: number;
|
||||
//
|
||||
userId?: number;
|
||||
//
|
||||
name?: string;
|
||||
//
|
||||
gender?: number;
|
||||
//
|
||||
phone?: string;
|
||||
//
|
||||
birthday?: string;
|
||||
//
|
||||
idCard?: string;
|
||||
// 住所地址
|
||||
liveAddress?: string;
|
||||
// 户籍地址
|
||||
householdAddress?: string;
|
||||
// 事实和理由
|
||||
content?: string;
|
||||
// 仲裁请求
|
||||
requestContent?: string;
|
||||
// 被申请人
|
||||
beenName?: string;
|
||||
// 被申请人地址
|
||||
beenAddress?: string;
|
||||
// 被申请人代码
|
||||
beenCode?: string;
|
||||
// 被申请人联系方式
|
||||
beenPhone?: string;
|
||||
// 法定代表人
|
||||
beenLegalName?: string;
|
||||
// 职位
|
||||
beenLegalPosition?: string;
|
||||
// 是否删除, 0否, 1是
|
||||
deleted?: number;
|
||||
// 租户id
|
||||
tenantId?: number;
|
||||
// 创建时间
|
||||
createTime?: string;
|
||||
// 修改时间
|
||||
updateTime?: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* 法律仲裁申请搜索条件
|
||||
*/
|
||||
export interface LawLegalArbitrateParam extends PageParam {
|
||||
id?: number;
|
||||
keywords?: string;
|
||||
}
|
||||
@@ -1,106 +0,0 @@
|
||||
import request from '@/utils/request';
|
||||
import type { ApiResult, PageResult } from '@/api';
|
||||
import type { LawLegalCalConfig, LawLegalCalConfigParam } from './model';
|
||||
import { MODULES_API_URL } from '@/config/setting';
|
||||
|
||||
/**
|
||||
* 分页查询法律计算器配置
|
||||
*/
|
||||
export async function pageLawLegalCalConfig(params: LawLegalCalConfigParam) {
|
||||
const res = await request.get<ApiResult<PageResult<LawLegalCalConfig>>>(
|
||||
MODULES_API_URL + '/law/law-legal-cal-config/page',
|
||||
{
|
||||
params
|
||||
}
|
||||
);
|
||||
if (res.data.code === 0) {
|
||||
return res.data.data;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询法律计算器配置列表
|
||||
*/
|
||||
export async function listLawLegalCalConfig(params?: LawLegalCalConfigParam) {
|
||||
const res = await request.get<ApiResult<LawLegalCalConfig[]>>(
|
||||
MODULES_API_URL + '/law/law-legal-cal-config',
|
||||
{
|
||||
params
|
||||
}
|
||||
);
|
||||
if (res.data.code === 0 && res.data.data) {
|
||||
return res.data.data;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 添加法律计算器配置
|
||||
*/
|
||||
export async function addLawLegalCalConfig(data: LawLegalCalConfig) {
|
||||
const res = await request.post<ApiResult<unknown>>(
|
||||
MODULES_API_URL + '/law/law-legal-cal-config',
|
||||
data
|
||||
);
|
||||
if (res.data.code === 0) {
|
||||
return res.data.message;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改法律计算器配置
|
||||
*/
|
||||
export async function updateLawLegalCalConfig(data: LawLegalCalConfig) {
|
||||
const res = await request.put<ApiResult<unknown>>(
|
||||
MODULES_API_URL + '/law/law-legal-cal-config',
|
||||
data
|
||||
);
|
||||
if (res.data.code === 0) {
|
||||
return res.data.message;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除法律计算器配置
|
||||
*/
|
||||
export async function removeLawLegalCalConfig(id?: number) {
|
||||
const res = await request.delete<ApiResult<unknown>>(
|
||||
MODULES_API_URL + '/law/law-legal-cal-config/' + id
|
||||
);
|
||||
if (res.data.code === 0) {
|
||||
return res.data.message;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除法律计算器配置
|
||||
*/
|
||||
export async function removeBatchLawLegalCalConfig(data: (number | undefined)[]) {
|
||||
const res = await request.delete<ApiResult<unknown>>(
|
||||
MODULES_API_URL + '/law/law-legal-cal-config/batch',
|
||||
{
|
||||
data
|
||||
}
|
||||
);
|
||||
if (res.data.code === 0) {
|
||||
return res.data.message;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据id查询法律计算器配置
|
||||
*/
|
||||
export async function getLawLegalCalConfig(id: number) {
|
||||
const res = await request.get<ApiResult<LawLegalCalConfig>>(
|
||||
MODULES_API_URL + '/law/law-legal-cal-config/' + id
|
||||
);
|
||||
if (res.data.code === 0 && res.data.data) {
|
||||
return res.data.data;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
@@ -1,106 +0,0 @@
|
||||
import request from '@/utils/request';
|
||||
import type { ApiResult, PageResult } from '@/api';
|
||||
import type { LawLegalCalContent, LawLegalCalContentParam } from './model';
|
||||
import { MODULES_API_URL } from '@/config/setting';
|
||||
|
||||
/**
|
||||
* 分页查询用户填写法律计算器内容
|
||||
*/
|
||||
export async function pageLawLegalCalContent(params: LawLegalCalContentParam) {
|
||||
const res = await request.get<ApiResult<PageResult<LawLegalCalContent>>>(
|
||||
MODULES_API_URL + '/law/law-legal-cal-content/page',
|
||||
{
|
||||
params
|
||||
}
|
||||
);
|
||||
if (res.data.code === 0) {
|
||||
return res.data.data;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询用户填写法律计算器内容列表
|
||||
*/
|
||||
export async function listLawLegalCalContent(params?: LawLegalCalContentParam) {
|
||||
const res = await request.get<ApiResult<LawLegalCalContent[]>>(
|
||||
MODULES_API_URL + '/law/law-legal-cal-content',
|
||||
{
|
||||
params
|
||||
}
|
||||
);
|
||||
if (res.data.code === 0 && res.data.data) {
|
||||
return res.data.data;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 添加用户填写法律计算器内容
|
||||
*/
|
||||
export async function addLawLegalCalContent(data: LawLegalCalContent) {
|
||||
const res = await request.post<ApiResult<unknown>>(
|
||||
MODULES_API_URL + '/law/law-legal-cal-content',
|
||||
data
|
||||
);
|
||||
if (res.data.code === 0) {
|
||||
return res.data.message;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改用户填写法律计算器内容
|
||||
*/
|
||||
export async function updateLawLegalCalContent(data: LawLegalCalContent) {
|
||||
const res = await request.put<ApiResult<unknown>>(
|
||||
MODULES_API_URL + '/law/law-legal-cal-content',
|
||||
data
|
||||
);
|
||||
if (res.data.code === 0) {
|
||||
return res.data.message;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除用户填写法律计算器内容
|
||||
*/
|
||||
export async function removeLawLegalCalContent(id?: number) {
|
||||
const res = await request.delete<ApiResult<unknown>>(
|
||||
MODULES_API_URL + '/law/law-legal-cal-content/' + id
|
||||
);
|
||||
if (res.data.code === 0) {
|
||||
return res.data.message;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除用户填写法律计算器内容
|
||||
*/
|
||||
export async function removeBatchLawLegalCalContent(data: (number | undefined)[]) {
|
||||
const res = await request.delete<ApiResult<unknown>>(
|
||||
MODULES_API_URL + '/law/law-legal-cal-content/batch',
|
||||
{
|
||||
data
|
||||
}
|
||||
);
|
||||
if (res.data.code === 0) {
|
||||
return res.data.message;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据id查询用户填写法律计算器内容
|
||||
*/
|
||||
export async function getLawLegalCalContent(id: number) {
|
||||
const res = await request.get<ApiResult<LawLegalCalContent>>(
|
||||
MODULES_API_URL + '/law/law-legal-cal-content/' + id
|
||||
);
|
||||
if (res.data.code === 0 && res.data.data) {
|
||||
return res.data.data;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
@@ -1,31 +0,0 @@
|
||||
import type { PageParam } from '@/api';
|
||||
|
||||
/**
|
||||
* 用户填写法律计算器内容
|
||||
*/
|
||||
export interface LawLegalCalContent {
|
||||
//
|
||||
id?: number;
|
||||
//
|
||||
groupId?: number;
|
||||
//
|
||||
content?: string;
|
||||
//
|
||||
userId?: number;
|
||||
// 是否删除, 0否, 1是
|
||||
deleted?: number;
|
||||
// 租户id
|
||||
tenantId?: number;
|
||||
// 创建时间
|
||||
createTime?: string;
|
||||
// 修改时间
|
||||
updateTime?: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* 用户填写法律计算器内容搜索条件
|
||||
*/
|
||||
export interface LawLegalCalContentParam extends PageParam {
|
||||
id?: number;
|
||||
keywords?: string;
|
||||
}
|
||||
@@ -1,106 +0,0 @@
|
||||
import request from '@/utils/request';
|
||||
import type { ApiResult, PageResult } from '@/api';
|
||||
import type { LawLegalCalType, LawLegalCalTypeParam } from './model';
|
||||
import { MODULES_API_URL } from '@/config/setting';
|
||||
|
||||
/**
|
||||
* 分页查询法律计算器配置
|
||||
*/
|
||||
export async function pageLawLegalCalType(params: LawLegalCalTypeParam) {
|
||||
const res = await request.get<ApiResult<PageResult<LawLegalCalType>>>(
|
||||
MODULES_API_URL + '/law/law-legal-cal-type/page',
|
||||
{
|
||||
params
|
||||
}
|
||||
);
|
||||
if (res.data.code === 0) {
|
||||
return res.data.data;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询法律计算器配置列表
|
||||
*/
|
||||
export async function listLawLegalCalType(params?: LawLegalCalTypeParam) {
|
||||
const res = await request.get<ApiResult<LawLegalCalType[]>>(
|
||||
MODULES_API_URL + '/law/law-legal-cal-type',
|
||||
{
|
||||
params
|
||||
}
|
||||
);
|
||||
if (res.data.code === 0 && res.data.data) {
|
||||
return res.data.data;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 添加法律计算器配置
|
||||
*/
|
||||
export async function addLawLegalCalType(data: LawLegalCalType) {
|
||||
const res = await request.post<ApiResult<unknown>>(
|
||||
MODULES_API_URL + '/law/law-legal-cal-type',
|
||||
data
|
||||
);
|
||||
if (res.data.code === 0) {
|
||||
return res.data.message;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改法律计算器配置
|
||||
*/
|
||||
export async function updateLawLegalCalType(data: LawLegalCalType) {
|
||||
const res = await request.put<ApiResult<unknown>>(
|
||||
MODULES_API_URL + '/law/law-legal-cal-type',
|
||||
data
|
||||
);
|
||||
if (res.data.code === 0) {
|
||||
return res.data.message;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除法律计算器配置
|
||||
*/
|
||||
export async function removeLawLegalCalType(id?: number) {
|
||||
const res = await request.delete<ApiResult<unknown>>(
|
||||
MODULES_API_URL + '/law/law-legal-cal-type/' + id
|
||||
);
|
||||
if (res.data.code === 0) {
|
||||
return res.data.message;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除法律计算器配置
|
||||
*/
|
||||
export async function removeBatchLawLegalCalType(data: (number | undefined)[]) {
|
||||
const res = await request.delete<ApiResult<unknown>>(
|
||||
MODULES_API_URL + '/law/law-legal-cal-type/batch',
|
||||
{
|
||||
data
|
||||
}
|
||||
);
|
||||
if (res.data.code === 0) {
|
||||
return res.data.message;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据id查询法律计算器配置
|
||||
*/
|
||||
export async function getLawLegalCalType(id: number) {
|
||||
const res = await request.get<ApiResult<LawLegalCalType>>(
|
||||
MODULES_API_URL + '/law/law-legal-cal-type/' + id
|
||||
);
|
||||
if (res.data.code === 0 && res.data.data) {
|
||||
return res.data.data;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
@@ -1,106 +0,0 @@
|
||||
import request from '@/utils/request';
|
||||
import type { ApiResult, PageResult } from '@/api';
|
||||
import type { LawLegalDocConfig, LawLegalDocConfigParam } from './model';
|
||||
import { MODULES_API_URL } from '@/config/setting';
|
||||
|
||||
/**
|
||||
* 分页查询法律文书配置
|
||||
*/
|
||||
export async function pageLawLegalDocConfig(params: LawLegalDocConfigParam) {
|
||||
const res = await request.get<ApiResult<PageResult<LawLegalDocConfig>>>(
|
||||
MODULES_API_URL + '/law/law-legal-doc-config/page',
|
||||
{
|
||||
params
|
||||
}
|
||||
);
|
||||
if (res.data.code === 0) {
|
||||
return res.data.data;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询法律文书配置列表
|
||||
*/
|
||||
export async function listLawLegalDocConfig(params?: LawLegalDocConfigParam) {
|
||||
const res = await request.get<ApiResult<LawLegalDocConfig[]>>(
|
||||
MODULES_API_URL + '/law/law-legal-doc-config',
|
||||
{
|
||||
params
|
||||
}
|
||||
);
|
||||
if (res.data.code === 0 && res.data.data) {
|
||||
return res.data.data;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 添加法律文书配置
|
||||
*/
|
||||
export async function addLawLegalDocConfig(data: LawLegalDocConfig) {
|
||||
const res = await request.post<ApiResult<unknown>>(
|
||||
MODULES_API_URL + '/law/law-legal-doc-config',
|
||||
data
|
||||
);
|
||||
if (res.data.code === 0) {
|
||||
return res.data.message;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改法律文书配置
|
||||
*/
|
||||
export async function updateLawLegalDocConfig(data: LawLegalDocConfig) {
|
||||
const res = await request.put<ApiResult<unknown>>(
|
||||
MODULES_API_URL + '/law/law-legal-doc-config',
|
||||
data
|
||||
);
|
||||
if (res.data.code === 0) {
|
||||
return res.data.message;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除法律文书配置
|
||||
*/
|
||||
export async function removeLawLegalDocConfig(id?: number) {
|
||||
const res = await request.delete<ApiResult<unknown>>(
|
||||
MODULES_API_URL + '/law/law-legal-doc-config/' + id
|
||||
);
|
||||
if (res.data.code === 0) {
|
||||
return res.data.message;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除法律文书配置
|
||||
*/
|
||||
export async function removeBatchLawLegalDocConfig(data: (number | undefined)[]) {
|
||||
const res = await request.delete<ApiResult<unknown>>(
|
||||
MODULES_API_URL + '/law/law-legal-doc-config/batch',
|
||||
{
|
||||
data
|
||||
}
|
||||
);
|
||||
if (res.data.code === 0) {
|
||||
return res.data.message;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据id查询法律文书配置
|
||||
*/
|
||||
export async function getLawLegalDocConfig(id: number) {
|
||||
const res = await request.get<ApiResult<LawLegalDocConfig>>(
|
||||
MODULES_API_URL + '/law/law-legal-doc-config/' + id
|
||||
);
|
||||
if (res.data.code === 0 && res.data.data) {
|
||||
return res.data.data;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
@@ -1,35 +0,0 @@
|
||||
import type { PageParam } from '@/api';
|
||||
|
||||
/**
|
||||
* 法律文书配置
|
||||
*/
|
||||
export interface LawLegalDocConfig {
|
||||
//
|
||||
id?: number;
|
||||
//
|
||||
typeId?: number;
|
||||
//
|
||||
title?: string;
|
||||
// 类型
|
||||
type?: string;
|
||||
// 内容
|
||||
answer?: string;
|
||||
//
|
||||
userId?: number;
|
||||
// 是否删除, 0否, 1是
|
||||
deleted?: number;
|
||||
// 租户id
|
||||
tenantId?: number;
|
||||
// 创建时间
|
||||
createTime?: string;
|
||||
// 修改时间
|
||||
updateTime?: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* 法律文书配置搜索条件
|
||||
*/
|
||||
export interface LawLegalDocConfigParam extends PageParam {
|
||||
id?: number;
|
||||
keywords?: string;
|
||||
}
|
||||
@@ -1,106 +0,0 @@
|
||||
import request from '@/utils/request';
|
||||
import type { ApiResult, PageResult } from '@/api';
|
||||
import type { LawLegalDocContent, LawLegalDocContentParam } from './model';
|
||||
import { MODULES_API_URL } from '@/config/setting';
|
||||
|
||||
/**
|
||||
* 分页查询用户填写法律文书内容
|
||||
*/
|
||||
export async function pageLawLegalDocContent(params: LawLegalDocContentParam) {
|
||||
const res = await request.get<ApiResult<PageResult<LawLegalDocContent>>>(
|
||||
MODULES_API_URL + '/law/law-legal-doc-content/page',
|
||||
{
|
||||
params
|
||||
}
|
||||
);
|
||||
if (res.data.code === 0) {
|
||||
return res.data.data;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询用户填写法律文书内容列表
|
||||
*/
|
||||
export async function listLawLegalDocContent(params?: LawLegalDocContentParam) {
|
||||
const res = await request.get<ApiResult<LawLegalDocContent[]>>(
|
||||
MODULES_API_URL + '/law/law-legal-doc-content',
|
||||
{
|
||||
params
|
||||
}
|
||||
);
|
||||
if (res.data.code === 0 && res.data.data) {
|
||||
return res.data.data;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 添加用户填写法律文书内容
|
||||
*/
|
||||
export async function addLawLegalDocContent(data: LawLegalDocContent) {
|
||||
const res = await request.post<ApiResult<unknown>>(
|
||||
MODULES_API_URL + '/law/law-legal-doc-content',
|
||||
data
|
||||
);
|
||||
if (res.data.code === 0) {
|
||||
return res.data.message;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改用户填写法律文书内容
|
||||
*/
|
||||
export async function updateLawLegalDocContent(data: LawLegalDocContent) {
|
||||
const res = await request.put<ApiResult<unknown>>(
|
||||
MODULES_API_URL + '/law/law-legal-doc-content',
|
||||
data
|
||||
);
|
||||
if (res.data.code === 0) {
|
||||
return res.data.message;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除用户填写法律文书内容
|
||||
*/
|
||||
export async function removeLawLegalDocContent(id?: number) {
|
||||
const res = await request.delete<ApiResult<unknown>>(
|
||||
MODULES_API_URL + '/law/law-legal-doc-content/' + id
|
||||
);
|
||||
if (res.data.code === 0) {
|
||||
return res.data.message;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除用户填写法律文书内容
|
||||
*/
|
||||
export async function removeBatchLawLegalDocContent(data: (number | undefined)[]) {
|
||||
const res = await request.delete<ApiResult<unknown>>(
|
||||
MODULES_API_URL + '/law/law-legal-doc-content/batch',
|
||||
{
|
||||
data
|
||||
}
|
||||
);
|
||||
if (res.data.code === 0) {
|
||||
return res.data.message;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据id查询用户填写法律文书内容
|
||||
*/
|
||||
export async function getLawLegalDocContent(id: number) {
|
||||
const res = await request.get<ApiResult<LawLegalDocContent>>(
|
||||
MODULES_API_URL + '/law/law-legal-doc-content/' + id
|
||||
);
|
||||
if (res.data.code === 0 && res.data.data) {
|
||||
return res.data.data;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
@@ -1,106 +0,0 @@
|
||||
import request from '@/utils/request';
|
||||
import type { ApiResult, PageResult } from '@/api';
|
||||
import type { LawLegalDocType, LawLegalDocTypeParam } from './model';
|
||||
import { MODULES_API_URL } from '@/config/setting';
|
||||
|
||||
/**
|
||||
* 分页查询法律文书配置
|
||||
*/
|
||||
export async function pageLawLegalDocType(params: LawLegalDocTypeParam) {
|
||||
const res = await request.get<ApiResult<PageResult<LawLegalDocType>>>(
|
||||
MODULES_API_URL + '/law/law-legal-doc-type/page',
|
||||
{
|
||||
params
|
||||
}
|
||||
);
|
||||
if (res.data.code === 0) {
|
||||
return res.data.data;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询法律文书配置列表
|
||||
*/
|
||||
export async function listLawLegalDocType(params?: LawLegalDocTypeParam) {
|
||||
const res = await request.get<ApiResult<LawLegalDocType[]>>(
|
||||
MODULES_API_URL + '/law/law-legal-doc-type',
|
||||
{
|
||||
params
|
||||
}
|
||||
);
|
||||
if (res.data.code === 0 && res.data.data) {
|
||||
return res.data.data;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 添加法律文书配置
|
||||
*/
|
||||
export async function addLawLegalDocType(data: LawLegalDocType) {
|
||||
const res = await request.post<ApiResult<unknown>>(
|
||||
MODULES_API_URL + '/law/law-legal-doc-type',
|
||||
data
|
||||
);
|
||||
if (res.data.code === 0) {
|
||||
return res.data.message;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改法律文书配置
|
||||
*/
|
||||
export async function updateLawLegalDocType(data: LawLegalDocType) {
|
||||
const res = await request.put<ApiResult<unknown>>(
|
||||
MODULES_API_URL + '/law/law-legal-doc-type',
|
||||
data
|
||||
);
|
||||
if (res.data.code === 0) {
|
||||
return res.data.message;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除法律文书配置
|
||||
*/
|
||||
export async function removeLawLegalDocType(id?: number) {
|
||||
const res = await request.delete<ApiResult<unknown>>(
|
||||
MODULES_API_URL + '/law/law-legal-doc-type/' + id
|
||||
);
|
||||
if (res.data.code === 0) {
|
||||
return res.data.message;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除法律文书配置
|
||||
*/
|
||||
export async function removeBatchLawLegalDocType(data: (number | undefined)[]) {
|
||||
const res = await request.delete<ApiResult<unknown>>(
|
||||
MODULES_API_URL + '/law/law-legal-doc-type/batch',
|
||||
{
|
||||
data
|
||||
}
|
||||
);
|
||||
if (res.data.code === 0) {
|
||||
return res.data.message;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据id查询法律文书配置
|
||||
*/
|
||||
export async function getLawLegalDocType(id: number) {
|
||||
const res = await request.get<ApiResult<LawLegalDocType>>(
|
||||
MODULES_API_URL + '/law/law-legal-doc-type/' + id
|
||||
);
|
||||
if (res.data.code === 0 && res.data.data) {
|
||||
return res.data.data;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
@@ -1,106 +0,0 @@
|
||||
import request from '@/utils/request';
|
||||
import type { ApiResult, PageResult } from '@/api';
|
||||
import type { LawLegalOrgCheckConfig, LawLegalOrgCheckConfigParam } from './model';
|
||||
import { MODULES_API_URL } from '@/config/setting';
|
||||
|
||||
/**
|
||||
* 分页查询企业法制体检配置
|
||||
*/
|
||||
export async function pageLawLegalOrgCheckConfig(params: LawLegalOrgCheckConfigParam) {
|
||||
const res = await request.get<ApiResult<PageResult<LawLegalOrgCheckConfig>>>(
|
||||
MODULES_API_URL + '/law/law-legal-org-check-config/page',
|
||||
{
|
||||
params
|
||||
}
|
||||
);
|
||||
if (res.data.code === 0) {
|
||||
return res.data.data;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询企业法制体检配置列表
|
||||
*/
|
||||
export async function listLawLegalOrgCheckConfig(params?: LawLegalOrgCheckConfigParam) {
|
||||
const res = await request.get<ApiResult<LawLegalOrgCheckConfig[]>>(
|
||||
MODULES_API_URL + '/law/law-legal-org-check-config',
|
||||
{
|
||||
params
|
||||
}
|
||||
);
|
||||
if (res.data.code === 0 && res.data.data) {
|
||||
return res.data.data;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 添加企业法制体检配置
|
||||
*/
|
||||
export async function addLawLegalOrgCheckConfig(data: LawLegalOrgCheckConfig) {
|
||||
const res = await request.post<ApiResult<unknown>>(
|
||||
MODULES_API_URL + '/law/law-legal-org-check-config',
|
||||
data
|
||||
);
|
||||
if (res.data.code === 0) {
|
||||
return res.data.message;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改企业法制体检配置
|
||||
*/
|
||||
export async function updateLawLegalOrgCheckConfig(data: LawLegalOrgCheckConfig) {
|
||||
const res = await request.put<ApiResult<unknown>>(
|
||||
MODULES_API_URL + '/law/law-legal-org-check-config',
|
||||
data
|
||||
);
|
||||
if (res.data.code === 0) {
|
||||
return res.data.message;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除企业法制体检配置
|
||||
*/
|
||||
export async function removeLawLegalOrgCheckConfig(id?: number) {
|
||||
const res = await request.delete<ApiResult<unknown>>(
|
||||
MODULES_API_URL + '/law/law-legal-org-check-config/' + id
|
||||
);
|
||||
if (res.data.code === 0) {
|
||||
return res.data.message;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除企业法制体检配置
|
||||
*/
|
||||
export async function removeBatchLawLegalOrgCheckConfig(data: (number | undefined)[]) {
|
||||
const res = await request.delete<ApiResult<unknown>>(
|
||||
MODULES_API_URL + '/law/law-legal-org-check-config/batch',
|
||||
{
|
||||
data
|
||||
}
|
||||
);
|
||||
if (res.data.code === 0) {
|
||||
return res.data.message;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据id查询企业法制体检配置
|
||||
*/
|
||||
export async function getLawLegalOrgCheckConfig(id: number) {
|
||||
const res = await request.get<ApiResult<LawLegalOrgCheckConfig>>(
|
||||
MODULES_API_URL + '/law/law-legal-org-check-config/' + id
|
||||
);
|
||||
if (res.data.code === 0 && res.data.data) {
|
||||
return res.data.data;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
@@ -1,34 +0,0 @@
|
||||
import type { PageParam } from '@/api';
|
||||
|
||||
/**
|
||||
* 企业法制体检配置
|
||||
*/
|
||||
export interface LawLegalOrgCheckConfig {
|
||||
//
|
||||
id?: number;
|
||||
typeId?: number;
|
||||
//
|
||||
title?: string;
|
||||
// 类型
|
||||
type?: string;
|
||||
// 内容
|
||||
answer?: string;
|
||||
//
|
||||
userId?: number;
|
||||
// 是否删除, 0否, 1是
|
||||
deleted?: number;
|
||||
// 租户id
|
||||
tenantId?: number;
|
||||
// 创建时间
|
||||
createTime?: string;
|
||||
// 修改时间
|
||||
updateTime?: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* 企业法制体检配置搜索条件
|
||||
*/
|
||||
export interface LawLegalOrgCheckConfigParam extends PageParam {
|
||||
id?: number;
|
||||
keywords?: string;
|
||||
}
|
||||
@@ -1,119 +0,0 @@
|
||||
import request from '@/utils/request';
|
||||
import type { ApiResult, PageResult } from '@/api';
|
||||
import type { LawLegalOrgCheckConfigSuggest, LawLegalOrgCheckConfigSuggestParam } from './model';
|
||||
import { MODULES_API_URL } from '@/config/setting';
|
||||
|
||||
/**
|
||||
* 分页查询法律意见书配置
|
||||
*/
|
||||
export async function pageLawLegalOrgCheckConfigSuggest(params: LawLegalOrgCheckConfigSuggestParam) {
|
||||
const res = await request.get<ApiResult<PageResult<LawLegalOrgCheckConfigSuggest>>>(
|
||||
MODULES_API_URL + '/law/law-legal-org-check-config-suggest/page',
|
||||
{
|
||||
params
|
||||
}
|
||||
);
|
||||
if (res.data.code === 0) {
|
||||
return res.data.data;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询法律意见书配置列表
|
||||
*/
|
||||
export async function listLawLegalOrgCheckConfigSuggest(params?: LawLegalOrgCheckConfigSuggestParam) {
|
||||
const res = await request.get<ApiResult<LawLegalOrgCheckConfigSuggest[]>>(
|
||||
MODULES_API_URL + '/law/law-legal-org-check-config-suggest',
|
||||
{
|
||||
params
|
||||
}
|
||||
);
|
||||
if (res.data.code === 0 && res.data.data) {
|
||||
return res.data.data;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
export async function treeLawLegalOrgCheckConfigSuggest(params?: LawLegalOrgCheckConfigSuggestParam) {
|
||||
const res = await request.get<ApiResult<LawLegalOrgCheckConfigSuggest[]>>(
|
||||
MODULES_API_URL + '/law/law-legal-org-check-config-suggest/tree',
|
||||
{
|
||||
params
|
||||
}
|
||||
);
|
||||
if (res.data.code === 0 && res.data.data) {
|
||||
return res.data.data;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 添加法律意见书配置
|
||||
*/
|
||||
export async function addLawLegalOrgCheckConfigSuggest(data: LawLegalOrgCheckConfigSuggest) {
|
||||
const res = await request.post<ApiResult<unknown>>(
|
||||
MODULES_API_URL + '/law/law-legal-org-check-config-suggest',
|
||||
data
|
||||
);
|
||||
if (res.data.code === 0) {
|
||||
return res.data.message;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改法律意见书配置
|
||||
*/
|
||||
export async function updateLawLegalOrgCheckConfigSuggest(data: LawLegalOrgCheckConfigSuggest) {
|
||||
const res = await request.put<ApiResult<unknown>>(
|
||||
MODULES_API_URL + '/law/law-legal-org-check-config-suggest',
|
||||
data
|
||||
);
|
||||
if (res.data.code === 0) {
|
||||
return res.data.message;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除法律意见书配置
|
||||
*/
|
||||
export async function removeLawLegalOrgCheckConfigSuggest(id?: number) {
|
||||
const res = await request.delete<ApiResult<unknown>>(
|
||||
MODULES_API_URL + '/law/law-legal-org-check-config-suggest/' + id
|
||||
);
|
||||
if (res.data.code === 0) {
|
||||
return res.data.message;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除法律意见书配置
|
||||
*/
|
||||
export async function removeBatchLawLegalOrgCheckConfigSuggest(data: (number | undefined)[]) {
|
||||
const res = await request.delete<ApiResult<unknown>>(
|
||||
MODULES_API_URL + '/law/law-legal-org-check-config-suggest/batch',
|
||||
{
|
||||
data
|
||||
}
|
||||
);
|
||||
if (res.data.code === 0) {
|
||||
return res.data.message;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据id查询法律意见书配置
|
||||
*/
|
||||
export async function getLawLegalOrgCheckConfigSuggest(id: number) {
|
||||
const res = await request.get<ApiResult<LawLegalOrgCheckConfigSuggest>>(
|
||||
MODULES_API_URL + '/law/law-legal-org-check-config-suggest/' + id
|
||||
);
|
||||
if (res.data.code === 0 && res.data.data) {
|
||||
return res.data.data;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
@@ -1,35 +0,0 @@
|
||||
import type { PageParam } from '@/api';
|
||||
|
||||
/**
|
||||
* 法律意见书配置
|
||||
*/
|
||||
export interface LawLegalOrgCheckConfigSuggest {
|
||||
//
|
||||
id?: number;
|
||||
//
|
||||
typeId?: number;
|
||||
//
|
||||
title?: string;
|
||||
// 类型
|
||||
type?: string;
|
||||
// 内容
|
||||
answer?: string;
|
||||
//
|
||||
userId?: number;
|
||||
// 是否删除, 0否, 1是
|
||||
deleted?: number;
|
||||
// 租户id
|
||||
tenantId?: number;
|
||||
// 创建时间
|
||||
createTime?: string;
|
||||
// 修改时间
|
||||
updateTime?: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* 法律意见书配置搜索条件
|
||||
*/
|
||||
export interface LawLegalOrgCheckConfigSuggestParam extends PageParam {
|
||||
id?: number;
|
||||
keywords?: string;
|
||||
}
|
||||
@@ -1,106 +0,0 @@
|
||||
import request from '@/utils/request';
|
||||
import type { ApiResult, PageResult } from '@/api';
|
||||
import type { LawLegalOrgCheckContent, LawLegalOrgCheckContentParam } from './model';
|
||||
import { MODULES_API_URL } from '@/config/setting';
|
||||
|
||||
/**
|
||||
* 分页查询用户填写企业法制体检内容
|
||||
*/
|
||||
export async function pageLawLegalOrgCheckContent(params: LawLegalOrgCheckContentParam) {
|
||||
const res = await request.get<ApiResult<PageResult<LawLegalOrgCheckContent>>>(
|
||||
MODULES_API_URL + '/law/law-legal-org-check-content/page',
|
||||
{
|
||||
params
|
||||
}
|
||||
);
|
||||
if (res.data.code === 0) {
|
||||
return res.data.data;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询用户填写企业法制体检内容列表
|
||||
*/
|
||||
export async function listLawLegalOrgCheckContent(params?: LawLegalOrgCheckContentParam) {
|
||||
const res = await request.get<ApiResult<LawLegalOrgCheckContent[]>>(
|
||||
MODULES_API_URL + '/law/law-legal-org-check-content',
|
||||
{
|
||||
params
|
||||
}
|
||||
);
|
||||
if (res.data.code === 0 && res.data.data) {
|
||||
return res.data.data;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 添加用户填写企业法制体检内容
|
||||
*/
|
||||
export async function addLawLegalOrgCheckContent(data: LawLegalOrgCheckContent) {
|
||||
const res = await request.post<ApiResult<unknown>>(
|
||||
MODULES_API_URL + '/law/law-legal-org-check-content',
|
||||
data
|
||||
);
|
||||
if (res.data.code === 0) {
|
||||
return res.data.message;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改用户填写企业法制体检内容
|
||||
*/
|
||||
export async function updateLawLegalOrgCheckContent(data: LawLegalOrgCheckContent) {
|
||||
const res = await request.put<ApiResult<unknown>>(
|
||||
MODULES_API_URL + '/law/law-legal-org-check-content',
|
||||
data
|
||||
);
|
||||
if (res.data.code === 0) {
|
||||
return res.data.message;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除用户填写企业法制体检内容
|
||||
*/
|
||||
export async function removeLawLegalOrgCheckContent(id?: number) {
|
||||
const res = await request.delete<ApiResult<unknown>>(
|
||||
MODULES_API_URL + '/law/law-legal-org-check-content/' + id
|
||||
);
|
||||
if (res.data.code === 0) {
|
||||
return res.data.message;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除用户填写企业法制体检内容
|
||||
*/
|
||||
export async function removeBatchLawLegalOrgCheckContent(data: (number | undefined)[]) {
|
||||
const res = await request.delete<ApiResult<unknown>>(
|
||||
MODULES_API_URL + '/law/law-legal-org-check-content/batch',
|
||||
{
|
||||
data
|
||||
}
|
||||
);
|
||||
if (res.data.code === 0) {
|
||||
return res.data.message;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据id查询用户填写企业法制体检内容
|
||||
*/
|
||||
export async function getLawLegalOrgCheckContent(id: number) {
|
||||
const res = await request.get<ApiResult<LawLegalOrgCheckContent>>(
|
||||
MODULES_API_URL + '/law/law-legal-org-check-content/' + id
|
||||
);
|
||||
if (res.data.code === 0 && res.data.data) {
|
||||
return res.data.data;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
@@ -1,31 +0,0 @@
|
||||
import type { PageParam } from '@/api';
|
||||
|
||||
/**
|
||||
* 用户填写企业法制体检内容
|
||||
*/
|
||||
export interface LawLegalOrgCheckContent {
|
||||
//
|
||||
id?: number;
|
||||
//
|
||||
groupId?: number;
|
||||
//
|
||||
content?: string;
|
||||
//
|
||||
userId?: number;
|
||||
// 是否删除, 0否, 1是
|
||||
deleted?: number;
|
||||
// 租户id
|
||||
tenantId?: number;
|
||||
// 创建时间
|
||||
createTime?: string;
|
||||
// 修改时间
|
||||
updateTime?: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* 用户填写企业法制体检内容搜索条件
|
||||
*/
|
||||
export interface LawLegalOrgCheckContentParam extends PageParam {
|
||||
id?: number;
|
||||
keywords?: string;
|
||||
}
|
||||
@@ -1,106 +0,0 @@
|
||||
import request from '@/utils/request';
|
||||
import type { ApiResult, PageResult } from '@/api';
|
||||
import type { LawLegalOrgCheckContentSuggest, LawLegalOrgCheckContentSuggestParam } from './model';
|
||||
import { MODULES_API_URL } from '@/config/setting';
|
||||
|
||||
/**
|
||||
* 分页查询用户填写法律意见书内容
|
||||
*/
|
||||
export async function pageLawLegalOrgCheckContentSuggest(params: LawLegalOrgCheckContentSuggestParam) {
|
||||
const res = await request.get<ApiResult<PageResult<LawLegalOrgCheckContentSuggest>>>(
|
||||
MODULES_API_URL + '/law/law-legal-org-check-content-suggest/page',
|
||||
{
|
||||
params
|
||||
}
|
||||
);
|
||||
if (res.data.code === 0) {
|
||||
return res.data.data;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询用户填写法律意见书内容列表
|
||||
*/
|
||||
export async function listLawLegalOrgCheckContentSuggest(params?: LawLegalOrgCheckContentSuggestParam) {
|
||||
const res = await request.get<ApiResult<LawLegalOrgCheckContentSuggest[]>>(
|
||||
MODULES_API_URL + '/law/law-legal-org-check-content-suggest',
|
||||
{
|
||||
params
|
||||
}
|
||||
);
|
||||
if (res.data.code === 0 && res.data.data) {
|
||||
return res.data.data;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 添加用户填写法律意见书内容
|
||||
*/
|
||||
export async function addLawLegalOrgCheckContentSuggest(data: LawLegalOrgCheckContentSuggest) {
|
||||
const res = await request.post<ApiResult<unknown>>(
|
||||
MODULES_API_URL + '/law/law-legal-org-check-content-suggest',
|
||||
data
|
||||
);
|
||||
if (res.data.code === 0) {
|
||||
return res.data.message;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改用户填写法律意见书内容
|
||||
*/
|
||||
export async function updateLawLegalOrgCheckContentSuggest(data: LawLegalOrgCheckContentSuggest) {
|
||||
const res = await request.put<ApiResult<unknown>>(
|
||||
MODULES_API_URL + '/law/law-legal-org-check-content-suggest',
|
||||
data
|
||||
);
|
||||
if (res.data.code === 0) {
|
||||
return res.data.message;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除用户填写法律意见书内容
|
||||
*/
|
||||
export async function removeLawLegalOrgCheckContentSuggest(id?: number) {
|
||||
const res = await request.delete<ApiResult<unknown>>(
|
||||
MODULES_API_URL + '/law/law-legal-org-check-content-suggest/' + id
|
||||
);
|
||||
if (res.data.code === 0) {
|
||||
return res.data.message;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除用户填写法律意见书内容
|
||||
*/
|
||||
export async function removeBatchLawLegalOrgCheckContentSuggest(data: (number | undefined)[]) {
|
||||
const res = await request.delete<ApiResult<unknown>>(
|
||||
MODULES_API_URL + '/law/law-legal-org-check-content-suggest/batch',
|
||||
{
|
||||
data
|
||||
}
|
||||
);
|
||||
if (res.data.code === 0) {
|
||||
return res.data.message;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据id查询用户填写法律意见书内容
|
||||
*/
|
||||
export async function getLawLegalOrgCheckContentSuggest(id: number) {
|
||||
const res = await request.get<ApiResult<LawLegalOrgCheckContentSuggest>>(
|
||||
MODULES_API_URL + '/law/law-legal-org-check-content-suggest/' + id
|
||||
);
|
||||
if (res.data.code === 0 && res.data.data) {
|
||||
return res.data.data;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
@@ -1,31 +0,0 @@
|
||||
import type { PageParam } from '@/api';
|
||||
|
||||
/**
|
||||
* 用户填写法律意见书内容
|
||||
*/
|
||||
export interface LawLegalOrgCheckContentSuggest {
|
||||
//
|
||||
id?: number;
|
||||
//
|
||||
groupId?: number;
|
||||
//
|
||||
content?: string;
|
||||
//
|
||||
userId?: number;
|
||||
// 是否删除, 0否, 1是
|
||||
deleted?: number;
|
||||
// 租户id
|
||||
tenantId?: number;
|
||||
// 创建时间
|
||||
createTime?: string;
|
||||
// 修改时间
|
||||
updateTime?: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* 用户填写法律意见书内容搜索条件
|
||||
*/
|
||||
export interface LawLegalOrgCheckContentSuggestParam extends PageParam {
|
||||
id?: number;
|
||||
keywords?: string;
|
||||
}
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user