feat: first commit

This commit is contained in:
eleanor.mao
2025-03-31 22:34:22 +08:00
commit d25187c9c8
390 changed files with 57031 additions and 0 deletions

51
src/types/group.ts Normal file
View File

@ -0,0 +1,51 @@
import { GroupStatus, GroupType } from '@/constants/group';
import { IPaginationRequest, IPaginationResponse } from '@/types/common';
export interface GroupInfo {
// 播络群 id
blGroupId: string;
// 群标题
imGroupNick: string;
// 通告数量
allJobs: number;
// 今日通告数量
todayUpdates: number;
// 群头像
groupAvatar: string;
groupType: GroupType;
// 人数
groupMemberCount?: number;
}
export interface GroupDetail extends GroupInfo {
// 机器人 id
robotId: string;
}
export interface BatchPublishGroup {
cityCode: string;
count: number;
}
export interface SimpleGroupInfo extends Pick<GroupInfo, 'blGroupId' | 'imGroupNick'> {
groupId: string;
}
// 后台接口还没做分页,这里前端先提前做好
export interface GetGroupsRequest extends IPaginationRequest {
type: GroupType;
imGroupNick?: string;
// 0allGroups 返回所有的1allGroups 返回已经申请的
status?: GroupStatus;
}
export interface GetGroupsResponse extends IPaginationResponse {
myCreatedGroups: GroupInfo[];
myJoinedGroups: GroupInfo[];
allGroups: GroupInfo[];
myFollowedGroups: GroupInfo[];
}
export interface GetGroupDetailsRequest {
blGroupId: string;
}