style(api): 统一代码格式化规范
- 调整 import 语句格式,统一空格和引号风格 - 修复函数参数跨行时的格式对齐问题 - 清理多余空行和注释中的空白字符 - 统一对象属性结尾逗号的使用规范 - 规范化字符串拼接和模板语法的格式 - 优化长参数列表的换行和缩进格式
This commit is contained in:
@@ -6,7 +6,7 @@ import type { PageParam } from '@/api';
|
||||
export interface BszxBranch {
|
||||
// ID
|
||||
id?: number;
|
||||
// 分部名称
|
||||
// 分部名称
|
||||
name?: string;
|
||||
// 排序(数字越小越靠前)
|
||||
sortNumber?: number;
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import request from '@/utils/request';
|
||||
import type { ApiResult, PageResult } from '@/api';
|
||||
import { MODULES_API_URL } from '@/config/setting';
|
||||
import {ShopOrder, ShopOrderParam} from "@/api/shop/shopOrder/model";
|
||||
import { ShopOrder, ShopOrderParam } from '@/api/shop/shopOrder/model';
|
||||
|
||||
/**
|
||||
* 分页查询百色中学-捐款记录
|
||||
@@ -19,7 +19,6 @@ export async function pageBszxOrder(params: ShopOrderParam) {
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 统计订单总金额(只统计有效订单)
|
||||
*/
|
||||
|
||||
@@ -2,7 +2,7 @@ import request from '@/utils/request';
|
||||
import type { ApiResult, PageResult } from '@/api';
|
||||
import type { BszxPay, BszxPayParam } from './model';
|
||||
import { MODULES_API_URL } from '@/config/setting';
|
||||
import {ShopOrder} from "@/api/shop/shopOrder/model";
|
||||
import { ShopOrder } from '@/api/shop/shopOrder/model';
|
||||
|
||||
/**
|
||||
* 分页查询百色中学-捐款记录
|
||||
|
||||
@@ -2,7 +2,7 @@ import request from '@/utils/request';
|
||||
import type { ApiResult, PageResult } from '@/api';
|
||||
import type { BszxPayRanking, BszxPayRankingParam } from './model';
|
||||
import { MODULES_API_URL } from '@/config/setting';
|
||||
import {BszxClass, BszxClassParam} from "@/api/bszx/bszxClass/model";
|
||||
import { BszxClass, BszxClassParam } from '@/api/bszx/bszxClass/model';
|
||||
|
||||
/**
|
||||
* 分页查询百色中学-捐款排行
|
||||
@@ -62,8 +62,6 @@ export async function ranking2(params?: BszxClassParam) {
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* 添加百色中学-捐款排行
|
||||
*/
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import request from '@/utils/request';
|
||||
import type {ApiResult, PageResult} from '@/api';
|
||||
import type {CmsArticle, CmsArticleParam} from './model';
|
||||
import type { ApiResult, PageResult } from '@/api';
|
||||
import type { CmsArticle, CmsArticleParam } from './model';
|
||||
|
||||
/**
|
||||
* 分页查询文章
|
||||
@@ -22,12 +22,9 @@ export async function pageCmsArticle(params: CmsArticleParam) {
|
||||
* 查询文章列表
|
||||
*/
|
||||
export async function listCmsArticle(params?: CmsArticleParam) {
|
||||
const res = await request.get<ApiResult<CmsArticle[]>>(
|
||||
'/cms/cms-article',
|
||||
{
|
||||
params
|
||||
}
|
||||
);
|
||||
const res = await request.get<ApiResult<CmsArticle[]>>('/cms/cms-article', {
|
||||
params
|
||||
});
|
||||
if (res.data.code === 0 && res.data.data) {
|
||||
return res.data.data;
|
||||
}
|
||||
@@ -38,10 +35,7 @@ export async function listCmsArticle(params?: CmsArticleParam) {
|
||||
* 添加文章
|
||||
*/
|
||||
export async function addCmsArticle(data: CmsArticle) {
|
||||
const res = await request.post<ApiResult<unknown>>(
|
||||
'/cms/cms-article',
|
||||
data
|
||||
);
|
||||
const res = await request.post<ApiResult<unknown>>('/cms/cms-article', data);
|
||||
if (res.data.code === 0) {
|
||||
return res.data.message;
|
||||
}
|
||||
@@ -52,10 +46,7 @@ export async function addCmsArticle(data: CmsArticle) {
|
||||
* 修改文章
|
||||
*/
|
||||
export async function updateCmsArticle(data: CmsArticle) {
|
||||
const res = await request.put<ApiResult<unknown>>(
|
||||
'/cms/cms-article',
|
||||
data
|
||||
);
|
||||
const res = await request.put<ApiResult<unknown>>('/cms/cms-article', data);
|
||||
if (res.data.code === 0) {
|
||||
return res.data.message;
|
||||
}
|
||||
@@ -141,7 +132,6 @@ export async function getCount(params: CmsArticleParam) {
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 文章批量导入
|
||||
*/
|
||||
|
||||
@@ -79,7 +79,9 @@ export async function removeCmsArticleComment(id?: number) {
|
||||
/**
|
||||
* 批量删除文章评论表
|
||||
*/
|
||||
export async function removeBatchCmsArticleComment(data: (number | undefined)[]) {
|
||||
export async function removeBatchCmsArticleComment(
|
||||
data: (number | undefined)[]
|
||||
) {
|
||||
const res = await request.delete<ApiResult<unknown>>(
|
||||
MODULES_API_URL + '/cms/cms-article-comment/batch',
|
||||
{
|
||||
|
||||
@@ -79,7 +79,9 @@ export async function removeCmsArticleContent(id?: number) {
|
||||
/**
|
||||
* 批量删除文章记录表
|
||||
*/
|
||||
export async function removeBatchCmsArticleContent(data: (number | undefined)[]) {
|
||||
export async function removeBatchCmsArticleContent(
|
||||
data: (number | undefined)[]
|
||||
) {
|
||||
const res = await request.delete<ApiResult<unknown>>(
|
||||
MODULES_API_URL + '/cms/cms-article-content/batch',
|
||||
{
|
||||
|
||||
@@ -4,7 +4,7 @@ import type { PageParam } from '@/api';
|
||||
* 文章记录表
|
||||
*/
|
||||
export interface CmsArticleContent {
|
||||
//
|
||||
//
|
||||
id?: number;
|
||||
// 文章ID
|
||||
articleId?: number;
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import request from '@/utils/request';
|
||||
import type { ApiResult, PageResult } from '@/api';
|
||||
import type { CmsDomain, CmsDomainParam } from './model';
|
||||
import { SERVER_API_URL} from '@/config/setting';
|
||||
import { SERVER_API_URL } from '@/config/setting';
|
||||
|
||||
/**
|
||||
* 分页查询网站域名记录表
|
||||
@@ -135,16 +135,17 @@ export async function resolvable(id: number) {
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 根据授权主域名
|
||||
*/
|
||||
export async function getAuthorizedDomain() {
|
||||
if(!localStorage.getItem('WebsiteId')){
|
||||
if (!localStorage.getItem('WebsiteId')) {
|
||||
return false;
|
||||
}
|
||||
const res = await request.get<ApiResult<CmsDomain>>(
|
||||
SERVER_API_URL + '/cms/cms-domain/getAuthorizedDomain/' + localStorage.getItem('WebsiteId')
|
||||
SERVER_API_URL +
|
||||
'/cms/cms-domain/getAuthorizedDomain/' +
|
||||
localStorage.getItem('WebsiteId')
|
||||
);
|
||||
if (res.data.code === 0 && res.data.data) {
|
||||
return res.data.data;
|
||||
|
||||
@@ -6,7 +6,7 @@ import type { PageParam } from '@/api';
|
||||
export interface CmsDomain {
|
||||
// ID
|
||||
id?: number;
|
||||
// 类型 0赠送域名 1绑定域名
|
||||
// 类型 0赠送域名 1绑定域名
|
||||
type?: number;
|
||||
// 域名
|
||||
domain?: string;
|
||||
|
||||
@@ -120,7 +120,6 @@ export async function getCmsNavigation(id: number) {
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 根据code查询导航
|
||||
*/
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import request from '@/utils/request';
|
||||
import type { ApiResult, PageResult } from '@/api';
|
||||
import type { CmsWebsite, CmsWebsiteParam } from './model';
|
||||
import {MODULES_API_URL} from '@/config/setting';
|
||||
import { MODULES_API_URL } from '@/config/setting';
|
||||
|
||||
/**
|
||||
* 分页查询网站信息记录表
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import type { PageParam } from '@/api';
|
||||
import {CmsWebsiteSetting} from "@/api/cms/cmsWebsiteSetting/model";
|
||||
import {CmsNavigation} from "@/api/cms/cmsNavigation/model";
|
||||
import { CmsWebsiteSetting } from '@/api/cms/cmsWebsiteSetting/model';
|
||||
import { CmsNavigation } from '@/api/cms/cmsNavigation/model';
|
||||
|
||||
/**
|
||||
* 网站信息记录表
|
||||
@@ -43,7 +43,7 @@ export interface CmsWebsite {
|
||||
// 应用类型 0应用 1插件
|
||||
plugin?: boolean;
|
||||
// 默认编辑器
|
||||
editor?: number,
|
||||
editor?: number;
|
||||
// 服务到期时间
|
||||
expirationTime?: string;
|
||||
// 模版ID
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import request from '@/utils/request';
|
||||
import type { ApiResult, PageResult } from '@/api';
|
||||
import type {CmsWebsiteField, CmsWebsiteFieldParam, Config} from './model';
|
||||
import {MODULES_API_URL, TEMPLATE_ID} from '@/config/setting';
|
||||
import type { CmsWebsiteField, CmsWebsiteFieldParam, Config } from './model';
|
||||
import { MODULES_API_URL, TEMPLATE_ID } from '@/config/setting';
|
||||
|
||||
/**
|
||||
* 分页查询应用参数
|
||||
|
||||
@@ -62,4 +62,4 @@ export interface Config {
|
||||
ApiUrl?: string;
|
||||
// 添加主题配置项
|
||||
theme?: string;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -79,7 +79,9 @@ export async function removeCmsWebsiteSetting(id?: number) {
|
||||
/**
|
||||
* 批量删除网站设置
|
||||
*/
|
||||
export async function removeBatchCmsWebsiteSetting(data: (number | undefined)[]) {
|
||||
export async function removeBatchCmsWebsiteSetting(
|
||||
data: (number | undefined)[]
|
||||
) {
|
||||
const res = await request.delete<ApiResult<unknown>>(
|
||||
MODULES_API_URL + '/cms/cms-website-setting/batch',
|
||||
{
|
||||
|
||||
@@ -1,17 +1,21 @@
|
||||
import request from '@/utils/request';
|
||||
import type { ApiResult, PageResult } from '@/api';
|
||||
import type { CreditAdministrativeLicense, CreditAdministrativeLicenseParam } from './model';
|
||||
import type {
|
||||
CreditAdministrativeLicense,
|
||||
CreditAdministrativeLicenseParam
|
||||
} from './model';
|
||||
|
||||
/**
|
||||
* 分页查询行政许可
|
||||
*/
|
||||
export async function pageCreditAdministrativeLicense(params: CreditAdministrativeLicenseParam) {
|
||||
const res = await request.get<ApiResult<PageResult<CreditAdministrativeLicense>>>(
|
||||
'/credit/credit-administrative-license/page',
|
||||
{
|
||||
params
|
||||
}
|
||||
);
|
||||
export async function pageCreditAdministrativeLicense(
|
||||
params: CreditAdministrativeLicenseParam
|
||||
) {
|
||||
const res = await request.get<
|
||||
ApiResult<PageResult<CreditAdministrativeLicense>>
|
||||
>('/credit/credit-administrative-license/page', {
|
||||
params
|
||||
});
|
||||
if (res.data.code === 0) {
|
||||
return res.data.data;
|
||||
}
|
||||
@@ -21,7 +25,9 @@ export async function pageCreditAdministrativeLicense(params: CreditAdministrati
|
||||
/**
|
||||
* 查询行政许可列表
|
||||
*/
|
||||
export async function listCreditAdministrativeLicense(params?: CreditAdministrativeLicenseParam) {
|
||||
export async function listCreditAdministrativeLicense(
|
||||
params?: CreditAdministrativeLicenseParam
|
||||
) {
|
||||
const res = await request.get<ApiResult<CreditAdministrativeLicense[]>>(
|
||||
'/credit/credit-administrative-license',
|
||||
{
|
||||
@@ -37,7 +43,9 @@ export async function listCreditAdministrativeLicense(params?: CreditAdministrat
|
||||
/**
|
||||
* 添加行政许可
|
||||
*/
|
||||
export async function addCreditAdministrativeLicense(data: CreditAdministrativeLicense) {
|
||||
export async function addCreditAdministrativeLicense(
|
||||
data: CreditAdministrativeLicense
|
||||
) {
|
||||
const res = await request.post<ApiResult<unknown>>(
|
||||
'/credit/credit-administrative-license',
|
||||
data
|
||||
@@ -51,7 +59,9 @@ export async function addCreditAdministrativeLicense(data: CreditAdministrativeL
|
||||
/**
|
||||
* 修改行政许可
|
||||
*/
|
||||
export async function updateCreditAdministrativeLicense(data: CreditAdministrativeLicense) {
|
||||
export async function updateCreditAdministrativeLicense(
|
||||
data: CreditAdministrativeLicense
|
||||
) {
|
||||
const res = await request.put<ApiResult<unknown>>(
|
||||
'/credit/credit-administrative-license',
|
||||
data
|
||||
@@ -78,7 +88,9 @@ export async function removeCreditAdministrativeLicense(id?: number) {
|
||||
/**
|
||||
* 批量删除行政许可
|
||||
*/
|
||||
export async function removeBatchCreditAdministrativeLicense(data: (number | undefined)[]) {
|
||||
export async function removeBatchCreditAdministrativeLicense(
|
||||
data: (number | undefined)[]
|
||||
) {
|
||||
const res = await request.delete<ApiResult<unknown>>(
|
||||
'/credit/credit-administrative-license/batch',
|
||||
{
|
||||
@@ -107,7 +119,10 @@ export async function getCreditAdministrativeLicense(id: number) {
|
||||
/**
|
||||
* 导入行政许可
|
||||
*/
|
||||
export async function importCreditAdministrativeLicense(file: File, companyId?: number) {
|
||||
export async function importCreditAdministrativeLicense(
|
||||
file: File,
|
||||
companyId?: number
|
||||
) {
|
||||
const formData = new FormData();
|
||||
formData.append('file', file);
|
||||
if (companyId != null) {
|
||||
|
||||
@@ -78,7 +78,9 @@ export async function removeCreditBankruptcy(id?: number) {
|
||||
/**
|
||||
* 批量删除破产重整
|
||||
*/
|
||||
export async function removeBatchCreditBankruptcy(data: (number | undefined)[]) {
|
||||
export async function removeBatchCreditBankruptcy(
|
||||
data: (number | undefined)[]
|
||||
) {
|
||||
const res = await request.delete<ApiResult<unknown>>(
|
||||
'/credit/credit-bankruptcy/batch',
|
||||
{
|
||||
|
||||
@@ -5,7 +5,9 @@ import type { CreditBreachOfTrust, CreditBreachOfTrustParam } from './model';
|
||||
/**
|
||||
* 分页查询失信被执行人
|
||||
*/
|
||||
export async function pageCreditBreachOfTrust(params: CreditBreachOfTrustParam) {
|
||||
export async function pageCreditBreachOfTrust(
|
||||
params: CreditBreachOfTrustParam
|
||||
) {
|
||||
const res = await request.get<ApiResult<PageResult<CreditBreachOfTrust>>>(
|
||||
'/credit/credit-breach-of-trust/page',
|
||||
{
|
||||
@@ -21,7 +23,9 @@ export async function pageCreditBreachOfTrust(params: CreditBreachOfTrustParam)
|
||||
/**
|
||||
* 查询失信被执行人列表
|
||||
*/
|
||||
export async function listCreditBreachOfTrust(params?: CreditBreachOfTrustParam) {
|
||||
export async function listCreditBreachOfTrust(
|
||||
params?: CreditBreachOfTrustParam
|
||||
) {
|
||||
const res = await request.get<ApiResult<CreditBreachOfTrust[]>>(
|
||||
'/credit/credit-breach-of-trust',
|
||||
{
|
||||
@@ -78,7 +82,9 @@ export async function removeCreditBreachOfTrust(id?: number) {
|
||||
/**
|
||||
* 批量删除失信被执行人
|
||||
*/
|
||||
export async function removeBatchCreditBreachOfTrust(data: (number | undefined)[]) {
|
||||
export async function removeBatchCreditBreachOfTrust(
|
||||
data: (number | undefined)[]
|
||||
) {
|
||||
const res = await request.delete<ApiResult<unknown>>(
|
||||
'/credit/credit-breach-of-trust/batch',
|
||||
{
|
||||
@@ -107,7 +113,10 @@ export async function getCreditBreachOfTrust(id: number) {
|
||||
/**
|
||||
* 导入失信被执行人
|
||||
*/
|
||||
export async function importCreditBreachOfTrust(file: File, companyId?: number) {
|
||||
export async function importCreditBreachOfTrust(
|
||||
file: File,
|
||||
companyId?: number
|
||||
) {
|
||||
const formData = new FormData();
|
||||
formData.append('file', file);
|
||||
if (companyId != null) {
|
||||
|
||||
@@ -78,7 +78,9 @@ export async function removeCreditCaseFiling(id?: number) {
|
||||
/**
|
||||
* 批量删除司法大数据
|
||||
*/
|
||||
export async function removeBatchCreditCaseFiling(data: (number | undefined)[]) {
|
||||
export async function removeBatchCreditCaseFiling(
|
||||
data: (number | undefined)[]
|
||||
) {
|
||||
const res = await request.delete<ApiResult<unknown>>(
|
||||
'/credit/credit-case-filing/batch',
|
||||
{
|
||||
|
||||
@@ -78,7 +78,9 @@ export async function removeCreditCompetitor(id?: number) {
|
||||
/**
|
||||
* 批量删除竞争对手
|
||||
*/
|
||||
export async function removeBatchCreditCompetitor(data: (number | undefined)[]) {
|
||||
export async function removeBatchCreditCompetitor(
|
||||
data: (number | undefined)[]
|
||||
) {
|
||||
const res = await request.delete<ApiResult<unknown>>(
|
||||
'/credit/credit-competitor/batch',
|
||||
{
|
||||
|
||||
@@ -1,11 +1,16 @@
|
||||
import request from '@/utils/request';
|
||||
import type { ApiResult, PageResult } from '@/api';
|
||||
import type { CreditCourtAnnouncement, CreditCourtAnnouncementParam } from './model';
|
||||
import type {
|
||||
CreditCourtAnnouncement,
|
||||
CreditCourtAnnouncementParam
|
||||
} from './model';
|
||||
|
||||
/**
|
||||
* 分页查询法院公告司法大数据
|
||||
*/
|
||||
export async function pageCreditCourtAnnouncement(params: CreditCourtAnnouncementParam) {
|
||||
export async function pageCreditCourtAnnouncement(
|
||||
params: CreditCourtAnnouncementParam
|
||||
) {
|
||||
const res = await request.get<ApiResult<PageResult<CreditCourtAnnouncement>>>(
|
||||
'/credit/credit-court-announcement/page',
|
||||
{
|
||||
@@ -21,7 +26,9 @@ export async function pageCreditCourtAnnouncement(params: CreditCourtAnnouncemen
|
||||
/**
|
||||
* 查询法院公告司法大数据列表
|
||||
*/
|
||||
export async function listCreditCourtAnnouncement(params?: CreditCourtAnnouncementParam) {
|
||||
export async function listCreditCourtAnnouncement(
|
||||
params?: CreditCourtAnnouncementParam
|
||||
) {
|
||||
const res = await request.get<ApiResult<CreditCourtAnnouncement[]>>(
|
||||
'/credit/credit-court-announcement',
|
||||
{
|
||||
@@ -37,7 +44,9 @@ export async function listCreditCourtAnnouncement(params?: CreditCourtAnnounceme
|
||||
/**
|
||||
* 添加法院公告司法大数据
|
||||
*/
|
||||
export async function addCreditCourtAnnouncement(data: CreditCourtAnnouncement) {
|
||||
export async function addCreditCourtAnnouncement(
|
||||
data: CreditCourtAnnouncement
|
||||
) {
|
||||
const res = await request.post<ApiResult<unknown>>(
|
||||
'/credit/credit-court-announcement',
|
||||
data
|
||||
@@ -51,7 +60,9 @@ export async function addCreditCourtAnnouncement(data: CreditCourtAnnouncement)
|
||||
/**
|
||||
* 修改法院公告司法大数据
|
||||
*/
|
||||
export async function updateCreditCourtAnnouncement(data: CreditCourtAnnouncement) {
|
||||
export async function updateCreditCourtAnnouncement(
|
||||
data: CreditCourtAnnouncement
|
||||
) {
|
||||
const res = await request.put<ApiResult<unknown>>(
|
||||
'/credit/credit-court-announcement',
|
||||
data
|
||||
@@ -78,7 +89,9 @@ export async function removeCreditCourtAnnouncement(id?: number) {
|
||||
/**
|
||||
* 批量删除法院公告司法大数据
|
||||
*/
|
||||
export async function removeBatchCreditCourtAnnouncement(data: (number | undefined)[]) {
|
||||
export async function removeBatchCreditCourtAnnouncement(
|
||||
data: (number | undefined)[]
|
||||
) {
|
||||
const res = await request.delete<ApiResult<unknown>>(
|
||||
'/credit/credit-court-announcement/batch',
|
||||
{
|
||||
@@ -107,7 +120,10 @@ export async function getCreditCourtAnnouncement(id: number) {
|
||||
/**
|
||||
* 导入法院公告司法大数据
|
||||
*/
|
||||
export async function importCreditCourtAnnouncement(file: File, companyId?: number) {
|
||||
export async function importCreditCourtAnnouncement(
|
||||
file: File,
|
||||
companyId?: number
|
||||
) {
|
||||
const formData = new FormData();
|
||||
formData.append('file', file);
|
||||
if (companyId != null) {
|
||||
|
||||
@@ -78,7 +78,9 @@ export async function removeCreditCourtSession(id?: number) {
|
||||
/**
|
||||
* 批量删除开庭公告司法大数据
|
||||
*/
|
||||
export async function removeBatchCreditCourtSession(data: (number | undefined)[]) {
|
||||
export async function removeBatchCreditCourtSession(
|
||||
data: (number | undefined)[]
|
||||
) {
|
||||
const res = await request.delete<ApiResult<unknown>>(
|
||||
'/credit/credit-court-session/batch',
|
||||
{
|
||||
|
||||
@@ -5,7 +5,9 @@ import type { CreditDeliveryNotice, CreditDeliveryNoticeParam } from './model';
|
||||
/**
|
||||
* 分页查询送达公告司法大数据
|
||||
*/
|
||||
export async function pageCreditDeliveryNotice(params: CreditDeliveryNoticeParam) {
|
||||
export async function pageCreditDeliveryNotice(
|
||||
params: CreditDeliveryNoticeParam
|
||||
) {
|
||||
const res = await request.get<ApiResult<PageResult<CreditDeliveryNotice>>>(
|
||||
'/credit/credit-delivery-notice/page',
|
||||
{
|
||||
@@ -21,7 +23,9 @@ export async function pageCreditDeliveryNotice(params: CreditDeliveryNoticeParam
|
||||
/**
|
||||
* 查询送达公告司法大数据列表
|
||||
*/
|
||||
export async function listCreditDeliveryNotice(params?: CreditDeliveryNoticeParam) {
|
||||
export async function listCreditDeliveryNotice(
|
||||
params?: CreditDeliveryNoticeParam
|
||||
) {
|
||||
const res = await request.get<ApiResult<CreditDeliveryNotice[]>>(
|
||||
'/credit/credit-delivery-notice',
|
||||
{
|
||||
@@ -78,7 +82,9 @@ export async function removeCreditDeliveryNotice(id?: number) {
|
||||
/**
|
||||
* 批量删除送达公告司法大数据
|
||||
*/
|
||||
export async function removeBatchCreditDeliveryNotice(data: (number | undefined)[]) {
|
||||
export async function removeBatchCreditDeliveryNotice(
|
||||
data: (number | undefined)[]
|
||||
) {
|
||||
const res = await request.delete<ApiResult<unknown>>(
|
||||
'/credit/credit-delivery-notice/batch',
|
||||
{
|
||||
@@ -107,7 +113,10 @@ export async function getCreditDeliveryNotice(id: number) {
|
||||
/**
|
||||
* 导入送达公告司法大数据
|
||||
*/
|
||||
export async function importCreditDeliveryNotice(file: File, companyId?: number) {
|
||||
export async function importCreditDeliveryNotice(
|
||||
file: File,
|
||||
companyId?: number
|
||||
) {
|
||||
const formData = new FormData();
|
||||
formData.append('file', file);
|
||||
if (companyId != null) {
|
||||
|
||||
@@ -78,7 +78,9 @@ export async function removeCreditFinalVersion(id?: number) {
|
||||
/**
|
||||
* 批量删除终本案件
|
||||
*/
|
||||
export async function removeBatchCreditFinalVersion(data: (number | undefined)[]) {
|
||||
export async function removeBatchCreditFinalVersion(
|
||||
data: (number | undefined)[]
|
||||
) {
|
||||
const res = await request.delete<ApiResult<unknown>>(
|
||||
'/credit/credit-final-version/batch',
|
||||
{
|
||||
|
||||
@@ -1,17 +1,21 @@
|
||||
import request from '@/utils/request';
|
||||
import type { ApiResult, PageResult } from '@/api';
|
||||
import type { CreditHistoricalLegalPerson, CreditHistoricalLegalPersonParam } from './model';
|
||||
import type {
|
||||
CreditHistoricalLegalPerson,
|
||||
CreditHistoricalLegalPersonParam
|
||||
} from './model';
|
||||
|
||||
/**
|
||||
* 分页查询历史法定代表人
|
||||
*/
|
||||
export async function pageCreditHistoricalLegalPerson(params: CreditHistoricalLegalPersonParam) {
|
||||
const res = await request.get<ApiResult<PageResult<CreditHistoricalLegalPerson>>>(
|
||||
'/credit/credit-historical-legal-person/page',
|
||||
{
|
||||
params
|
||||
}
|
||||
);
|
||||
export async function pageCreditHistoricalLegalPerson(
|
||||
params: CreditHistoricalLegalPersonParam
|
||||
) {
|
||||
const res = await request.get<
|
||||
ApiResult<PageResult<CreditHistoricalLegalPerson>>
|
||||
>('/credit/credit-historical-legal-person/page', {
|
||||
params
|
||||
});
|
||||
if (res.data.code === 0) {
|
||||
return res.data.data;
|
||||
}
|
||||
@@ -21,7 +25,9 @@ export async function pageCreditHistoricalLegalPerson(params: CreditHistoricalLe
|
||||
/**
|
||||
* 查询历史法定代表人列表
|
||||
*/
|
||||
export async function listCreditHistoricalLegalPerson(params?: CreditHistoricalLegalPersonParam) {
|
||||
export async function listCreditHistoricalLegalPerson(
|
||||
params?: CreditHistoricalLegalPersonParam
|
||||
) {
|
||||
const res = await request.get<ApiResult<CreditHistoricalLegalPerson[]>>(
|
||||
'/credit/credit-historical-legal-person',
|
||||
{
|
||||
@@ -37,7 +43,9 @@ export async function listCreditHistoricalLegalPerson(params?: CreditHistoricalL
|
||||
/**
|
||||
* 添加历史法定代表人
|
||||
*/
|
||||
export async function addCreditHistoricalLegalPerson(data: CreditHistoricalLegalPerson) {
|
||||
export async function addCreditHistoricalLegalPerson(
|
||||
data: CreditHistoricalLegalPerson
|
||||
) {
|
||||
const res = await request.post<ApiResult<unknown>>(
|
||||
'/credit/credit-historical-legal-person',
|
||||
data
|
||||
@@ -51,7 +59,9 @@ export async function addCreditHistoricalLegalPerson(data: CreditHistoricalLegal
|
||||
/**
|
||||
* 修改历史法定代表人
|
||||
*/
|
||||
export async function updateCreditHistoricalLegalPerson(data: CreditHistoricalLegalPerson) {
|
||||
export async function updateCreditHistoricalLegalPerson(
|
||||
data: CreditHistoricalLegalPerson
|
||||
) {
|
||||
const res = await request.put<ApiResult<unknown>>(
|
||||
'/credit/credit-historical-legal-person',
|
||||
data
|
||||
@@ -78,7 +88,9 @@ export async function removeCreditHistoricalLegalPerson(id?: number) {
|
||||
/**
|
||||
* 批量删除历史法定代表人
|
||||
*/
|
||||
export async function removeBatchCreditHistoricalLegalPerson(data: (number | undefined)[]) {
|
||||
export async function removeBatchCreditHistoricalLegalPerson(
|
||||
data: (number | undefined)[]
|
||||
) {
|
||||
const res = await request.delete<ApiResult<unknown>>(
|
||||
'/credit/credit-historical-legal-person/batch',
|
||||
{
|
||||
|
||||
@@ -5,7 +5,9 @@ import type { CreditJudgmentDebtor, CreditJudgmentDebtorParam } from './model';
|
||||
/**
|
||||
* 分页查询被执行人
|
||||
*/
|
||||
export async function pageCreditJudgmentDebtor(params: CreditJudgmentDebtorParam) {
|
||||
export async function pageCreditJudgmentDebtor(
|
||||
params: CreditJudgmentDebtorParam
|
||||
) {
|
||||
const res = await request.get<ApiResult<PageResult<CreditJudgmentDebtor>>>(
|
||||
'/credit/credit-judgment-debtor/page',
|
||||
{
|
||||
@@ -21,7 +23,9 @@ export async function pageCreditJudgmentDebtor(params: CreditJudgmentDebtorParam
|
||||
/**
|
||||
* 查询被执行人列表
|
||||
*/
|
||||
export async function listCreditJudgmentDebtor(params?: CreditJudgmentDebtorParam) {
|
||||
export async function listCreditJudgmentDebtor(
|
||||
params?: CreditJudgmentDebtorParam
|
||||
) {
|
||||
const res = await request.get<ApiResult<CreditJudgmentDebtor[]>>(
|
||||
'/credit/credit-judgment-debtor',
|
||||
{
|
||||
@@ -78,7 +82,9 @@ export async function removeCreditJudgmentDebtor(id?: number) {
|
||||
/**
|
||||
* 批量删除被执行人
|
||||
*/
|
||||
export async function removeBatchCreditJudgmentDebtor(data: (number | undefined)[]) {
|
||||
export async function removeBatchCreditJudgmentDebtor(
|
||||
data: (number | undefined)[]
|
||||
) {
|
||||
const res = await request.delete<ApiResult<unknown>>(
|
||||
'/credit/credit-judgment-debtor/batch',
|
||||
{
|
||||
@@ -107,7 +113,10 @@ export async function getCreditJudgmentDebtor(id: number) {
|
||||
/**
|
||||
* 导入被执行人
|
||||
*/
|
||||
export async function importCreditJudgmentDebtor(file: File, companyId?: number) {
|
||||
export async function importCreditJudgmentDebtor(
|
||||
file: File,
|
||||
companyId?: number
|
||||
) {
|
||||
const formData = new FormData();
|
||||
formData.append('file', file);
|
||||
if (companyId != null) {
|
||||
|
||||
@@ -42,7 +42,6 @@ export interface CreditJudgmentDebtor {
|
||||
updateTime?: string;
|
||||
// 历史ID
|
||||
historyId?: number;
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -1,17 +1,21 @@
|
||||
import request from '@/utils/request';
|
||||
import type { ApiResult, PageResult } from '@/api';
|
||||
import type { CreditJudgmentDebtorHistory, CreditJudgmentDebtorHistoryParam } from './model';
|
||||
import type {
|
||||
CreditJudgmentDebtorHistory,
|
||||
CreditJudgmentDebtorHistoryParam
|
||||
} from './model';
|
||||
|
||||
/**
|
||||
* 分页查询被执行人
|
||||
*/
|
||||
export async function pageCreditJudgmentDebtorHistory(params: CreditJudgmentDebtorHistoryParam) {
|
||||
const res = await request.get<ApiResult<PageResult<CreditJudgmentDebtorHistory>>>(
|
||||
'/credit/credit-judgment-debtor-history/page',
|
||||
{
|
||||
params
|
||||
}
|
||||
);
|
||||
export async function pageCreditJudgmentDebtorHistory(
|
||||
params: CreditJudgmentDebtorHistoryParam
|
||||
) {
|
||||
const res = await request.get<
|
||||
ApiResult<PageResult<CreditJudgmentDebtorHistory>>
|
||||
>('/credit/credit-judgment-debtor-history/page', {
|
||||
params
|
||||
});
|
||||
if (res.data.code === 0) {
|
||||
return res.data.data;
|
||||
}
|
||||
@@ -21,7 +25,9 @@ export async function pageCreditJudgmentDebtorHistory(params: CreditJudgmentDebt
|
||||
/**
|
||||
* 查询被执行人列表
|
||||
*/
|
||||
export async function listCreditJudgmentDebtorHistory(params?: CreditJudgmentDebtorHistoryParam) {
|
||||
export async function listCreditJudgmentDebtorHistory(
|
||||
params?: CreditJudgmentDebtorHistoryParam
|
||||
) {
|
||||
const res = await request.get<ApiResult<CreditJudgmentDebtorHistory[]>>(
|
||||
'/credit/credit-judgment-debtor-history',
|
||||
{
|
||||
@@ -37,7 +43,9 @@ export async function listCreditJudgmentDebtorHistory(params?: CreditJudgmentDeb
|
||||
/**
|
||||
* 添加被执行人
|
||||
*/
|
||||
export async function addCreditJudgmentDebtorHistory(data: CreditJudgmentDebtorHistory) {
|
||||
export async function addCreditJudgmentDebtorHistory(
|
||||
data: CreditJudgmentDebtorHistory
|
||||
) {
|
||||
const res = await request.post<ApiResult<unknown>>(
|
||||
'/credit/credit-judgment-debtor-history',
|
||||
data
|
||||
@@ -51,7 +59,9 @@ export async function addCreditJudgmentDebtorHistory(data: CreditJudgmentDebtorH
|
||||
/**
|
||||
* 修改被执行人
|
||||
*/
|
||||
export async function updateCreditJudgmentDebtorHistory(data: CreditJudgmentDebtorHistory) {
|
||||
export async function updateCreditJudgmentDebtorHistory(
|
||||
data: CreditJudgmentDebtorHistory
|
||||
) {
|
||||
const res = await request.put<ApiResult<unknown>>(
|
||||
'/credit/credit-judgment-debtor-history',
|
||||
data
|
||||
@@ -78,7 +88,9 @@ export async function removeCreditJudgmentDebtorHistory(id?: number) {
|
||||
/**
|
||||
* 批量删除被执行人
|
||||
*/
|
||||
export async function removeBatchCreditJudgmentDebtorHistory(data: (number | undefined)[]) {
|
||||
export async function removeBatchCreditJudgmentDebtorHistory(
|
||||
data: (number | undefined)[]
|
||||
) {
|
||||
const res = await request.delete<ApiResult<unknown>>(
|
||||
'/credit/credit-judgment-debtor-history/batch',
|
||||
{
|
||||
|
||||
@@ -1,11 +1,16 @@
|
||||
import request from '@/utils/request';
|
||||
import type { ApiResult, PageResult } from '@/api';
|
||||
import type { CreditJudicialDocument, CreditJudicialDocumentParam } from './model';
|
||||
import type {
|
||||
CreditJudicialDocument,
|
||||
CreditJudicialDocumentParam
|
||||
} from './model';
|
||||
|
||||
/**
|
||||
* 分页查询裁判文书司法大数据
|
||||
*/
|
||||
export async function pageCreditJudicialDocument(params: CreditJudicialDocumentParam) {
|
||||
export async function pageCreditJudicialDocument(
|
||||
params: CreditJudicialDocumentParam
|
||||
) {
|
||||
const res = await request.get<ApiResult<PageResult<CreditJudicialDocument>>>(
|
||||
'/credit/credit-judicial-document/page',
|
||||
{
|
||||
@@ -21,7 +26,9 @@ export async function pageCreditJudicialDocument(params: CreditJudicialDocumentP
|
||||
/**
|
||||
* 查询裁判文书司法大数据列表
|
||||
*/
|
||||
export async function listCreditJudicialDocument(params?: CreditJudicialDocumentParam) {
|
||||
export async function listCreditJudicialDocument(
|
||||
params?: CreditJudicialDocumentParam
|
||||
) {
|
||||
const res = await request.get<ApiResult<CreditJudicialDocument[]>>(
|
||||
'/credit/credit-judicial-document',
|
||||
{
|
||||
@@ -51,7 +58,9 @@ export async function addCreditJudicialDocument(data: CreditJudicialDocument) {
|
||||
/**
|
||||
* 修改裁判文书司法大数据
|
||||
*/
|
||||
export async function updateCreditJudicialDocument(data: CreditJudicialDocument) {
|
||||
export async function updateCreditJudicialDocument(
|
||||
data: CreditJudicialDocument
|
||||
) {
|
||||
const res = await request.put<ApiResult<unknown>>(
|
||||
'/credit/credit-judicial-document',
|
||||
data
|
||||
@@ -78,7 +87,9 @@ export async function removeCreditJudicialDocument(id?: number) {
|
||||
/**
|
||||
* 批量删除裁判文书司法大数据
|
||||
*/
|
||||
export async function removeBatchCreditJudicialDocument(data: (number | undefined)[]) {
|
||||
export async function removeBatchCreditJudicialDocument(
|
||||
data: (number | undefined)[]
|
||||
) {
|
||||
const res = await request.delete<ApiResult<unknown>>(
|
||||
'/credit/credit-judicial-document/batch',
|
||||
{
|
||||
@@ -107,7 +118,10 @@ export async function getCreditJudicialDocument(id: number) {
|
||||
/**
|
||||
* 导入裁判文书司法大数据
|
||||
*/
|
||||
export async function importCreditJudicialDocument(file: File, companyId?: number) {
|
||||
export async function importCreditJudicialDocument(
|
||||
file: File,
|
||||
companyId?: number
|
||||
) {
|
||||
const formData = new FormData();
|
||||
formData.append('file', file);
|
||||
if (companyId != null) {
|
||||
|
||||
@@ -5,7 +5,9 @@ import type { CreditNearbyCompany, CreditNearbyCompanyParam } from './model';
|
||||
/**
|
||||
* 分页查询附近企业
|
||||
*/
|
||||
export async function pageCreditNearbyCompany(params: CreditNearbyCompanyParam) {
|
||||
export async function pageCreditNearbyCompany(
|
||||
params: CreditNearbyCompanyParam
|
||||
) {
|
||||
const res = await request.get<ApiResult<PageResult<CreditNearbyCompany>>>(
|
||||
'/credit/credit-nearby-company/page',
|
||||
{
|
||||
@@ -21,7 +23,9 @@ export async function pageCreditNearbyCompany(params: CreditNearbyCompanyParam)
|
||||
/**
|
||||
* 查询附近企业列表
|
||||
*/
|
||||
export async function listCreditNearbyCompany(params?: CreditNearbyCompanyParam) {
|
||||
export async function listCreditNearbyCompany(
|
||||
params?: CreditNearbyCompanyParam
|
||||
) {
|
||||
const res = await request.get<ApiResult<CreditNearbyCompany[]>>(
|
||||
'/credit/credit-nearby-company',
|
||||
{
|
||||
@@ -78,7 +82,9 @@ export async function removeCreditNearbyCompany(id?: number) {
|
||||
/**
|
||||
* 批量删除附近企业
|
||||
*/
|
||||
export async function removeBatchCreditNearbyCompany(data: (number | undefined)[]) {
|
||||
export async function removeBatchCreditNearbyCompany(
|
||||
data: (number | undefined)[]
|
||||
) {
|
||||
const res = await request.delete<ApiResult<unknown>>(
|
||||
'/credit/credit-nearby-company/batch',
|
||||
{
|
||||
@@ -107,7 +113,10 @@ export async function getCreditNearbyCompany(id: number) {
|
||||
/**
|
||||
* 导入附近企业
|
||||
*/
|
||||
export async function importCreditNearbyCompany(file: File, companyId?: number) {
|
||||
export async function importCreditNearbyCompany(
|
||||
file: File,
|
||||
companyId?: number
|
||||
) {
|
||||
const formData = new FormData();
|
||||
formData.append('file', file);
|
||||
if (companyId != null) {
|
||||
|
||||
@@ -78,7 +78,9 @@ export async function removeCreditRiskRelation(id?: number) {
|
||||
/**
|
||||
* 批量删除风险关系表
|
||||
*/
|
||||
export async function removeBatchCreditRiskRelation(data: (number | undefined)[]) {
|
||||
export async function removeBatchCreditRiskRelation(
|
||||
data: (number | undefined)[]
|
||||
) {
|
||||
const res = await request.delete<ApiResult<unknown>>(
|
||||
'/credit/credit-risk-relation/batch',
|
||||
{
|
||||
|
||||
@@ -1,17 +1,21 @@
|
||||
import request from '@/utils/request';
|
||||
import type { ApiResult, PageResult } from '@/api';
|
||||
import type { CreditSuspectedRelationship, CreditSuspectedRelationshipParam } from './model';
|
||||
import type {
|
||||
CreditSuspectedRelationship,
|
||||
CreditSuspectedRelationshipParam
|
||||
} from './model';
|
||||
|
||||
/**
|
||||
* 分页查询疑似关系
|
||||
*/
|
||||
export async function pageCreditSuspectedRelationship(params: CreditSuspectedRelationshipParam) {
|
||||
const res = await request.get<ApiResult<PageResult<CreditSuspectedRelationship>>>(
|
||||
'/credit/credit-suspected-relationship/page',
|
||||
{
|
||||
params
|
||||
}
|
||||
);
|
||||
export async function pageCreditSuspectedRelationship(
|
||||
params: CreditSuspectedRelationshipParam
|
||||
) {
|
||||
const res = await request.get<
|
||||
ApiResult<PageResult<CreditSuspectedRelationship>>
|
||||
>('/credit/credit-suspected-relationship/page', {
|
||||
params
|
||||
});
|
||||
if (res.data.code === 0) {
|
||||
return res.data.data;
|
||||
}
|
||||
@@ -21,7 +25,9 @@ export async function pageCreditSuspectedRelationship(params: CreditSuspectedRel
|
||||
/**
|
||||
* 查询疑似关系列表
|
||||
*/
|
||||
export async function listCreditSuspectedRelationship(params?: CreditSuspectedRelationshipParam) {
|
||||
export async function listCreditSuspectedRelationship(
|
||||
params?: CreditSuspectedRelationshipParam
|
||||
) {
|
||||
const res = await request.get<ApiResult<CreditSuspectedRelationship[]>>(
|
||||
'/credit/credit-suspected-relationship',
|
||||
{
|
||||
@@ -37,7 +43,9 @@ export async function listCreditSuspectedRelationship(params?: CreditSuspectedRe
|
||||
/**
|
||||
* 添加疑似关系
|
||||
*/
|
||||
export async function addCreditSuspectedRelationship(data: CreditSuspectedRelationship) {
|
||||
export async function addCreditSuspectedRelationship(
|
||||
data: CreditSuspectedRelationship
|
||||
) {
|
||||
const res = await request.post<ApiResult<unknown>>(
|
||||
'/credit/credit-suspected-relationship',
|
||||
data
|
||||
@@ -51,7 +59,9 @@ export async function addCreditSuspectedRelationship(data: CreditSuspectedRelati
|
||||
/**
|
||||
* 修改疑似关系
|
||||
*/
|
||||
export async function updateCreditSuspectedRelationship(data: CreditSuspectedRelationship) {
|
||||
export async function updateCreditSuspectedRelationship(
|
||||
data: CreditSuspectedRelationship
|
||||
) {
|
||||
const res = await request.put<ApiResult<unknown>>(
|
||||
'/credit/credit-suspected-relationship',
|
||||
data
|
||||
@@ -78,7 +88,9 @@ export async function removeCreditSuspectedRelationship(id?: number) {
|
||||
/**
|
||||
* 批量删除疑似关系
|
||||
*/
|
||||
export async function removeBatchCreditSuspectedRelationship(data: (number | undefined)[]) {
|
||||
export async function removeBatchCreditSuspectedRelationship(
|
||||
data: (number | undefined)[]
|
||||
) {
|
||||
const res = await request.delete<ApiResult<unknown>>(
|
||||
'/credit/credit-suspected-relationship/batch',
|
||||
{
|
||||
|
||||
@@ -2,10 +2,10 @@ import request from '@/utils/request';
|
||||
import type { ApiResult } from '@/api';
|
||||
import type { User } from '@/api/system/user/model';
|
||||
import type { UpdatePasswordParam, NoticeResult } from './model';
|
||||
import {SERVER_API_URL} from '@/config/setting';
|
||||
import { SERVER_API_URL } from '@/config/setting';
|
||||
import { Company } from '@/api/system/company/model';
|
||||
import { CmsWebsite } from '@/api/cms/cmsWebsite/model';
|
||||
import {Menu} from "@/api/system/menu/model";
|
||||
import { Menu } from '@/api/system/menu/model';
|
||||
|
||||
/**
|
||||
* 获取当前登录的用户信息、菜单、权限、角色
|
||||
@@ -24,12 +24,9 @@ export async function getTenantInfo(): Promise<Company> {
|
||||
* 获取网站信息 https://cms-api.websoft.top/api
|
||||
*/
|
||||
export async function getSiteInfo() {
|
||||
const res = await request.get<ApiResult<CmsWebsite>>(
|
||||
'/shop/getShopInfo',
|
||||
{
|
||||
params: {}
|
||||
}
|
||||
);
|
||||
const res = await request.get<ApiResult<CmsWebsite>>('/shop/getShopInfo', {
|
||||
params: {}
|
||||
});
|
||||
if (res.data.code === 0 && res.data.data) {
|
||||
return res.data.data;
|
||||
}
|
||||
@@ -66,9 +63,7 @@ export async function updateLoginUser(data: User) {
|
||||
* @return
|
||||
*/
|
||||
export async function getServerTime() {
|
||||
const res = await request.get<ApiResult<any>>(
|
||||
'/cms/website/getServerTime'
|
||||
);
|
||||
const res = await request.get<ApiResult<any>>('/cms/website/getServerTime');
|
||||
if (res.data.code === 0 && res.data.data) {
|
||||
return res.data.data;
|
||||
}
|
||||
@@ -80,9 +75,7 @@ export async function getServerTime() {
|
||||
* @return
|
||||
*/
|
||||
export async function getNext7day() {
|
||||
const res = await request.get<ApiResult<any>>(
|
||||
'/cms/website/getNext7day'
|
||||
);
|
||||
const res = await request.get<ApiResult<any>>('/cms/website/getNext7day');
|
||||
console.log('res.data.code: ', res.data.code);
|
||||
if (res.data.code === 0 && res.data.data) {
|
||||
return res.data.data;
|
||||
@@ -118,9 +111,10 @@ export async function updatePassword(
|
||||
/**
|
||||
* 创建完整网站并初始化
|
||||
*/
|
||||
export async function createCmsWebSite(data: CmsWebsite){
|
||||
export async function createCmsWebSite(data: CmsWebsite) {
|
||||
const res = await request.post<ApiResult<unknown>>(
|
||||
SERVER_API_URL + '/superAdminRegister',data
|
||||
SERVER_API_URL + '/superAdminRegister',
|
||||
data
|
||||
);
|
||||
if (res.data.code === 0) {
|
||||
return res.data.message;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import {MODULES_API_URL} from '@/config/setting';
|
||||
import { MODULES_API_URL } from '@/config/setting';
|
||||
|
||||
/**
|
||||
* 小程序码参数
|
||||
|
||||
@@ -6,9 +6,9 @@ import { SERVER_API_URL } from '@/config/setting';
|
||||
* 二维码生成响应数据
|
||||
*/
|
||||
export interface QrCodeResponse {
|
||||
token: string; // 二维码唯一标识token
|
||||
qrCode: string; // 二维码内容
|
||||
expiresIn: number; // 过期时间(秒)
|
||||
token: string; // 二维码唯一标识token
|
||||
qrCode: string; // 二维码内容
|
||||
expiresIn: number; // 过期时间(秒)
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -16,19 +16,19 @@ export interface QrCodeResponse {
|
||||
*/
|
||||
export interface QrCodeStatusResponse {
|
||||
status: 'pending' | 'scanned' | 'confirmed' | 'expired';
|
||||
accessToken?: string; // 登录成功时返回的JWT token
|
||||
userInfo?: any; // 用户信息
|
||||
expiresIn?: number; // 剩余过期时间(秒)
|
||||
tenantId?: string; // 租户ID
|
||||
accessToken?: string; // 登录成功时返回的JWT token
|
||||
userInfo?: any; // 用户信息
|
||||
expiresIn?: number; // 剩余过期时间(秒)
|
||||
tenantId?: string; // 租户ID
|
||||
}
|
||||
|
||||
/**
|
||||
* 确认登录请求参数
|
||||
*/
|
||||
export interface QrLoginConfirmRequest {
|
||||
token: string; // 二维码token
|
||||
userId?: number; // 用户ID
|
||||
platform?: string; // 登录平台
|
||||
token: string; // 二维码token
|
||||
userId?: number; // 用户ID
|
||||
platform?: string; // 登录平台
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -50,7 +50,9 @@ export async function generateQrCode(): Promise<QrCodeResponse> {
|
||||
/**
|
||||
* 检查二维码状态
|
||||
*/
|
||||
export async function checkQrCodeStatus(token: string): Promise<QrCodeStatusResponse> {
|
||||
export async function checkQrCodeStatus(
|
||||
token: string
|
||||
): Promise<QrCodeStatusResponse> {
|
||||
const res = await request.get<ApiResult<QrCodeStatusResponse>>(
|
||||
SERVER_API_URL + `/qr-login/status/${token}`
|
||||
);
|
||||
@@ -65,12 +67,14 @@ export async function checkQrCodeStatus(token: string): Promise<QrCodeStatusResp
|
||||
/**
|
||||
* 扫码确认登录(移动端调用)
|
||||
*/
|
||||
export async function confirmQrLogin(requestData: QrLoginConfirmRequest): Promise<QrCodeStatusResponse> {
|
||||
export async function confirmQrLogin(
|
||||
requestData: QrLoginConfirmRequest
|
||||
): Promise<QrCodeStatusResponse> {
|
||||
const res = await request.post<ApiResult<QrCodeStatusResponse>>(
|
||||
SERVER_API_URL + '/qr-login/confirm',
|
||||
requestData
|
||||
);
|
||||
console.log(res,'>>>89898989')
|
||||
console.log(res, '>>>89898989');
|
||||
if (res.data.code === 0 && res.data.data) {
|
||||
return res.data.data;
|
||||
}
|
||||
@@ -96,7 +100,9 @@ export async function scanQrCode(token: string): Promise<boolean> {
|
||||
/**
|
||||
* 微信小程序扫码登录确认
|
||||
*/
|
||||
export async function wechatMiniProgramConfirm(requestData: QrLoginConfirmRequest): Promise<QrCodeStatusResponse> {
|
||||
export async function wechatMiniProgramConfirm(
|
||||
requestData: QrLoginConfirmRequest
|
||||
): Promise<QrCodeStatusResponse> {
|
||||
const res = await request.post<ApiResult<QrCodeStatusResponse>>(
|
||||
SERVER_API_URL + '/qr-login/wechat-confirm',
|
||||
requestData
|
||||
@@ -106,5 +112,7 @@ export async function wechatMiniProgramConfirm(requestData: QrLoginConfirmReques
|
||||
return res.data.data;
|
||||
}
|
||||
|
||||
return Promise.reject(new Error(res.data.message || '微信小程序登录确认失败'));
|
||||
return Promise.reject(
|
||||
new Error(res.data.message || '微信小程序登录确认失败')
|
||||
);
|
||||
}
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
import request from '@/utils/request';
|
||||
import type {ApiResult} from '@/api';
|
||||
import type {ShopDealerOrder, ShopDealerOrderParam} from './model';
|
||||
import {utils, writeFile} from 'xlsx';
|
||||
import {message} from 'ant-design-vue';
|
||||
import {getTenantId} from '@/utils/domain';
|
||||
import {listShopDealerOrder} from "@/api/shop/shopDealerOrder";
|
||||
import {MODULES_API_URL} from "@/config/setting";
|
||||
import type { ApiResult } from '@/api';
|
||||
import type { ShopDealerOrder, ShopDealerOrderParam } from './model';
|
||||
import { utils, writeFile } from 'xlsx';
|
||||
import { message } from 'ant-design-vue';
|
||||
import { getTenantId } from '@/utils/domain';
|
||||
import { listShopDealerOrder } from '@/api/shop/shopDealerOrder';
|
||||
import { MODULES_API_URL } from '@/config/setting';
|
||||
|
||||
/**
|
||||
* 导入分销商订单
|
||||
@@ -89,19 +89,19 @@ export async function exportSdyDealerOrder(params?: ShopDealerOrderParam) {
|
||||
|
||||
// 设置列宽
|
||||
sheet['!cols'] = [
|
||||
{wch: 15}, // 订单ID
|
||||
{wch: 12}, // 买家用户ID
|
||||
{wch: 12}, // 订单总金额
|
||||
{wch: 15}, // 一级分销商ID
|
||||
{wch: 12}, // 一级佣金
|
||||
{wch: 15}, // 二级分销商ID
|
||||
{wch: 12}, // 二级佣金
|
||||
{wch: 15}, // 三级分销商ID
|
||||
{wch: 12}, // 三级佣金
|
||||
{wch: 10}, // 订单状态
|
||||
{wch: 10}, // 结算状态
|
||||
{wch: 20}, // 结算时间
|
||||
{wch: 20} // 创建时间
|
||||
{ wch: 15 }, // 订单ID
|
||||
{ wch: 12 }, // 买家用户ID
|
||||
{ wch: 12 }, // 订单总金额
|
||||
{ wch: 15 }, // 一级分销商ID
|
||||
{ wch: 12 }, // 一级佣金
|
||||
{ wch: 15 }, // 二级分销商ID
|
||||
{ wch: 12 }, // 二级佣金
|
||||
{ wch: 15 }, // 三级分销商ID
|
||||
{ wch: 12 }, // 三级佣金
|
||||
{ wch: 10 }, // 订单状态
|
||||
{ wch: 10 }, // 结算状态
|
||||
{ wch: 20 }, // 结算时间
|
||||
{ wch: 20 } // 创建时间
|
||||
];
|
||||
|
||||
message.destroy();
|
||||
@@ -113,7 +113,6 @@ export async function exportSdyDealerOrder(params?: ShopDealerOrderParam) {
|
||||
message.destroy();
|
||||
message.success(`成功导出 ${list.length} 条记录`);
|
||||
}, 1000);
|
||||
|
||||
} catch (error: any) {
|
||||
message.destroy();
|
||||
message.error(error.message || '导出失败,请重试');
|
||||
|
||||
@@ -78,7 +78,9 @@ export async function removeShopCommissionRole(id?: number) {
|
||||
/**
|
||||
* 批量删除分红角色
|
||||
*/
|
||||
export async function removeBatchShopCommissionRole(data: (number | undefined)[]) {
|
||||
export async function removeBatchShopCommissionRole(
|
||||
data: (number | undefined)[]
|
||||
) {
|
||||
const res = await request.delete<ApiResult<unknown>>(
|
||||
'/shop/shop-commission-role/batch',
|
||||
{
|
||||
|
||||
@@ -4,15 +4,15 @@ import type { PageParam } from '@/api';
|
||||
* 分红角色
|
||||
*/
|
||||
export interface ShopCommissionRole {
|
||||
//
|
||||
//
|
||||
id?: number;
|
||||
//
|
||||
//
|
||||
title?: string;
|
||||
//
|
||||
//
|
||||
provinceId?: number;
|
||||
//
|
||||
//
|
||||
cityId?: number;
|
||||
//
|
||||
//
|
||||
regionId?: number;
|
||||
// 状态, 0正常, 1异常
|
||||
status?: number;
|
||||
@@ -22,7 +22,7 @@ export interface ShopCommissionRole {
|
||||
tenantId?: number;
|
||||
// 创建时间
|
||||
createTime?: string;
|
||||
//
|
||||
//
|
||||
sortNumber?: number;
|
||||
}
|
||||
|
||||
|
||||
@@ -22,12 +22,9 @@ export async function pageShopCoupon(params: ShopCouponParam) {
|
||||
* 查询优惠券列表
|
||||
*/
|
||||
export async function listShopCoupon(params?: ShopCouponParam) {
|
||||
const res = await request.get<ApiResult<ShopCoupon[]>>(
|
||||
'/shop/shop-coupon',
|
||||
{
|
||||
params
|
||||
}
|
||||
);
|
||||
const res = await request.get<ApiResult<ShopCoupon[]>>('/shop/shop-coupon', {
|
||||
params
|
||||
});
|
||||
if (res.data.code === 0 && res.data.data) {
|
||||
return res.data.data;
|
||||
}
|
||||
@@ -38,10 +35,7 @@ export async function listShopCoupon(params?: ShopCouponParam) {
|
||||
* 添加优惠券
|
||||
*/
|
||||
export async function addShopCoupon(data: ShopCoupon) {
|
||||
const res = await request.post<ApiResult<unknown>>(
|
||||
'/shop/shop-coupon',
|
||||
data
|
||||
);
|
||||
const res = await request.post<ApiResult<unknown>>('/shop/shop-coupon', data);
|
||||
if (res.data.code === 0) {
|
||||
return res.data.message;
|
||||
}
|
||||
@@ -52,10 +46,7 @@ export async function addShopCoupon(data: ShopCoupon) {
|
||||
* 修改优惠券
|
||||
*/
|
||||
export async function updateShopCoupon(data: ShopCoupon) {
|
||||
const res = await request.put<ApiResult<unknown>>(
|
||||
'/shop/shop-coupon',
|
||||
data
|
||||
);
|
||||
const res = await request.put<ApiResult<unknown>>('/shop/shop-coupon', data);
|
||||
if (res.data.code === 0) {
|
||||
return res.data.message;
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import type { PageParam } from '@/api/index';
|
||||
import {ShopCouponApplyCate} from "@/api/shop/shopCouponApplyCate/model";
|
||||
import {ShopCouponApplyItem} from "@/api/shop/shopCouponApplyItem/model";
|
||||
import { ShopCouponApplyCate } from '@/api/shop/shopCouponApplyCate/model';
|
||||
import { ShopCouponApplyItem } from '@/api/shop/shopCouponApplyItem/model';
|
||||
|
||||
/**
|
||||
* 优惠券
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
|
||||
/**
|
||||
* 优惠券
|
||||
*/
|
||||
@@ -7,5 +6,4 @@ export interface ShopCouponApplyCate {
|
||||
couponId?: number;
|
||||
cateId?: number;
|
||||
cateLevel?: number;
|
||||
|
||||
}
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
|
||||
/**
|
||||
* 优惠券
|
||||
*/
|
||||
@@ -7,5 +6,4 @@ export interface ShopCouponApplyItem {
|
||||
couponId?: number;
|
||||
type?: number;
|
||||
pk?: number;
|
||||
|
||||
}
|
||||
|
||||
@@ -8,7 +8,7 @@ import type { ShopDealerApply, ShopDealerApplyParam } from './model';
|
||||
export async function pageShopDealerApply(params: ShopDealerApplyParam) {
|
||||
const res = await request.get<ApiResult<PageResult<ShopDealerApply>>>(
|
||||
'/shop/shop-dealer-apply/page',
|
||||
{params}
|
||||
{ params }
|
||||
);
|
||||
if (res.data.code === 0) {
|
||||
return res.data.data;
|
||||
@@ -22,7 +22,7 @@ export async function pageShopDealerApply(params: ShopDealerApplyParam) {
|
||||
export async function listShopDealerApply(params?: ShopDealerApplyParam) {
|
||||
const res = await request.get<ApiResult<ShopDealerApply[]>>(
|
||||
'/shop/shop-dealer-apply',
|
||||
{params}
|
||||
{ params }
|
||||
);
|
||||
if (res.data.code === 0 && res.data.data) {
|
||||
return res.data.data;
|
||||
@@ -116,7 +116,10 @@ export async function approveShopDealerApply(id: number) {
|
||||
/**
|
||||
* 驳回分销商申请
|
||||
*/
|
||||
export async function rejectShopDealerApply(id: number, data: { rejectReason: string }) {
|
||||
export async function rejectShopDealerApply(
|
||||
id: number,
|
||||
data: { rejectReason: string }
|
||||
) {
|
||||
const res = await request.put<ApiResult<unknown>>(
|
||||
`/shop/shop-dealer-apply/${id}/reject`,
|
||||
data
|
||||
|
||||
@@ -78,7 +78,9 @@ export async function removeShopDealerCapital(id?: number) {
|
||||
/**
|
||||
* 批量删除分销商资金明细表
|
||||
*/
|
||||
export async function removeBatchShopDealerCapital(data: (number | undefined)[]) {
|
||||
export async function removeBatchShopDealerCapital(
|
||||
data: (number | undefined)[]
|
||||
) {
|
||||
const res = await request.delete<ApiResult<unknown>>(
|
||||
'/shop/shop-dealer-capital/batch',
|
||||
{
|
||||
|
||||
@@ -201,7 +201,7 @@ export async function exportShopDealerOrder(params?: ShopDealerOrderParam) {
|
||||
{ wch: 10 }, // 订单状态
|
||||
{ wch: 10 }, // 结算状态
|
||||
{ wch: 20 }, // 结算时间
|
||||
{ wch: 20 } // 创建时间
|
||||
{ wch: 20 } // 创建时间
|
||||
];
|
||||
|
||||
message.destroy();
|
||||
@@ -213,7 +213,6 @@ export async function exportShopDealerOrder(params?: ShopDealerOrderParam) {
|
||||
message.destroy();
|
||||
message.success(`成功导出 ${list.length} 条记录`);
|
||||
}, 1000);
|
||||
|
||||
} catch (error: any) {
|
||||
message.destroy();
|
||||
message.error(error.message || '导出失败,请重试');
|
||||
|
||||
@@ -104,7 +104,10 @@ export async function removeBatchShopDealerPoster(ids: (number | undefined)[]) {
|
||||
* 生成海报
|
||||
*/
|
||||
export async function generatePoster(userId: number, config?: any) {
|
||||
const res = await request.post('/shop/dealer/poster/generate', { userId, config });
|
||||
const res = await request.post('/shop/dealer/poster/generate', {
|
||||
userId,
|
||||
config
|
||||
});
|
||||
if (res.data.code === 0) {
|
||||
return res.data.data;
|
||||
}
|
||||
@@ -118,11 +121,15 @@ export async function uploadPosterBackground(file: File) {
|
||||
const formData = new FormData();
|
||||
formData.append('file', file);
|
||||
|
||||
const res = await request.post('/shop/dealer/poster/upload/background', formData, {
|
||||
headers: {
|
||||
'Content-Type': 'multipart/form-data'
|
||||
const res = await request.post(
|
||||
'/shop/dealer/poster/upload/background',
|
||||
formData,
|
||||
{
|
||||
headers: {
|
||||
'Content-Type': 'multipart/form-data'
|
||||
}
|
||||
}
|
||||
});
|
||||
);
|
||||
|
||||
if (res.data.code === 0) {
|
||||
return res.data.data;
|
||||
|
||||
@@ -79,7 +79,9 @@ export async function removeShopDealerRecord(id?: number) {
|
||||
/**
|
||||
* 批量删除客户跟进情况
|
||||
*/
|
||||
export async function removeBatchShopDealerRecord(data: (number | undefined)[]) {
|
||||
export async function removeBatchShopDealerRecord(
|
||||
data: (number | undefined)[]
|
||||
) {
|
||||
const res = await request.delete<ApiResult<unknown>>(
|
||||
MODULES_API_URL + '/shop/shop-dealer-record/batch',
|
||||
{
|
||||
|
||||
@@ -78,7 +78,9 @@ export async function removeShopDealerReferee(id?: number) {
|
||||
/**
|
||||
* 批量删除分销商推荐关系表
|
||||
*/
|
||||
export async function removeBatchShopDealerReferee(data: (number | undefined)[]) {
|
||||
export async function removeBatchShopDealerReferee(
|
||||
data: (number | undefined)[]
|
||||
) {
|
||||
const res = await request.delete<ApiResult<unknown>>(
|
||||
'/shop/shop-dealer-referee/batch',
|
||||
{
|
||||
|
||||
@@ -45,4 +45,4 @@ export interface ShopDealerRefereeParam extends PageParam {
|
||||
startTime?: string;
|
||||
endTime?: string;
|
||||
keywords?: string;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -78,7 +78,9 @@ export async function removeShopDealerSetting(id?: number) {
|
||||
/**
|
||||
* 批量删除分销商设置表
|
||||
*/
|
||||
export async function removeBatchShopDealerSetting(data: (number | undefined)[]) {
|
||||
export async function removeBatchShopDealerSetting(
|
||||
data: (number | undefined)[]
|
||||
) {
|
||||
const res = await request.delete<ApiResult<unknown>>(
|
||||
'/shop/shop-dealer-setting/batch',
|
||||
{
|
||||
|
||||
@@ -129,12 +129,9 @@ export async function importShopDealerUsers(file: File) {
|
||||
* 导出分销商用户
|
||||
*/
|
||||
export async function exportShopDealerUsers(params?: ShopDealerUserParam) {
|
||||
const res = await request.get<Blob>(
|
||||
'/shop/shop-dealer-user/export',
|
||||
{
|
||||
params,
|
||||
responseType: 'blob'
|
||||
}
|
||||
);
|
||||
const res = await request.get<Blob>('/shop/shop-dealer-user/export', {
|
||||
params,
|
||||
responseType: 'blob'
|
||||
});
|
||||
return res.data;
|
||||
}
|
||||
|
||||
@@ -78,7 +78,9 @@ export async function removeShopDealerWithdraw(id?: number) {
|
||||
/**
|
||||
* 批量删除分销商提现明细表
|
||||
*/
|
||||
export async function removeBatchShopDealerWithdraw(data: (number | undefined)[]) {
|
||||
export async function removeBatchShopDealerWithdraw(
|
||||
data: (number | undefined)[]
|
||||
) {
|
||||
const res = await request.delete<ApiResult<unknown>>(
|
||||
'/shop/shop-dealer-withdraw/batch',
|
||||
{
|
||||
|
||||
@@ -52,10 +52,7 @@ export async function addShopExpress(data: ShopExpress) {
|
||||
* 修改物流公司
|
||||
*/
|
||||
export async function updateShopExpress(data: ShopExpress) {
|
||||
const res = await request.put<ApiResult<unknown>>(
|
||||
'/shop/shop-express',
|
||||
data
|
||||
);
|
||||
const res = await request.put<ApiResult<unknown>>('/shop/shop-express', data);
|
||||
if (res.data.code === 0) {
|
||||
return res.data.message;
|
||||
}
|
||||
|
||||
@@ -5,7 +5,9 @@ import type { ShopExpressTemplate, ShopExpressTemplateParam } from './model';
|
||||
/**
|
||||
* 分页查询运费模板
|
||||
*/
|
||||
export async function pageShopExpressTemplate(params: ShopExpressTemplateParam) {
|
||||
export async function pageShopExpressTemplate(
|
||||
params: ShopExpressTemplateParam
|
||||
) {
|
||||
const res = await request.get<ApiResult<PageResult<ShopExpressTemplate>>>(
|
||||
'/shop/shop-express-template/page',
|
||||
{
|
||||
@@ -21,7 +23,9 @@ export async function pageShopExpressTemplate(params: ShopExpressTemplateParam)
|
||||
/**
|
||||
* 查询运费模板列表
|
||||
*/
|
||||
export async function listShopExpressTemplate(params?: ShopExpressTemplateParam) {
|
||||
export async function listShopExpressTemplate(
|
||||
params?: ShopExpressTemplateParam
|
||||
) {
|
||||
const res = await request.get<ApiResult<ShopExpressTemplate[]>>(
|
||||
'/shop/shop-express-template',
|
||||
{
|
||||
@@ -78,7 +82,9 @@ export async function removeShopExpressTemplate(id?: number) {
|
||||
/**
|
||||
* 批量删除运费模板
|
||||
*/
|
||||
export async function removeBatchShopExpressTemplate(data: (number | undefined)[]) {
|
||||
export async function removeBatchShopExpressTemplate(
|
||||
data: (number | undefined)[]
|
||||
) {
|
||||
const res = await request.delete<ApiResult<unknown>>(
|
||||
'/shop/shop-express-template/batch',
|
||||
{
|
||||
|
||||
@@ -1,17 +1,21 @@
|
||||
import request from '@/utils/request';
|
||||
import type { ApiResult, PageResult } from '@/api';
|
||||
import type { ShopExpressTemplateDetail, ShopExpressTemplateDetailParam } from './model';
|
||||
import type {
|
||||
ShopExpressTemplateDetail,
|
||||
ShopExpressTemplateDetailParam
|
||||
} from './model';
|
||||
|
||||
/**
|
||||
* 分页查询运费模板
|
||||
*/
|
||||
export async function pageShopExpressTemplateDetail(params: ShopExpressTemplateDetailParam) {
|
||||
const res = await request.get<ApiResult<PageResult<ShopExpressTemplateDetail>>>(
|
||||
'/shop/shop-express-template-detail/page',
|
||||
{
|
||||
params
|
||||
}
|
||||
);
|
||||
export async function pageShopExpressTemplateDetail(
|
||||
params: ShopExpressTemplateDetailParam
|
||||
) {
|
||||
const res = await request.get<
|
||||
ApiResult<PageResult<ShopExpressTemplateDetail>>
|
||||
>('/shop/shop-express-template-detail/page', {
|
||||
params
|
||||
});
|
||||
if (res.data.code === 0) {
|
||||
return res.data.data;
|
||||
}
|
||||
@@ -21,7 +25,9 @@ export async function pageShopExpressTemplateDetail(params: ShopExpressTemplateD
|
||||
/**
|
||||
* 查询运费模板列表
|
||||
*/
|
||||
export async function listShopExpressTemplateDetail(params?: ShopExpressTemplateDetailParam) {
|
||||
export async function listShopExpressTemplateDetail(
|
||||
params?: ShopExpressTemplateDetailParam
|
||||
) {
|
||||
const res = await request.get<ApiResult<ShopExpressTemplateDetail[]>>(
|
||||
'/shop/shop-express-template-detail',
|
||||
{
|
||||
@@ -37,7 +43,9 @@ export async function listShopExpressTemplateDetail(params?: ShopExpressTemplate
|
||||
/**
|
||||
* 添加运费模板
|
||||
*/
|
||||
export async function addShopExpressTemplateDetail(data: ShopExpressTemplateDetail) {
|
||||
export async function addShopExpressTemplateDetail(
|
||||
data: ShopExpressTemplateDetail
|
||||
) {
|
||||
const res = await request.post<ApiResult<unknown>>(
|
||||
'/shop/shop-express-template-detail',
|
||||
data
|
||||
@@ -51,7 +59,9 @@ export async function addShopExpressTemplateDetail(data: ShopExpressTemplateDeta
|
||||
/**
|
||||
* 修改运费模板
|
||||
*/
|
||||
export async function updateShopExpressTemplateDetail(data: ShopExpressTemplateDetail) {
|
||||
export async function updateShopExpressTemplateDetail(
|
||||
data: ShopExpressTemplateDetail
|
||||
) {
|
||||
const res = await request.put<ApiResult<unknown>>(
|
||||
'/shop/shop-express-template-detail',
|
||||
data
|
||||
@@ -78,7 +88,9 @@ export async function removeShopExpressTemplateDetail(id?: number) {
|
||||
/**
|
||||
* 批量删除运费模板
|
||||
*/
|
||||
export async function removeBatchShopExpressTemplateDetail(data: (number | undefined)[]) {
|
||||
export async function removeBatchShopExpressTemplateDetail(
|
||||
data: (number | undefined)[]
|
||||
) {
|
||||
const res = await request.delete<ApiResult<unknown>>(
|
||||
'/shop/shop-express-template-detail/batch',
|
||||
{
|
||||
|
||||
@@ -4,15 +4,15 @@ import type { PageParam } from '@/api';
|
||||
* 运费模板
|
||||
*/
|
||||
export interface ShopExpressTemplateDetail {
|
||||
//
|
||||
//
|
||||
id?: number;
|
||||
//
|
||||
//
|
||||
templateId?: number;
|
||||
// 0按件
|
||||
type?: string;
|
||||
//
|
||||
//
|
||||
provinceId?: number;
|
||||
//
|
||||
//
|
||||
cityId?: number;
|
||||
// 首件数量/重量
|
||||
firstNum?: string;
|
||||
@@ -32,7 +32,7 @@ export interface ShopExpressTemplateDetail {
|
||||
createTime?: string;
|
||||
// 修改时间
|
||||
updateTime?: string;
|
||||
//
|
||||
//
|
||||
sortNumber?: number;
|
||||
}
|
||||
|
||||
|
||||
@@ -79,7 +79,9 @@ export async function removeShopGoodsCategory(id?: number) {
|
||||
/**
|
||||
* 批量删除商品分类
|
||||
*/
|
||||
export async function removeBatchShopGoodsCategory(data: (number | undefined)[]) {
|
||||
export async function removeBatchShopGoodsCategory(
|
||||
data: (number | undefined)[]
|
||||
) {
|
||||
const res = await request.delete<ApiResult<unknown>>(
|
||||
MODULES_API_URL + '/shop/shop-goods-category/batch',
|
||||
{
|
||||
|
||||
@@ -1,12 +1,17 @@
|
||||
import request from '@/utils/request';
|
||||
import type { ApiResult, PageResult } from '@/api';
|
||||
import { MODULES_API_URL } from '@/config/setting';
|
||||
import { ShopGoodsRoleCommission, ShopGoodsRoleCommissionParam } from '@/api/shop/shopGoodsRoleCommission/model';
|
||||
import {
|
||||
ShopGoodsRoleCommission,
|
||||
ShopGoodsRoleCommissionParam
|
||||
} from '@/api/shop/shopGoodsRoleCommission/model';
|
||||
|
||||
/**
|
||||
* 分页查询商品绑定角色的分润金额
|
||||
*/
|
||||
export async function pageShopGoodsRoleCommission(params: ShopGoodsRoleCommissionParam) {
|
||||
export async function pageShopGoodsRoleCommission(
|
||||
params: ShopGoodsRoleCommissionParam
|
||||
) {
|
||||
const res = await request.get<ApiResult<PageResult<ShopGoodsRoleCommission>>>(
|
||||
MODULES_API_URL + '/shop/shop-goods-role-commission/page',
|
||||
{
|
||||
@@ -22,7 +27,9 @@ export async function pageShopGoodsRoleCommission(params: ShopGoodsRoleCommissio
|
||||
/**
|
||||
* 查询商品绑定角色的分润金额列表
|
||||
*/
|
||||
export async function listShopGoodsRoleCommission(params?: ShopGoodsRoleCommissionParam) {
|
||||
export async function listShopGoodsRoleCommission(
|
||||
params?: ShopGoodsRoleCommissionParam
|
||||
) {
|
||||
const res = await request.get<ApiResult<ShopGoodsRoleCommission[]>>(
|
||||
MODULES_API_URL + '/shop/shop-goods-role-commission',
|
||||
{
|
||||
@@ -38,7 +45,9 @@ export async function listShopGoodsRoleCommission(params?: ShopGoodsRoleCommissi
|
||||
/**
|
||||
* 添加商品绑定角色的分润金额
|
||||
*/
|
||||
export async function addShopGoodsRoleCommission(data: ShopGoodsRoleCommission) {
|
||||
export async function addShopGoodsRoleCommission(
|
||||
data: ShopGoodsRoleCommission
|
||||
) {
|
||||
const res = await request.post<ApiResult<unknown>>(
|
||||
MODULES_API_URL + '/shop/shop-goods-role-commission',
|
||||
data
|
||||
@@ -52,7 +61,9 @@ export async function addShopGoodsRoleCommission(data: ShopGoodsRoleCommission)
|
||||
/**
|
||||
* 修改商品绑定角色的分润金额
|
||||
*/
|
||||
export async function updateShopGoodsRoleCommission(data: ShopGoodsRoleCommission) {
|
||||
export async function updateShopGoodsRoleCommission(
|
||||
data: ShopGoodsRoleCommission
|
||||
) {
|
||||
const res = await request.put<ApiResult<unknown>>(
|
||||
MODULES_API_URL + '/shop/shop-goods-role-commission',
|
||||
data
|
||||
@@ -79,7 +90,9 @@ export async function removeShopGoodsRoleCommission(id?: number) {
|
||||
/**
|
||||
* 批量删除商品绑定角色的分润金额
|
||||
*/
|
||||
export async function removeBatchShopGoodsRoleCommission(data: (number | undefined)[]) {
|
||||
export async function removeBatchShopGoodsRoleCommission(
|
||||
data: (number | undefined)[]
|
||||
) {
|
||||
const res = await request.delete<ApiResult<unknown>>(
|
||||
MODULES_API_URL + '/shop/shop-goods-role-commission/batch',
|
||||
{
|
||||
|
||||
@@ -30,9 +30,9 @@ export interface ShopMerchant {
|
||||
merchantCategoryTitle?: string;
|
||||
// 经纬度
|
||||
lngAndLat?: string;
|
||||
//
|
||||
//
|
||||
lng?: string;
|
||||
//
|
||||
//
|
||||
lat?: string;
|
||||
// 所在省份
|
||||
province?: string;
|
||||
@@ -62,9 +62,9 @@ export interface ShopMerchant {
|
||||
recommend?: number;
|
||||
// 是否营业
|
||||
isOn?: number;
|
||||
//
|
||||
//
|
||||
startTime?: string;
|
||||
//
|
||||
//
|
||||
endTime?: string;
|
||||
// 是否需要审核
|
||||
goodsReview?: number;
|
||||
|
||||
@@ -6,7 +6,9 @@ import { MODULES_API_URL } from '@/config/setting';
|
||||
/**
|
||||
* 分页查询商户账号
|
||||
*/
|
||||
export async function pageShopMerchantAccount(params: ShopMerchantAccountParam) {
|
||||
export async function pageShopMerchantAccount(
|
||||
params: ShopMerchantAccountParam
|
||||
) {
|
||||
const res = await request.get<ApiResult<PageResult<ShopMerchantAccount>>>(
|
||||
MODULES_API_URL + '/shop/shop-merchant-account/page',
|
||||
{
|
||||
@@ -22,7 +24,9 @@ export async function pageShopMerchantAccount(params: ShopMerchantAccountParam)
|
||||
/**
|
||||
* 查询商户账号列表
|
||||
*/
|
||||
export async function listShopMerchantAccount(params?: ShopMerchantAccountParam) {
|
||||
export async function listShopMerchantAccount(
|
||||
params?: ShopMerchantAccountParam
|
||||
) {
|
||||
const res = await request.get<ApiResult<ShopMerchantAccount[]>>(
|
||||
MODULES_API_URL + '/shop/shop-merchant-account',
|
||||
{
|
||||
@@ -79,7 +83,9 @@ export async function removeShopMerchantAccount(id?: number) {
|
||||
/**
|
||||
* 批量删除商户账号
|
||||
*/
|
||||
export async function removeBatchShopMerchantAccount(data: (number | undefined)[]) {
|
||||
export async function removeBatchShopMerchantAccount(
|
||||
data: (number | undefined)[]
|
||||
) {
|
||||
const res = await request.delete<ApiResult<unknown>>(
|
||||
MODULES_API_URL + '/shop/shop-merchant-account/batch',
|
||||
{
|
||||
|
||||
@@ -71,4 +71,4 @@ export interface ShopMerchantApplyParam extends PageParam {
|
||||
shopType?: string;
|
||||
phone?: string;
|
||||
keywords?: string;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import type { PageParam } from '@/api';
|
||||
import {OrderGoods} from "@/api/system/orderGoods/model";
|
||||
import { OrderGoods } from '@/api/system/orderGoods/model';
|
||||
|
||||
/**
|
||||
* 订单
|
||||
@@ -136,9 +136,9 @@ export interface ShopOrder {
|
||||
// 系统版本号 0当前版本 value=其他版本
|
||||
version?: number;
|
||||
// 买家备注
|
||||
buyerRemarks: undefined,
|
||||
buyerRemarks: undefined;
|
||||
// 商家备注
|
||||
merchantRemarks: undefined,
|
||||
merchantRemarks: undefined;
|
||||
// 用户id
|
||||
userId?: number;
|
||||
// 备注
|
||||
|
||||
@@ -136,7 +136,7 @@ export interface ShopUser {
|
||||
title?: string;
|
||||
// 安装的产品ID
|
||||
templateId?: number;
|
||||
// 插件安装状态(仅对超超管判断) 0未安装 1已安装
|
||||
// 插件安装状态(仅对超超管判断) 0未安装 1已安装
|
||||
installed?: number;
|
||||
// 特长
|
||||
speciality?: string;
|
||||
|
||||
@@ -22,9 +22,9 @@ export interface ShopUserAddress {
|
||||
address?: string;
|
||||
// 收货地址
|
||||
fullAddress?: string;
|
||||
//
|
||||
//
|
||||
lat?: string;
|
||||
//
|
||||
//
|
||||
lng?: string;
|
||||
// 1先生 2女士
|
||||
gender?: number;
|
||||
|
||||
@@ -79,7 +79,9 @@ export async function removeChatConversation(id?: number) {
|
||||
/**
|
||||
* 批量删除聊天消息表
|
||||
*/
|
||||
export async function removeBatchChatConversation(data: (number | undefined)[]) {
|
||||
export async function removeBatchChatConversation(
|
||||
data: (number | undefined)[]
|
||||
) {
|
||||
const res = await request.delete<ApiResult<unknown>>(
|
||||
MODULES_API_URL + '/shop/chat-conversation/batch',
|
||||
{
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import type { PageParam } from '@/api';
|
||||
import type {Menu} from "@/api/system/menu/model";
|
||||
import type { Menu } from '@/api/system/menu/model';
|
||||
|
||||
/**
|
||||
* 企业信息
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import request from '@/utils/request';
|
||||
import type {ApiResult, PageResult} from '@/api';
|
||||
import type {CompanyComment, CompanyCommentParam} from './model';
|
||||
import {SERVER_API_URL} from '@/config/setting';
|
||||
import type { ApiResult, PageResult } from '@/api';
|
||||
import type { CompanyComment, CompanyCommentParam } from './model';
|
||||
import { SERVER_API_URL } from '@/config/setting';
|
||||
|
||||
/**
|
||||
* 分页查询应用评论
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import request from '@/utils/request';
|
||||
import type { ApiResult, PageResult } from '@/api';
|
||||
import type { CompanyContent, CompanyContentParam } from './model';
|
||||
import {SERVER_API_URL} from '@/config/setting';
|
||||
import { SERVER_API_URL } from '@/config/setting';
|
||||
|
||||
/**
|
||||
* 分页查询应用详情
|
||||
@@ -49,7 +49,6 @@ export async function getByCompanyId(id: number) {
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 添加应用详情
|
||||
*/
|
||||
|
||||
@@ -4,7 +4,7 @@ import type { PageParam } from '@/api';
|
||||
* 应用详情
|
||||
*/
|
||||
export interface CompanyContent {
|
||||
//
|
||||
//
|
||||
id?: number;
|
||||
// 企业ID
|
||||
companyId?: number;
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import request from '@/utils/request';
|
||||
import type { ApiResult, PageResult } from '@/api';
|
||||
import type { CompanyParameter, CompanyParameterParam } from './model';
|
||||
import {SERVER_API_URL} from '@/config/setting';
|
||||
import { SERVER_API_URL } from '@/config/setting';
|
||||
|
||||
/**
|
||||
* 分页查询应用参数
|
||||
@@ -79,7 +79,9 @@ export async function removeCompanyParameter(id?: number) {
|
||||
/**
|
||||
* 批量删除应用参数
|
||||
*/
|
||||
export async function removeBatchCompanyParameter(data: (number | undefined)[]) {
|
||||
export async function removeBatchCompanyParameter(
|
||||
data: (number | undefined)[]
|
||||
) {
|
||||
const res = await request.delete<ApiResult<unknown>>(
|
||||
SERVER_API_URL + '/system/company-parameter/batch',
|
||||
{
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import request from '@/utils/request';
|
||||
import type { ApiResult, PageResult } from '@/api';
|
||||
import type { CompanyUrl, CompanyUrlParam } from './model';
|
||||
import {SERVER_API_URL} from '@/config/setting';
|
||||
import { SERVER_API_URL } from '@/config/setting';
|
||||
|
||||
/**
|
||||
* 分页查询应用域名
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import request from '@/utils/request';
|
||||
import type { ApiResult } from '@/api';
|
||||
import type { Menu, MenuParam } from './model';
|
||||
import {SERVER_API_URL} from '@/config/setting';
|
||||
import { SERVER_API_URL } from '@/config/setting';
|
||||
|
||||
/**
|
||||
* 查询菜单列表
|
||||
@@ -89,7 +89,6 @@ export async function deleteParentMenu(id?: number) {
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 安装应用
|
||||
*/
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import request from '@/utils/request';
|
||||
import type { ApiResult, PageResult } from '@/api';
|
||||
import type { Order, OrderParam } from './model';
|
||||
import {SERVER_API_URL} from '@/config/setting';
|
||||
import { SERVER_API_URL } from '@/config/setting';
|
||||
|
||||
/**
|
||||
* 分页查询订单
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import request from '@/utils/request';
|
||||
import type { ApiResult, PageResult } from '@/api';
|
||||
import type { OrderGoods, OrderGoodsParam } from './model';
|
||||
import {SERVER_API_URL} from '@/config/setting';
|
||||
import { SERVER_API_URL } from '@/config/setting';
|
||||
|
||||
/**
|
||||
* 分页查询订单商品
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import request from '@/utils/request';
|
||||
import type { ApiResult, PageResult } from '@/api';
|
||||
import type { Parameter, ParameterParam } from './model';
|
||||
import {SERVER_API_URL} from '@/config/setting';
|
||||
import { SERVER_API_URL } from '@/config/setting';
|
||||
|
||||
/**
|
||||
* 分页查询应用参数
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import request from '@/utils/request';
|
||||
import type { ApiResult, PageResult } from '@/api';
|
||||
import type { Url, UrlParam } from './model';
|
||||
import {SERVER_API_URL} from '@/config/setting';
|
||||
import { SERVER_API_URL } from '@/config/setting';
|
||||
|
||||
/**
|
||||
* 分页查询应用域名
|
||||
|
||||
@@ -270,7 +270,7 @@ export async function countUserBalance(params?: UserParam) {
|
||||
* 选择管理员账号登录
|
||||
* @param params
|
||||
*/
|
||||
export async function listAdminsByPhoneAll(params?: UserParam){
|
||||
export async function listAdminsByPhoneAll(params?: UserParam) {
|
||||
const res = await request.get<ApiResult<User[]>>(
|
||||
SERVER_API_URL + '/system/user/listAdminsByPhoneAll',
|
||||
{
|
||||
@@ -287,12 +287,9 @@ export async function listAdminsByPhoneAll(params?: UserParam){
|
||||
* 导出用户列表
|
||||
*/
|
||||
export async function exportUsers(params?: UserParam) {
|
||||
const res = await request.get<Blob>(
|
||||
SERVER_API_URL + '/system/user/export',
|
||||
{
|
||||
params,
|
||||
responseType: 'blob'
|
||||
}
|
||||
);
|
||||
const res = await request.get<Blob>(SERVER_API_URL + '/system/user/export', {
|
||||
params,
|
||||
responseType: 'blob'
|
||||
});
|
||||
return res.data;
|
||||
}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import request from '@/utils/request';
|
||||
import type {ApiResult, PageResult} from '@/api';
|
||||
import type {UserOauth, UserOauthParam} from './model';
|
||||
import {SERVER_API_URL} from '@/config/setting';
|
||||
import type { ApiResult, PageResult } from '@/api';
|
||||
import type { UserOauth, UserOauthParam } from './model';
|
||||
import { SERVER_API_URL } from '@/config/setting';
|
||||
|
||||
/**
|
||||
* 分页查询第三方用户信息表
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import request from '@/utils/request';
|
||||
import type { ApiResult, PageResult } from '@/api';
|
||||
import type { UserVerify, UserVerifyParam } from './model';
|
||||
import {SERVER_API_URL} from '@/config/setting';
|
||||
import { SERVER_API_URL } from '@/config/setting';
|
||||
|
||||
/**
|
||||
* 分页查询实名认证
|
||||
|
||||
@@ -5,7 +5,7 @@ import type {
|
||||
WebsiteField,
|
||||
WebsiteFieldParam
|
||||
} from '@/api/system/website/field/model';
|
||||
import {SERVER_API_URL, TEMPLATE_ID} from '@/config/setting';
|
||||
import { SERVER_API_URL, TEMPLATE_ID } from '@/config/setting';
|
||||
|
||||
/**
|
||||
* 分页查询项目参数
|
||||
|
||||
Reference in New Issue
Block a user