fix: eslint
This commit is contained in:
@@ -50,7 +50,7 @@ export function getCategoryList(params: any) {
|
||||
);
|
||||
}
|
||||
|
||||
// 获得商品分类列表
|
||||
/** 获得商品分类列表 */
|
||||
export function getCategorySimpleList() {
|
||||
return requestClient.get<MallCategoryApi.Category[]>(
|
||||
'/product/category/list',
|
||||
|
||||
@@ -50,6 +50,10 @@ export namespace MallCombinationActivityApi {
|
||||
products: CombinationProduct[];
|
||||
/** 图片 */
|
||||
picUrl?: string;
|
||||
/** 商品名称 */
|
||||
spuName?: string;
|
||||
/** 市场价 */
|
||||
marketPrice?: number;
|
||||
}
|
||||
|
||||
/** 扩展 SKU 配置 */
|
||||
|
||||
@@ -5,38 +5,24 @@ import { requestClient } from '#/api/request';
|
||||
export namespace MallKefuConversationApi {
|
||||
/** 客服会话 */
|
||||
export interface Conversation {
|
||||
/** 编号 */
|
||||
id: number;
|
||||
/** 会话所属用户 */
|
||||
userId: number;
|
||||
/** 会话所属用户头像 */
|
||||
userAvatar: string;
|
||||
/** 会话所属用户昵称 */
|
||||
userNickname: string;
|
||||
/** 最后聊天时间 */
|
||||
lastMessageTime: Date;
|
||||
/** 最后聊天内容 */
|
||||
lastMessageContent: string;
|
||||
/** 最后发送的消息类型 */
|
||||
lastMessageContentType: number;
|
||||
/** 管理端置顶 */
|
||||
adminPinned: boolean;
|
||||
/** 用户是否可见 */
|
||||
userDeleted: boolean;
|
||||
/** 管理员是否可见 */
|
||||
adminDeleted: boolean;
|
||||
/** 管理员未读消息数 */
|
||||
adminUnreadMessageCount: number;
|
||||
/** 创建时间 */
|
||||
createTime?: string;
|
||||
id: number; // 编号
|
||||
userId: number; // 会话所属用户
|
||||
userAvatar: string; // 会话所属用户头像
|
||||
userNickname: string; // 会话所属用户昵称
|
||||
lastMessageTime: Date; // 最后聊天时间
|
||||
lastMessageContent: string; // 最后聊天内容
|
||||
lastMessageContentType: number; // 最后发送的消息类型
|
||||
adminPinned: boolean; // 管理端置顶
|
||||
userDeleted: boolean; // 用户是否可见
|
||||
adminDeleted: boolean; // 管理员是否可见
|
||||
adminUnreadMessageCount: number; // 管理员未读消息数
|
||||
createTime?: string; // 创建时间
|
||||
}
|
||||
|
||||
/** 会话置顶请求 */
|
||||
export interface ConversationPinnedUpdate {
|
||||
/** 会话编号 */
|
||||
id: number;
|
||||
/** 是否置顶 */
|
||||
pinned: boolean;
|
||||
id: number; // 会话编号
|
||||
pinned: boolean; // 是否置顶
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -5,44 +5,29 @@ import { requestClient } from '#/api/request';
|
||||
export namespace MallKefuMessageApi {
|
||||
/** 客服消息 */
|
||||
export interface Message {
|
||||
/** 编号 */
|
||||
id: number;
|
||||
/** 会话编号 */
|
||||
conversationId: number;
|
||||
/** 发送人编号 */
|
||||
senderId: number;
|
||||
/** 发送人头像 */
|
||||
senderAvatar: string;
|
||||
/** 发送人类型 */
|
||||
senderType: number;
|
||||
/** 接收人编号 */
|
||||
receiverId: number;
|
||||
/** 接收人类型 */
|
||||
receiverType: number;
|
||||
/** 消息类型 */
|
||||
contentType: number;
|
||||
/** 消息内容 */
|
||||
content: string;
|
||||
/** 是否已读 */
|
||||
readStatus: boolean;
|
||||
/** 创建时间 */
|
||||
createTime: Date;
|
||||
id: number; // 编号
|
||||
conversationId: number; // 会话编号
|
||||
senderId: number; // 发送人编号
|
||||
senderAvatar: string; // 发送人头像
|
||||
senderType: number; // 发送人类型
|
||||
receiverId: number; // 接收人编号
|
||||
receiverType: number; // 接收人类型
|
||||
contentType: number; // 消息类型
|
||||
content: string; // 消息内容
|
||||
readStatus: boolean; // 是否已读
|
||||
createTime: Date; // 创建时间
|
||||
}
|
||||
|
||||
/** 发送消息请求 */
|
||||
export interface MessageSend {
|
||||
/** 会话编号 */
|
||||
conversationId: number;
|
||||
/** 消息类型 */
|
||||
contentType: number;
|
||||
/** 消息内容 */
|
||||
content: string;
|
||||
conversationId: number; // 会话编号
|
||||
contentType: number; // 消息类型
|
||||
content: string; // 消息内容
|
||||
}
|
||||
|
||||
/** 消息列表查询参数 */
|
||||
export interface MessageQuery extends PageParam {
|
||||
/** 会话编号 */
|
||||
conversationId: number;
|
||||
conversationId: number; // 会话编号
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -57,6 +57,10 @@ export namespace MallSeckillActivityApi {
|
||||
products?: SeckillProduct[];
|
||||
/** 图片 */
|
||||
picUrl?: string;
|
||||
/** 商品名称 */
|
||||
spuName?: string;
|
||||
/** 市场价 */
|
||||
marketPrice?: number;
|
||||
}
|
||||
|
||||
/** 扩展 SKU 配置 */
|
||||
|
||||
Reference in New Issue
Block a user