Files
template-nuxt4/app/api/cms/cmsWebsite/model/index.ts
2026-04-29 01:33:33 +08:00

210 lines
4.8 KiB
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import type { PageParam } from '@/api';
import type { CmsWebsiteSetting } from "@/api/cms/cmsWebsiteSetting/model";
import type { CmsNavigation } from "@/api/cms/cmsNavigation/model";
/**
* 网站信息记录表
*/
export interface CmsWebsite {
// 站点ID
websiteId?: number;
// 网站名称
websiteName?: string;
// 网站标识
websiteCode?: string;
// 网站密钥
websiteSecret?: string;
// 网站LOGO
websiteIcon?: string;
// 网站LOGO
websiteLogo?: string;
// 网站LOGO(深色模式)
websiteDarkLogo?: string;
// 网站类型
websiteType?: string;
// 网站截图
files?: string;
// 网站类型
type?: number;
// 网站关键词
keywords?: string;
// 域名前缀
prefix?: string;
// 绑定域名
domain?: string;
// 全局样式
style?: string;
// 后台管理地址
adminUrl?: string;
// 应用版本 10标准版 20专业版 30永久授权
version?: number;
// 允许展示到插件市场
market?: boolean;
// 应用类型 0应用 1插件
plugin?: boolean;
// 默认编辑器
editor?: number,
// 服务到期时间
expirationTime?: string;
// 模版ID
templateId?: number;
// 行业类型
category?: string;
// 行业类型(父级)
industryParent?: string;
// 行业类型(子级)
industryChild?: string;
// 企业ID
companyId?: number;
// 所在国家
country?: string;
// 所在省份
province?: string;
// 所在城市
city?: string;
// 所在辖区
region?: string;
// 经度
longitude?: string;
// 纬度
latitude?: string;
// 街道地址
address?: string;
// 联系电话
phone?: string;
// 电子邮箱
email?: string;
// ICP备案号
icpNo?: string;
// 公安备案
policeNo?: string;
// 备注
comments?: string;
// 是否推荐
recommend?: number;
// 是否官方
official?: boolean;
// 是否运行中
running?: number;
// 状态 0未开通 1运行中 2维护中 3已关闭 4已欠费停机 5违规关停
status?: number;
// 维护说明
statusText?: string;
// 关闭说明
statusClose?: string;
// 全局样式
styles?: string;
// 语言
lang?: string;
// 排序号
sortNumber?: number;
// 用户ID
userId?: number;
// 是否删除, 0否, 1是
deleted?: number;
// 租户id
tenantId?: number;
// 创建时间
createTime?: string;
// 修改时间
updateTime?: string;
// 网站配置
config?: any;
// 短信验证码
smsCode?: string;
// 短信验证码
code?: string;
// 是否记住密码
remember?: boolean;
// 企业名称
companyName?: string;
// 是否注册未超级管理员
isSuperAdmin?: boolean;
// 用户名
username?: string;
// 开发者
developer?: string;
// 网站配置
setting?: CmsWebsiteSetting;
// ---- 发布管理字段 ----
// 发布状态: developing开发中 pending_review待审核 published已上架 rejected审核未通过 deprecated已下架
publishStatus?: 'developing' | 'pending_review' | 'published' | 'rejected' | 'deprecated';
// 定价模式: free免费 one_time一次性 subscription订阅
priceType?: 'free' | 'one_time' | 'subscription';
// 价格(分)
price?: number;
// 订阅周期: month按月 year按年
subscriptionPeriod?: 'month' | 'year';
// 应用简介
appDescription?: string;
// 详细说明
detailDescription?: string;
// 应用截图JSON数组字符串
screenshots?: string;
// 安装次数
installCount?: number;
// 评分1-5
rating?: number;
// 审核拒绝原因
rejectReason?: string;
// 提交审核时间
publishApplyTime?: string;
// 正式发布时间
publishTime?: string;
// 审核人ID
reviewerId?: number;
// 审核时间
reviewTime?: string;
}
export interface AppInfo {
appId?: number;
appName?: string;
description?: string;
keywords?: string;
appCode?: string;
mpQrCode?: string;
title?: string;
logo?: string;
icon?: string;
domain?: string;
running?: number;
version?: number;
expirationTime?: string;
expired?: boolean;
expiredDays?: number;
soon?: number;
statusIcon?: string;
statusText?: string;
config?: Object;
serverTime?: Object;
topNavs?: CmsNavigation[];
bottomNavs?: CmsNavigation[];
setting?: Object;
createTime?: string;
}
/**
* 网站信息记录表搜索条件
*/
export interface CmsWebsiteParam extends PageParam {
websiteId?: number;
type?: number;
status?: number;
plugin?: boolean;
official?: boolean;
market?: boolean;
keywords?: string;
// 按用户过滤(单个)
userId?: number;
// 按用户集合过滤(多个,后端 IN 查询)
userIds?: number[];
// 按 websiteId 集合过滤(后端 IN 查询)
websiteIds?: number[];
// 协作成员userId后端一次联表查出该用户创建的 + 作为成员参与的所有应用
memberUserId?: number;
// 发布状态筛选
publishStatus?: string;
}