20260325稳定版
This commit is contained in:
@@ -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));
|
||||
}
|
||||
@@ -1,19 +1,17 @@
|
||||
import type { PageParam } from '@/api';
|
||||
|
||||
/**
|
||||
* 法律计算器配置
|
||||
* 稿件
|
||||
*/
|
||||
export interface LawLegalCalType {
|
||||
export interface Manuscript {
|
||||
//
|
||||
id?: number;
|
||||
//
|
||||
icon?: string;
|
||||
//
|
||||
title?: string;
|
||||
// 类型
|
||||
sortNumber?: number;
|
||||
//
|
||||
userId?: number;
|
||||
content?: string;
|
||||
//
|
||||
cover?: string;
|
||||
// 是否删除, 0否, 1是
|
||||
deleted?: number;
|
||||
// 租户id
|
||||
@@ -22,12 +20,18 @@ export interface LawLegalCalType {
|
||||
createTime?: string;
|
||||
// 修改时间
|
||||
updateTime?: string;
|
||||
//
|
||||
userId?: number;
|
||||
//
|
||||
sortNumber?: number;
|
||||
// 待审核
|
||||
status?: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* 法律计算器配置搜索条件
|
||||
* 稿件搜索条件
|
||||
*/
|
||||
export interface LawLegalCalTypeParam 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;
|
||||
}
|
||||
@@ -1,14 +1,14 @@
|
||||
import request from '@/utils/request';
|
||||
import type { ApiResult, PageResult } from '@/api';
|
||||
import type { LawNotaryList, LawNotaryListParam } from './model';
|
||||
import type { GxChatHistory, GxChatHistoryParam } 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 pageGxChatHistory(params: GxChatHistoryParam) {
|
||||
const res = await request.get<ApiResult<PageResult<GxChatHistory>>>(
|
||||
MODULES_API_URL + '/gx/gx-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 listGxChatHistory(params?: GxChatHistoryParam) {
|
||||
const res = await request.get<ApiResult<GxChatHistory[]>>(
|
||||
MODULES_API_URL + '/gx/gx-chat-history',
|
||||
{
|
||||
params
|
||||
}
|
||||
@@ -36,11 +36,11 @@ export async function listLawNotaryList(params?: LawNotaryListParam) {
|
||||
}
|
||||
|
||||
/**
|
||||
* 添加公证列表
|
||||
* 添加
|
||||
*/
|
||||
export async function addLawNotaryList(data: LawNotaryList) {
|
||||
export async function addGxChatHistory(data: GxChatHistory) {
|
||||
const res = await request.post<ApiResult<unknown>>(
|
||||
MODULES_API_URL + '/law/law-notary-list',
|
||||
MODULES_API_URL + '/gx/gx-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 updateGxChatHistory(data: GxChatHistory) {
|
||||
const res = await request.put<ApiResult<unknown>>(
|
||||
MODULES_API_URL + '/law/law-notary-list',
|
||||
MODULES_API_URL + '/gx/gx-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 removeGxChatHistory(id?: number) {
|
||||
const res = await request.delete<ApiResult<unknown>>(
|
||||
MODULES_API_URL + '/law/law-notary-list/' + id
|
||||
MODULES_API_URL + '/gx/gx-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 removeBatchGxChatHistory(data: (number | undefined)[]) {
|
||||
const res = await request.delete<ApiResult<unknown>>(
|
||||
MODULES_API_URL + '/law/law-notary-list/batch',
|
||||
MODULES_API_URL + '/gx/gx-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 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;
|
||||
+15
-7
@@ -1,31 +1,39 @@
|
||||
import type { PageParam } from '@/api';
|
||||
|
||||
/**
|
||||
* 用户填写企业法制体检内容
|
||||
*
|
||||
*/
|
||||
export interface LawLegalOrgCheckContent {
|
||||
export interface GxChatHistory {
|
||||
//
|
||||
id?: number;
|
||||
//
|
||||
groupId?: number;
|
||||
chatId?: number;
|
||||
//
|
||||
conversationId?: string;
|
||||
//
|
||||
userId?: number;
|
||||
//
|
||||
content?: string;
|
||||
//
|
||||
userId?: number;
|
||||
reply?: string;
|
||||
// 状态, 0正常, 1冻结
|
||||
status?: number;
|
||||
// 是否删除, 0否, 1是
|
||||
deleted?: number;
|
||||
// 商户编码
|
||||
merchantCode?: string;
|
||||
// 租户id
|
||||
tenantId?: number;
|
||||
// 创建时间
|
||||
// 注册时间
|
||||
createTime?: string;
|
||||
// 修改时间
|
||||
updateTime?: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* 用户填写企业法制体检内容搜索条件
|
||||
* 搜索条件
|
||||
*/
|
||||
export interface LawLegalOrgCheckContentParam 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 { LawFeedback, LawFeedbackParam } from './model';
|
||||
import type { GxChatList, GxChatListParam } 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 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 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 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 listLawFeedback(params?: LawFeedbackParam) {
|
||||
/**
|
||||
* 添加
|
||||
*/
|
||||
export async function addLawFeedback(data: LawFeedback) {
|
||||
export async function addGxChatList(data: GxChatList) {
|
||||
const res = await request.post<ApiResult<unknown>>(
|
||||
MODULES_API_URL + '/law/law-feedback',
|
||||
MODULES_API_URL + '/gx/gx-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 updateGxChatList(data: GxChatList) {
|
||||
const res = await request.put<ApiResult<unknown>>(
|
||||
MODULES_API_URL + '/law/law-feedback',
|
||||
MODULES_API_URL + '/gx/gx-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 removeGxChatList(id?: number) {
|
||||
const res = await request.delete<ApiResult<unknown>>(
|
||||
MODULES_API_URL + '/law/law-feedback/' + 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 removeLawFeedback(id?: number) {
|
||||
/**
|
||||
* 批量删除
|
||||
*/
|
||||
export async function removeBatchLawFeedback(data: (number | undefined)[]) {
|
||||
export async function removeBatchGxChatList(data: (number | undefined)[]) {
|
||||
const res = await request.delete<ApiResult<unknown>>(
|
||||
MODULES_API_URL + '/law/law-feedback/batch',
|
||||
MODULES_API_URL + '/gx/gx-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 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;
|
||||
}
|
||||
@@ -1,14 +1,14 @@
|
||||
import request from '@/utils/request';
|
||||
import type { ApiResult, PageResult } from '@/api';
|
||||
import type { LawOrgPeople, LawOrgPeopleParam } from './model';
|
||||
import type { GxFeedback, GxFeedbackParam } 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 pageGxFeedback(params: GxFeedbackParam) {
|
||||
const res = await request.get<ApiResult<PageResult<GxFeedback>>>(
|
||||
MODULES_API_URL + '/gx/gx-feedback/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 listGxFeedback(params?: GxFeedbackParam) {
|
||||
const res = await request.get<ApiResult<GxFeedback[]>>(
|
||||
MODULES_API_URL + '/gx/gx-feedback',
|
||||
{
|
||||
params
|
||||
}
|
||||
@@ -38,9 +38,9 @@ export async function listLawOrgPeople(params?: LawOrgPeopleParam) {
|
||||
/**
|
||||
* 添加
|
||||
*/
|
||||
export async function addLawOrgPeople(data: LawOrgPeople) {
|
||||
export async function addGxFeedback(data: GxFeedback) {
|
||||
const res = await request.post<ApiResult<unknown>>(
|
||||
MODULES_API_URL + '/law/law-org-people',
|
||||
MODULES_API_URL + '/gx/gx-feedback',
|
||||
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 updateGxFeedback(data: GxFeedback) {
|
||||
const res = await request.put<ApiResult<unknown>>(
|
||||
MODULES_API_URL + '/law/law-org-people',
|
||||
MODULES_API_URL + '/gx/gx-feedback',
|
||||
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 removeGxFeedback(id?: number) {
|
||||
const res = await request.delete<ApiResult<unknown>>(
|
||||
MODULES_API_URL + '/law/law-org-people/' + id
|
||||
MODULES_API_URL + '/gx/gx-feedback/' + 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 removeBatchGxFeedback(data: (number | undefined)[]) {
|
||||
const res = await request.delete<ApiResult<unknown>>(
|
||||
MODULES_API_URL + '/law/law-org-people/batch',
|
||||
MODULES_API_URL + '/gx/gx-feedback/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 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;
|
||||
+14
-12
@@ -1,35 +1,37 @@
|
||||
import type { PageParam } from '@/api';
|
||||
|
||||
/**
|
||||
* 法律计算器配置
|
||||
*
|
||||
*/
|
||||
export interface LawLegalCalConfig {
|
||||
export interface GxFeedback {
|
||||
//
|
||||
id?: number;
|
||||
// 功能体验
|
||||
funcExp?: string;
|
||||
// 咨询体验
|
||||
advisoryExp?: string;
|
||||
//
|
||||
typeId?: number;
|
||||
//
|
||||
title?: string;
|
||||
// 类型
|
||||
type?: string;
|
||||
// 内容
|
||||
answer?: string;
|
||||
comments?: string;
|
||||
//
|
||||
userId?: number;
|
||||
//
|
||||
sortNumber?: number;
|
||||
// 状态, 0正常, 1冻结
|
||||
status?: number;
|
||||
// 是否删除, 0否, 1是
|
||||
deleted?: number;
|
||||
// 租户id
|
||||
tenantId?: number;
|
||||
// 创建时间
|
||||
// 注册时间
|
||||
createTime?: string;
|
||||
// 修改时间
|
||||
updateTime?: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* 法律计算器配置搜索条件
|
||||
* 搜索条件
|
||||
*/
|
||||
export interface LawLegalCalConfigParam extends PageParam {
|
||||
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));
|
||||
}
|
||||
@@ -3,30 +3,22 @@ import type { PageParam } from '@/api';
|
||||
/**
|
||||
*
|
||||
*/
|
||||
export interface LawFeedback {
|
||||
export interface GxSignLog {
|
||||
//
|
||||
id?: number;
|
||||
//
|
||||
userId?: number;
|
||||
//
|
||||
title?: string;
|
||||
//
|
||||
company?: string;
|
||||
//
|
||||
address?: string;
|
||||
//
|
||||
date?: string;
|
||||
//
|
||||
pics?: string;
|
||||
//
|
||||
video?: string;
|
||||
//
|
||||
content?: string;
|
||||
sortNumber?: number;
|
||||
// 状态, 0正常, 1冻结
|
||||
status?: number;
|
||||
// 是否删除, 0否, 1是
|
||||
deleted?: number;
|
||||
// 租户id
|
||||
tenantId?: number;
|
||||
// 创建时间
|
||||
// 注册时间
|
||||
createTime?: string;
|
||||
// 修改时间
|
||||
updateTime?: string;
|
||||
@@ -35,7 +27,7 @@ export interface LawFeedback {
|
||||
/**
|
||||
* 搜索条件
|
||||
*/
|
||||
export interface LawFeedbackParam extends PageParam {
|
||||
export interface GxSignLogParam extends PageParam {
|
||||
id?: number;
|
||||
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,36 +0,0 @@
|
||||
import type { PageParam } from "@/api";
|
||||
|
||||
/**
|
||||
* 法律文书配置
|
||||
*/
|
||||
export interface LawLegalDocType {
|
||||
//
|
||||
id?: number;
|
||||
//
|
||||
icon?: string;
|
||||
//
|
||||
title?: string;
|
||||
topContent?: string;
|
||||
extraContent?: string;
|
||||
comment?: string;
|
||||
// 类型
|
||||
sortNumber?: number;
|
||||
//
|
||||
userId?: number;
|
||||
// 是否删除, 0否, 1是
|
||||
deleted?: number;
|
||||
// 租户id
|
||||
tenantId?: number;
|
||||
// 创建时间
|
||||
createTime?: string;
|
||||
// 修改时间
|
||||
updateTime?: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* 法律文书配置搜索条件
|
||||
*/
|
||||
export interface LawLegalDocTypeParam extends PageParam {
|
||||
id?: number;
|
||||
keywords?: string;
|
||||
}
|
||||
@@ -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,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;
|
||||
}
|
||||
@@ -1,106 +0,0 @@
|
||||
import request from '@/utils/request';
|
||||
import type { ApiResult, PageResult } from '@/api';
|
||||
import type { LawLegalOrgCheckType, LawLegalOrgCheckTypeParam } from './model';
|
||||
import { MODULES_API_URL } from '@/config/setting';
|
||||
|
||||
/**
|
||||
* 分页查询企业法制体检配置
|
||||
*/
|
||||
export async function pageLawLegalOrgCheckType(params: LawLegalOrgCheckTypeParam) {
|
||||
const res = await request.get<ApiResult<PageResult<LawLegalOrgCheckType>>>(
|
||||
MODULES_API_URL + '/law/law-legal-org-check-type/page',
|
||||
{
|
||||
params
|
||||
}
|
||||
);
|
||||
if (res.data.code === 0) {
|
||||
return res.data.data;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询企业法制体检配置列表
|
||||
*/
|
||||
export async function listLawLegalOrgCheckType(params?: LawLegalOrgCheckTypeParam) {
|
||||
const res = await request.get<ApiResult<LawLegalOrgCheckType[]>>(
|
||||
MODULES_API_URL + '/law/law-legal-org-check-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 addLawLegalOrgCheckType(data: LawLegalOrgCheckType) {
|
||||
const res = await request.post<ApiResult<unknown>>(
|
||||
MODULES_API_URL + '/law/law-legal-org-check-type',
|
||||
data
|
||||
);
|
||||
if (res.data.code === 0) {
|
||||
return res.data.message;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改企业法制体检配置
|
||||
*/
|
||||
export async function updateLawLegalOrgCheckType(data: LawLegalOrgCheckType) {
|
||||
const res = await request.put<ApiResult<unknown>>(
|
||||
MODULES_API_URL + '/law/law-legal-org-check-type',
|
||||
data
|
||||
);
|
||||
if (res.data.code === 0) {
|
||||
return res.data.message;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除企业法制体检配置
|
||||
*/
|
||||
export async function removeLawLegalOrgCheckType(id?: number) {
|
||||
const res = await request.delete<ApiResult<unknown>>(
|
||||
MODULES_API_URL + '/law/law-legal-org-check-type/' + id
|
||||
);
|
||||
if (res.data.code === 0) {
|
||||
return res.data.message;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除企业法制体检配置
|
||||
*/
|
||||
export async function removeBatchLawLegalOrgCheckType(data: (number | undefined)[]) {
|
||||
const res = await request.delete<ApiResult<unknown>>(
|
||||
MODULES_API_URL + '/law/law-legal-org-check-type/batch',
|
||||
{
|
||||
data
|
||||
}
|
||||
);
|
||||
if (res.data.code === 0) {
|
||||
return res.data.message;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据id查询企业法制体检配置
|
||||
*/
|
||||
export async function getLawLegalOrgCheckType(id: number) {
|
||||
const res = await request.get<ApiResult<LawLegalOrgCheckType>>(
|
||||
MODULES_API_URL + '/law/law-legal-org-check-type/' + 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 LawLegalOrgCheckType {
|
||||
//
|
||||
id?: number;
|
||||
//
|
||||
icon?: string;
|
||||
//
|
||||
title?: string;
|
||||
content?: string;
|
||||
scoreConfig?: string;
|
||||
// 类型
|
||||
sortNumber?: number;
|
||||
//
|
||||
userId?: number;
|
||||
// 是否删除, 0否, 1是
|
||||
deleted?: number;
|
||||
// 租户id
|
||||
tenantId?: number;
|
||||
// 创建时间
|
||||
createTime?: string;
|
||||
// 修改时间
|
||||
updateTime?: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* 企业法制体检配置搜索条件
|
||||
*/
|
||||
export interface LawLegalOrgCheckTypeParam extends PageParam {
|
||||
id?: number;
|
||||
keywords?: string;
|
||||
}
|
||||
@@ -1,106 +0,0 @@
|
||||
import request from '@/utils/request';
|
||||
import type { ApiResult, PageResult } from '@/api';
|
||||
import type { LawLegalOrgCheckTypeSuggest, LawLegalOrgCheckTypeSuggestParam } from './model';
|
||||
import { MODULES_API_URL } from '@/config/setting';
|
||||
|
||||
/**
|
||||
* 分页查询法律意见书配置
|
||||
*/
|
||||
export async function pageLawLegalOrgCheckTypeSuggest(params: LawLegalOrgCheckTypeSuggestParam) {
|
||||
const res = await request.get<ApiResult<PageResult<LawLegalOrgCheckTypeSuggest>>>(
|
||||
MODULES_API_URL + '/law/law-legal-org-check-type-suggest/page',
|
||||
{
|
||||
params
|
||||
}
|
||||
);
|
||||
if (res.data.code === 0) {
|
||||
return res.data.data;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询法律意见书配置列表
|
||||
*/
|
||||
export async function listLawLegalOrgCheckTypeSuggest(params?: LawLegalOrgCheckTypeSuggestParam) {
|
||||
const res = await request.get<ApiResult<LawLegalOrgCheckTypeSuggest[]>>(
|
||||
MODULES_API_URL + '/law/law-legal-org-check-type-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 addLawLegalOrgCheckTypeSuggest(data: LawLegalOrgCheckTypeSuggest) {
|
||||
const res = await request.post<ApiResult<unknown>>(
|
||||
MODULES_API_URL + '/law/law-legal-org-check-type-suggest',
|
||||
data
|
||||
);
|
||||
if (res.data.code === 0) {
|
||||
return res.data.message;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改法律意见书配置
|
||||
*/
|
||||
export async function updateLawLegalOrgCheckTypeSuggest(data: LawLegalOrgCheckTypeSuggest) {
|
||||
const res = await request.put<ApiResult<unknown>>(
|
||||
MODULES_API_URL + '/law/law-legal-org-check-type-suggest',
|
||||
data
|
||||
);
|
||||
if (res.data.code === 0) {
|
||||
return res.data.message;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除法律意见书配置
|
||||
*/
|
||||
export async function removeLawLegalOrgCheckTypeSuggest(id?: number) {
|
||||
const res = await request.delete<ApiResult<unknown>>(
|
||||
MODULES_API_URL + '/law/law-legal-org-check-type-suggest/' + id
|
||||
);
|
||||
if (res.data.code === 0) {
|
||||
return res.data.message;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除法律意见书配置
|
||||
*/
|
||||
export async function removeBatchLawLegalOrgCheckTypeSuggest(data: (number | undefined)[]) {
|
||||
const res = await request.delete<ApiResult<unknown>>(
|
||||
MODULES_API_URL + '/law/law-legal-org-check-type-suggest/batch',
|
||||
{
|
||||
data
|
||||
}
|
||||
);
|
||||
if (res.data.code === 0) {
|
||||
return res.data.message;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据id查询法律意见书配置
|
||||
*/
|
||||
export async function getLawLegalOrgCheckTypeSuggest(id: number) {
|
||||
const res = await request.get<ApiResult<LawLegalOrgCheckTypeSuggest>>(
|
||||
MODULES_API_URL + '/law/law-legal-org-check-type-suggest/' + id
|
||||
);
|
||||
if (res.data.code === 0 && res.data.data) {
|
||||
return res.data.data;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
@@ -1,38 +0,0 @@
|
||||
import type { PageParam } from "@/api";
|
||||
|
||||
/**
|
||||
* 法律意见书配置
|
||||
*/
|
||||
export interface LawLegalOrgCheckTypeSuggest {
|
||||
//
|
||||
id?: number;
|
||||
//
|
||||
icon?: string;
|
||||
//
|
||||
title?: string;
|
||||
tips?: string;
|
||||
methods?: string;
|
||||
urls?: string;
|
||||
// 类型
|
||||
sortNumber?: number;
|
||||
//
|
||||
userId?: number;
|
||||
// 是否删除, 0否, 1是
|
||||
deleted?: number;
|
||||
articleCateId?: number;
|
||||
// 租户id
|
||||
tenantId?: number;
|
||||
// 创建时间
|
||||
createTime?: string;
|
||||
// 修改时间
|
||||
updateTime?: string;
|
||||
fileList?: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* 法律意见书配置搜索条件
|
||||
*/
|
||||
export interface LawLegalOrgCheckTypeSuggestParam extends PageParam {
|
||||
id?: number;
|
||||
keywords?: string;
|
||||
}
|
||||
@@ -1,106 +0,0 @@
|
||||
import request from '@/utils/request';
|
||||
import type { ApiResult, PageResult } from '@/api';
|
||||
import type { LawNotaryConfig, LawNotaryConfigParam } from './model';
|
||||
import { MODULES_API_URL } from '@/config/setting';
|
||||
|
||||
/**
|
||||
* 分页查询公证配置
|
||||
*/
|
||||
export async function pageLawNotaryConfig(params: LawNotaryConfigParam) {
|
||||
const res = await request.get<ApiResult<PageResult<LawNotaryConfig>>>(
|
||||
MODULES_API_URL + '/law/law-notary-config/page',
|
||||
{
|
||||
params
|
||||
}
|
||||
);
|
||||
if (res.data.code === 0) {
|
||||
return res.data.data;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询公证配置列表
|
||||
*/
|
||||
export async function listLawNotaryConfig(params?: LawNotaryConfigParam) {
|
||||
const res = await request.get<ApiResult<LawNotaryConfig[]>>(
|
||||
MODULES_API_URL + '/law/law-notary-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 addLawNotaryConfig(data: LawNotaryConfig) {
|
||||
const res = await request.post<ApiResult<unknown>>(
|
||||
MODULES_API_URL + '/law/law-notary-config',
|
||||
data
|
||||
);
|
||||
if (res.data.code === 0) {
|
||||
return res.data.message;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改公证配置
|
||||
*/
|
||||
export async function updateLawNotaryConfig(data: LawNotaryConfig) {
|
||||
const res = await request.put<ApiResult<unknown>>(
|
||||
MODULES_API_URL + '/law/law-notary-config',
|
||||
data
|
||||
);
|
||||
if (res.data.code === 0) {
|
||||
return res.data.message;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除公证配置
|
||||
*/
|
||||
export async function removeLawNotaryConfig(id?: number) {
|
||||
const res = await request.delete<ApiResult<unknown>>(
|
||||
MODULES_API_URL + '/law/law-notary-config/' + id
|
||||
);
|
||||
if (res.data.code === 0) {
|
||||
return res.data.message;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除公证配置
|
||||
*/
|
||||
export async function removeBatchLawNotaryConfig(data: (number | undefined)[]) {
|
||||
const res = await request.delete<ApiResult<unknown>>(
|
||||
MODULES_API_URL + '/law/law-notary-config/batch',
|
||||
{
|
||||
data
|
||||
}
|
||||
);
|
||||
if (res.data.code === 0) {
|
||||
return res.data.message;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据id查询公证配置
|
||||
*/
|
||||
export async function getLawNotaryConfig(id: number) {
|
||||
const res = await request.get<ApiResult<LawNotaryConfig>>(
|
||||
MODULES_API_URL + '/law/law-notary-config/' + id
|
||||
);
|
||||
if (res.data.code === 0 && res.data.data) {
|
||||
return res.data.data;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
@@ -1,41 +0,0 @@
|
||||
import type { PageParam } from '@/api';
|
||||
|
||||
/**
|
||||
* 公证列表
|
||||
*/
|
||||
export interface LawNotaryList {
|
||||
//
|
||||
id?: number;
|
||||
//
|
||||
uid?: number;
|
||||
//
|
||||
nameList?: string;
|
||||
// 公证事项
|
||||
content?: string;
|
||||
// 用途
|
||||
usage?: string;
|
||||
// 使用地
|
||||
address?: string;
|
||||
// 译文
|
||||
translate?: string;
|
||||
// 文件列表
|
||||
fileList?: string;
|
||||
//
|
||||
userId?: number;
|
||||
// 是否删除, 0否, 1是
|
||||
deleted?: number;
|
||||
// 租户id
|
||||
tenantId?: number;
|
||||
// 创建时间
|
||||
createTime?: string;
|
||||
// 修改时间
|
||||
updateTime?: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* 公证列表搜索条件
|
||||
*/
|
||||
export interface LawNotaryListParam extends PageParam {
|
||||
id?: number;
|
||||
keywords?: string;
|
||||
}
|
||||
@@ -1,44 +0,0 @@
|
||||
import type { PageParam } from "@/api";
|
||||
|
||||
/**
|
||||
* 机构
|
||||
*/
|
||||
export interface LawOrg {
|
||||
//
|
||||
id?: number;
|
||||
//
|
||||
title?: string;
|
||||
phone?: string;
|
||||
// 0律所 1基层法律服务所 2仲裁机构 3公证处
|
||||
type?: number;
|
||||
//
|
||||
provinceId?: number;
|
||||
//
|
||||
cityId?: number;
|
||||
//
|
||||
areaId?: number;
|
||||
//
|
||||
lat?: string | number;
|
||||
//
|
||||
lng?: string | number;
|
||||
// 是否删除, 0否, 1是
|
||||
deleted?: number;
|
||||
// 租户id
|
||||
tenantId?: number;
|
||||
// 创建时间
|
||||
createTime?: string;
|
||||
// 修改时间
|
||||
updateTime?: string;
|
||||
province?: string;
|
||||
city?: string;
|
||||
region?: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* 机构搜索条件
|
||||
*/
|
||||
export interface LawOrgParam extends PageParam {
|
||||
id?: number;
|
||||
keywords?: string;
|
||||
type?: string;
|
||||
}
|
||||
@@ -1,106 +0,0 @@
|
||||
import request from '@/utils/request';
|
||||
import type { ApiResult, PageResult } from '@/api';
|
||||
import type { LawOrgCheckLog, LawOrgCheckLogParam } from './model';
|
||||
import { MODULES_API_URL } from '@/config/setting';
|
||||
|
||||
/**
|
||||
* 分页查询企业法制检查报告
|
||||
*/
|
||||
export async function pageLawOrgCheckLog(params: LawOrgCheckLogParam) {
|
||||
const res = await request.get<ApiResult<PageResult<LawOrgCheckLog>>>(
|
||||
MODULES_API_URL + '/law/law-org-check-log/page',
|
||||
{
|
||||
params
|
||||
}
|
||||
);
|
||||
if (res.data.code === 0) {
|
||||
return res.data.data;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询企业法制检查报告列表
|
||||
*/
|
||||
export async function listLawOrgCheckLog(params?: LawOrgCheckLogParam) {
|
||||
const res = await request.get<ApiResult<LawOrgCheckLog[]>>(
|
||||
MODULES_API_URL + '/law/law-org-check-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 addLawOrgCheckLog(data: LawOrgCheckLog) {
|
||||
const res = await request.post<ApiResult<unknown>>(
|
||||
MODULES_API_URL + '/law/law-org-check-log',
|
||||
data
|
||||
);
|
||||
if (res.data.code === 0) {
|
||||
return res.data.message;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改企业法制检查报告
|
||||
*/
|
||||
export async function updateLawOrgCheckLog(data: LawOrgCheckLog) {
|
||||
const res = await request.put<ApiResult<unknown>>(
|
||||
MODULES_API_URL + '/law/law-org-check-log',
|
||||
data
|
||||
);
|
||||
if (res.data.code === 0) {
|
||||
return res.data.message;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除企业法制检查报告
|
||||
*/
|
||||
export async function removeLawOrgCheckLog(id?: number) {
|
||||
const res = await request.delete<ApiResult<unknown>>(
|
||||
MODULES_API_URL + '/law/law-org-check-log/' + id
|
||||
);
|
||||
if (res.data.code === 0) {
|
||||
return res.data.message;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除企业法制检查报告
|
||||
*/
|
||||
export async function removeBatchLawOrgCheckLog(data: (number | undefined)[]) {
|
||||
const res = await request.delete<ApiResult<unknown>>(
|
||||
MODULES_API_URL + '/law/law-org-check-log/batch',
|
||||
{
|
||||
data
|
||||
}
|
||||
);
|
||||
if (res.data.code === 0) {
|
||||
return res.data.message;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据id查询企业法制检查报告
|
||||
*/
|
||||
export async function getLawOrgCheckLog(id: number) {
|
||||
const res = await request.get<ApiResult<LawOrgCheckLog>>(
|
||||
MODULES_API_URL + '/law/law-org-check-log/' + id
|
||||
);
|
||||
if (res.data.code === 0 && res.data.data) {
|
||||
return res.data.data;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
@@ -1,41 +0,0 @@
|
||||
import type { PageParam } from '@/api';
|
||||
|
||||
/**
|
||||
* 企业法制检查报告
|
||||
*/
|
||||
export interface LawOrgCheckLog {
|
||||
//
|
||||
id?: number;
|
||||
//
|
||||
companyName?: string;
|
||||
// 检查单位
|
||||
checkCompanyName?: string;
|
||||
//
|
||||
checkDate?: string;
|
||||
//
|
||||
type?: string;
|
||||
// 本月检查次数
|
||||
checkNum?: number;
|
||||
//
|
||||
comment?: string;
|
||||
//
|
||||
remark?: string;
|
||||
//
|
||||
userId?: number;
|
||||
// 是否删除, 0否, 1是
|
||||
deleted?: number;
|
||||
// 租户id
|
||||
tenantId?: number;
|
||||
// 创建时间
|
||||
createTime?: string;
|
||||
// 修改时间
|
||||
updateTime?: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* 企业法制检查报告搜索条件
|
||||
*/
|
||||
export interface LawOrgCheckLogParam extends PageParam {
|
||||
id?: number;
|
||||
keywords?: string;
|
||||
}
|
||||
@@ -1,14 +1,14 @@
|
||||
import request from '@/utils/request';
|
||||
import type { ApiResult, PageResult } from '@/api';
|
||||
import type { LawOrg, LawOrgParam } from './model';
|
||||
import type { SysArea, SysAreaParam } from './model';
|
||||
import { MODULES_API_URL } from '@/config/setting';
|
||||
|
||||
/**
|
||||
* 分页查询机构
|
||||
* 分页查询
|
||||
*/
|
||||
export async function pageLawOrg(params: LawOrgParam) {
|
||||
const res = await request.get<ApiResult<PageResult<LawOrg>>>(
|
||||
MODULES_API_URL + '/law/law-org/page',
|
||||
export async function pageSysArea(params: SysAreaParam) {
|
||||
const res = await request.get<ApiResult<PageResult<SysArea>>>(
|
||||
MODULES_API_URL + '/sys/sys-area/page',
|
||||
{
|
||||
params
|
||||
}
|
||||
@@ -20,11 +20,11 @@ export async function pageLawOrg(params: LawOrgParam) {
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询机构列表
|
||||
* 查询列表
|
||||
*/
|
||||
export async function listLawOrg(params?: LawOrgParam) {
|
||||
const res = await request.get<ApiResult<LawOrg[]>>(
|
||||
MODULES_API_URL + '/law/law-org',
|
||||
export async function listSysArea(params?: SysAreaParam) {
|
||||
const res = await request.get<ApiResult<SysArea[]>>(
|
||||
MODULES_API_URL + '/sys/sys-area',
|
||||
{
|
||||
params
|
||||
}
|
||||
@@ -36,11 +36,11 @@ export async function listLawOrg(params?: LawOrgParam) {
|
||||
}
|
||||
|
||||
/**
|
||||
* 添加机构
|
||||
* 添加
|
||||
*/
|
||||
export async function addLawOrg(data: LawOrg) {
|
||||
export async function addSysArea(data: SysArea) {
|
||||
const res = await request.post<ApiResult<unknown>>(
|
||||
MODULES_API_URL + '/law/law-org',
|
||||
MODULES_API_URL + '/sys/sys-area',
|
||||
data
|
||||
);
|
||||
if (res.data.code === 0) {
|
||||
@@ -50,11 +50,11 @@ export async function addLawOrg(data: LawOrg) {
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改机构
|
||||
* 修改
|
||||
*/
|
||||
export async function updateLawOrg(data: LawOrg) {
|
||||
export async function updateSysArea(data: SysArea) {
|
||||
const res = await request.put<ApiResult<unknown>>(
|
||||
MODULES_API_URL + '/law/law-org',
|
||||
MODULES_API_URL + '/sys/sys-area',
|
||||
data
|
||||
);
|
||||
if (res.data.code === 0) {
|
||||
@@ -64,11 +64,11 @@ export async function updateLawOrg(data: LawOrg) {
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除机构
|
||||
* 删除
|
||||
*/
|
||||
export async function removeLawOrg(id?: number) {
|
||||
export async function removeSysArea(id?: number) {
|
||||
const res = await request.delete<ApiResult<unknown>>(
|
||||
MODULES_API_URL + '/law/law-org/' + id
|
||||
MODULES_API_URL + '/sys/sys-area/' + id
|
||||
);
|
||||
if (res.data.code === 0) {
|
||||
return res.data.message;
|
||||
@@ -77,11 +77,11 @@ export async function removeLawOrg(id?: number) {
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除机构
|
||||
* 批量删除
|
||||
*/
|
||||
export async function removeBatchLawOrg(data: (number | undefined)[]) {
|
||||
export async function removeBatchSysArea(data: (number | undefined)[]) {
|
||||
const res = await request.delete<ApiResult<unknown>>(
|
||||
MODULES_API_URL + '/law/law-org/batch',
|
||||
MODULES_API_URL + '/sys/sys-area/batch',
|
||||
{
|
||||
data
|
||||
}
|
||||
@@ -93,11 +93,11 @@ export async function removeBatchLawOrg(data: (number | undefined)[]) {
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据id查询机构
|
||||
* 根据id查询
|
||||
*/
|
||||
export async function getLawOrg(id: number) {
|
||||
const res = await request.get<ApiResult<LawOrg>>(
|
||||
MODULES_API_URL + '/law/law-org/' + id
|
||||
export async function getSysArea(id: number) {
|
||||
const res = await request.get<ApiResult<SysArea>>(
|
||||
MODULES_API_URL + '/sys/sys-area/' + id
|
||||
);
|
||||
if (res.data.code === 0 && res.data.data) {
|
||||
return res.data.data;
|
||||
@@ -0,0 +1,25 @@
|
||||
import type { PageParam } from '@/api';
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
export interface SysArea {
|
||||
//
|
||||
id?: number;
|
||||
//
|
||||
name?: string;
|
||||
//
|
||||
fid?: number;
|
||||
//
|
||||
levelId?: number;
|
||||
// 租户id
|
||||
tenantId?: number;
|
||||
}
|
||||
|
||||
/**
|
||||
* 搜索条件
|
||||
*/
|
||||
export interface SysAreaParam extends PageParam {
|
||||
id?: number;
|
||||
keywords?: string;
|
||||
}
|
||||
@@ -1,78 +0,0 @@
|
||||
import request from '@/utils/request';
|
||||
import type { ApiResult, PageResult } from '@/api';
|
||||
import { VivoAreaCode, VivoAreaCodeParam } from "./model";
|
||||
|
||||
/**
|
||||
* 分页查询商品分类
|
||||
*/
|
||||
export async function pageVivoAreaCode(params: VivoAreaCodeParam) {
|
||||
const res = await request.get<ApiResult<PageResult<VivoAreaCode>>>(
|
||||
'/vivo/vivo-pay-code/page',
|
||||
{
|
||||
params
|
||||
}
|
||||
);
|
||||
if (res.data.code === 0) {
|
||||
return res.data.data;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询商品分类列表
|
||||
*/
|
||||
export async function listVivoAreaCode(params?: VivoAreaCodeParam) {
|
||||
const res = await request.get<ApiResult<VivoAreaCode[]>>('/vivo/vivo-pay-code', {
|
||||
params
|
||||
});
|
||||
if (res.data.code === 0 && res.data.data) {
|
||||
return res.data.data;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 添加商品分类
|
||||
*/
|
||||
export async function addVivoAreaCode(data: VivoAreaCode) {
|
||||
const res = await request.post<ApiResult<unknown>>('/vivo/vivo-pay-code', data);
|
||||
if (res.data.code === 0) {
|
||||
return res.data.message;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改商品分类
|
||||
*/
|
||||
export async function updateVivoAreaCode(data: VivoAreaCode) {
|
||||
const res = await request.put<ApiResult<unknown>>('/vivo/vivo-pay-code', data);
|
||||
if (res.data.code === 0) {
|
||||
return res.data.message;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除商品分类
|
||||
*/
|
||||
export async function removeVivoAreaCode(id?: number) {
|
||||
const res = await request.delete<ApiResult<unknown>>('/vivo/vivo-pay-code/' + id);
|
||||
if (res.data.code === 0) {
|
||||
return res.data.message;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除商品分类
|
||||
*/
|
||||
export async function removeBatchVivoAreaCode(data: (number | undefined)[]) {
|
||||
const res = await request.delete<ApiResult<unknown>>('/vivo/vivo-pay-code/batch', {
|
||||
data
|
||||
});
|
||||
if (res.data.code === 0) {
|
||||
return res.data.message;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
@@ -1,20 +0,0 @@
|
||||
import type { PageParam } from "@/api";
|
||||
|
||||
/**
|
||||
* 商品分类
|
||||
*/
|
||||
export interface VivoAreaCode {
|
||||
id: number;
|
||||
cityId: number;
|
||||
provinceId?: number;
|
||||
cityName?: string;
|
||||
remark?: string;
|
||||
code: string;
|
||||
userId?: number;
|
||||
createTime?: string;
|
||||
updateTime?: string;
|
||||
}
|
||||
|
||||
export interface VivoAreaCodeParam extends PageParam {
|
||||
keywords: string;
|
||||
}
|
||||
@@ -1,18 +0,0 @@
|
||||
import type { PageParam } from "@/api";
|
||||
import { VivoStore } from "@/api/vivo/store/model";
|
||||
|
||||
/**
|
||||
* 商品分类
|
||||
*/
|
||||
export interface VivoBindStoreList {
|
||||
id?: number;
|
||||
userId?: number;
|
||||
storeId?: number;
|
||||
createTime?: string;
|
||||
updateTime?: string;
|
||||
store?: VivoStore;
|
||||
}
|
||||
|
||||
export interface VivoBindStoreListParam extends PageParam {
|
||||
userId: number;
|
||||
}
|
||||
@@ -1,19 +0,0 @@
|
||||
import request from "@/utils/request";
|
||||
import type { ApiResult } from "@/api";
|
||||
import { VivoData, VivoDataParam } from "./model";
|
||||
|
||||
/**
|
||||
* 分页查询商品分类
|
||||
*/
|
||||
export async function vivoDataReq(params?: VivoDataParam) {
|
||||
const res = await request.post<ApiResult<VivoData>>(
|
||||
"/vivo/data",
|
||||
{
|
||||
params
|
||||
}
|
||||
);
|
||||
if (res.data.code === 0) {
|
||||
return res.data.data;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
@@ -1,16 +0,0 @@
|
||||
import type { PageParam } from "@/api";
|
||||
|
||||
export interface VivoData {
|
||||
todayNum: number;
|
||||
totalNum: number;
|
||||
todayAmount: number;
|
||||
totalAmount: number;
|
||||
todayCommission: number;
|
||||
totalCommission: number;
|
||||
list: any[];
|
||||
}
|
||||
|
||||
export interface VivoDataParam extends PageParam {
|
||||
startTime?: string;
|
||||
endTime?: string;
|
||||
}
|
||||
@@ -1,78 +0,0 @@
|
||||
import request from '@/utils/request';
|
||||
import type { ApiResult, PageResult } from '@/api';
|
||||
import { VivoFixStore, VivoFixStoreParam } from "@/api/vivo/fixStore/model";
|
||||
|
||||
/**
|
||||
* 分页查询商品分类
|
||||
*/
|
||||
export async function pageVivoFixStore(params: VivoFixStoreParam) {
|
||||
const res = await request.get<ApiResult<PageResult<VivoFixStore>>>(
|
||||
'/vivo/vivo-fix-store/page',
|
||||
{
|
||||
params
|
||||
}
|
||||
);
|
||||
if (res.data.code === 0) {
|
||||
return res.data.data;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询商品分类列表
|
||||
*/
|
||||
export async function listVivoFixStore(params?: VivoFixStoreParam) {
|
||||
const res = await request.get<ApiResult<VivoFixStore[]>>('/vivo/vivo-fix-store', {
|
||||
params
|
||||
});
|
||||
if (res.data.code === 0 && res.data.data) {
|
||||
return res.data.data;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 添加商品分类
|
||||
*/
|
||||
export async function addVivoFixStore(data: VivoFixStore) {
|
||||
const res = await request.post<ApiResult<unknown>>('/vivo/vivo-fix-store', data);
|
||||
if (res.data.code === 0) {
|
||||
return res.data.message;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改商品分类
|
||||
*/
|
||||
export async function updateVivoFixStore(data: VivoFixStore) {
|
||||
const res = await request.put<ApiResult<unknown>>('/vivo/vivo-fix-store', data);
|
||||
if (res.data.code === 0) {
|
||||
return res.data.message;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除商品分类
|
||||
*/
|
||||
export async function removeVivoFixStore(id?: number) {
|
||||
const res = await request.delete<ApiResult<unknown>>('/vivo/vivo-fix-store/' + id);
|
||||
if (res.data.code === 0) {
|
||||
return res.data.message;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除商品分类
|
||||
*/
|
||||
export async function removeBatchVivoFixStore(data: (number | undefined)[]) {
|
||||
const res = await request.delete<ApiResult<unknown>>('/vivo/vivo-fix-store/batch', {
|
||||
data
|
||||
});
|
||||
if (res.data.code === 0) {
|
||||
return res.data.message;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
@@ -1,25 +0,0 @@
|
||||
import type { PageParam } from "@/api";
|
||||
|
||||
/**
|
||||
* 商品分类
|
||||
*/
|
||||
export interface VivoFixStore {
|
||||
id: number;
|
||||
name: string;
|
||||
payeeCode: string;
|
||||
phone: string;
|
||||
longitude?: number;
|
||||
latitude?: number;
|
||||
province?: string;
|
||||
city?: string;
|
||||
region?: string;
|
||||
address?: string;
|
||||
userId?: number;
|
||||
isShow: number;
|
||||
createTime?: string;
|
||||
updateTime?: string;
|
||||
}
|
||||
|
||||
export interface VivoFixStoreParam extends PageParam {
|
||||
keywords: string;
|
||||
}
|
||||
@@ -1,78 +0,0 @@
|
||||
import request from '@/utils/request';
|
||||
import type { ApiResult, PageResult } from '@/api';
|
||||
import { PhoneModel, PhoneModelParam } from "@/api/vivo/phoneModel/model";
|
||||
|
||||
/**
|
||||
* 分页查询商品分类
|
||||
*/
|
||||
export async function pagePhoneModel(params: PhoneModelParam) {
|
||||
const res = await request.get<ApiResult<PageResult<PhoneModel>>>(
|
||||
'/vivo/vivo-phone-model/page',
|
||||
{
|
||||
params
|
||||
}
|
||||
);
|
||||
if (res.data.code === 0) {
|
||||
return res.data.data;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询商品分类列表
|
||||
*/
|
||||
export async function listPhoneModel(params?: PhoneModelParam) {
|
||||
const res = await request.get<ApiResult<PhoneModel[]>>('/vivo/vivo-phone-model', {
|
||||
params
|
||||
});
|
||||
if (res.data.code === 0 && res.data.data) {
|
||||
return res.data.data;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 添加商品分类
|
||||
*/
|
||||
export async function addPhoneModel(data: PhoneModel) {
|
||||
const res = await request.post<ApiResult<unknown>>('/vivo/vivo-phone-model', data);
|
||||
if (res.data.code === 0) {
|
||||
return res.data.message;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改商品分类
|
||||
*/
|
||||
export async function updatePhoneModel(data: PhoneModel) {
|
||||
const res = await request.put<ApiResult<unknown>>('/vivo/vivo-phone-model', data);
|
||||
if (res.data.code === 0) {
|
||||
return res.data.message;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除商品分类
|
||||
*/
|
||||
export async function removePhoneModel(id?: number) {
|
||||
const res = await request.delete<ApiResult<unknown>>('/vivo/vivo-phone-model/' + id);
|
||||
if (res.data.code === 0) {
|
||||
return res.data.message;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除商品分类
|
||||
*/
|
||||
export async function removeBatchPhoneModel(data: (number | undefined)[]) {
|
||||
const res = await request.delete<ApiResult<unknown>>('/vivo/vivo-phone-model/batch', {
|
||||
data
|
||||
});
|
||||
if (res.data.code === 0) {
|
||||
return res.data.message;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
@@ -1,21 +0,0 @@
|
||||
import type { PageParam } from "@/api";
|
||||
import { Category } from "@/api/goods/category/model";
|
||||
|
||||
/**
|
||||
* 商品分类
|
||||
*/
|
||||
export interface PhoneModel {
|
||||
id: number;
|
||||
name: string;
|
||||
cate: number;
|
||||
brand: string;
|
||||
code: string;
|
||||
userId?: number;
|
||||
createTime?: string;
|
||||
updateTime?: string;
|
||||
cateItem?: Category
|
||||
}
|
||||
|
||||
export interface PhoneModelParam extends PageParam {
|
||||
keywords: string;
|
||||
}
|
||||
@@ -1,78 +0,0 @@
|
||||
import request from '@/utils/request';
|
||||
import type { ApiResult, PageResult } from '@/api';
|
||||
import { VivoStore, VivoStoreParam } from "@/api/vivo/store/model";
|
||||
|
||||
/**
|
||||
* 分页查询商品分类
|
||||
*/
|
||||
export async function pageVivoStore(params: VivoStoreParam) {
|
||||
const res = await request.get<ApiResult<PageResult<VivoStore>>>(
|
||||
'/vivo/vivo-store/page',
|
||||
{
|
||||
params
|
||||
}
|
||||
);
|
||||
if (res.data.code === 0) {
|
||||
return res.data.data;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询商品分类列表
|
||||
*/
|
||||
export async function listVivoStore(params?: VivoStoreParam) {
|
||||
const res = await request.get<ApiResult<VivoStore[]>>('/vivo/vivo-store', {
|
||||
params
|
||||
});
|
||||
if (res.data.code === 0 && res.data.data) {
|
||||
return res.data.data;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 添加商品分类
|
||||
*/
|
||||
export async function addVivoStore(data: VivoStore) {
|
||||
const res = await request.post<ApiResult<unknown>>('/vivo/vivo-store', data);
|
||||
if (res.data.code === 0) {
|
||||
return res.data.message;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改商品分类
|
||||
*/
|
||||
export async function updateVivoStore(data: VivoStore) {
|
||||
const res = await request.put<ApiResult<unknown>>('/vivo/vivo-store', data);
|
||||
if (res.data.code === 0) {
|
||||
return res.data.message;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除商品分类
|
||||
*/
|
||||
export async function removeVivoStore(id?: number) {
|
||||
const res = await request.delete<ApiResult<unknown>>('/vivo/vivo-store/' + id);
|
||||
if (res.data.code === 0) {
|
||||
return res.data.message;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除商品分类
|
||||
*/
|
||||
export async function removeBatchVivoStore(data: (number | undefined)[]) {
|
||||
const res = await request.delete<ApiResult<unknown>>('/vivo/vivo-store/batch', {
|
||||
data
|
||||
});
|
||||
if (res.data.code === 0) {
|
||||
return res.data.message;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
@@ -1,26 +0,0 @@
|
||||
import type { PageParam } from "@/api";
|
||||
import { User } from "@/api/system/user/model";
|
||||
|
||||
/**
|
||||
* 商品分类
|
||||
*/
|
||||
export interface VivoStore {
|
||||
id: number;
|
||||
name: string;
|
||||
code: string;
|
||||
province?: string;
|
||||
city?: string;
|
||||
region?: string;
|
||||
address?: string;
|
||||
manager?: number;
|
||||
userId?: number;
|
||||
createTime?: string;
|
||||
updateTime?: string;
|
||||
managerUser?: User;
|
||||
orgId?: number;
|
||||
orgName?: string;
|
||||
}
|
||||
|
||||
export interface VivoStoreParam extends PageParam {
|
||||
keywords: string;
|
||||
}
|
||||
Reference in New Issue
Block a user