234 lines
4.4 KiB
TypeScript
234 lines
4.4 KiB
TypeScript
// Code generated by protoc-gen-typescript-http. DO NOT EDIT.
|
||
/* eslint-disable camelcase */
|
||
// @ts-nocheck
|
||
|
||
export type FetchRequest = {
|
||
/** 页数 */
|
||
pageNo?: number;
|
||
/** 每页记录数 */
|
||
pageSize?: number;
|
||
/** 条件参数,key=val,eg key:category_id=?,vlaue=11 */
|
||
params?: { [key: string]: string };
|
||
};
|
||
|
||
export type IdentRequest = {
|
||
/** 唯一ID */
|
||
id?: number;
|
||
/** 唯一码 */
|
||
identity?: string;
|
||
};
|
||
|
||
export type VersionRequest = {
|
||
/** 时序版本号 */
|
||
version?: number;
|
||
};
|
||
|
||
export type SearchRequest = {
|
||
/** 关键词 */
|
||
keyword?: string;
|
||
};
|
||
|
||
export type StatusReply = {
|
||
/** 数据 */
|
||
data?: string;
|
||
/** 响应时间序列 */
|
||
timeseq?: number;
|
||
};
|
||
|
||
export type Empty = {
|
||
};
|
||
|
||
export type RelationItem = {
|
||
identity?: string;
|
||
/** 昵称 */
|
||
nickname?: string;
|
||
/** 备注名称 */
|
||
remarkName?: string;
|
||
/** 是否置顶 */
|
||
popular?: number;
|
||
avatar?: string;
|
||
/** 生日 */
|
||
birthday?: string;
|
||
/** 性别,1为男性,2为女性 */
|
||
sex?: number;
|
||
/** 省 */
|
||
province?: number;
|
||
/** 市 */
|
||
city?: number;
|
||
/** 区 */
|
||
area?: number;
|
||
/** 签名 */
|
||
sign?: string;
|
||
/** 所属标签组 */
|
||
tags?: string[];
|
||
/** 外表的状态值,根据表不同,值的作用不同 */
|
||
foreignStatus?: number;
|
||
};
|
||
|
||
export type FetchRelationItemReply = {
|
||
/** 总记录数 */
|
||
total?: number;
|
||
data?: RelationItem[];
|
||
};
|
||
|
||
/** relation-关系管理:关注 */
|
||
export interface Follow {
|
||
}
|
||
|
||
type RequestType = {
|
||
path: string;
|
||
method: string;
|
||
body: string | null;
|
||
};
|
||
|
||
type RequestHandler = (request: RequestType, meta: { service: string, method: string }) => Promise<unknown>;
|
||
|
||
export function createFollowClient(
|
||
handler: RequestHandler
|
||
): Follow {
|
||
return {
|
||
};
|
||
}
|
||
export type ApplyFetchReply = {
|
||
/** 总记录数 */
|
||
total?: number;
|
||
/** 版本号 */
|
||
version?: number;
|
||
applys?: ApplyItem[];
|
||
};
|
||
|
||
export type ApplyItem = {
|
||
/** 唯一标识 */
|
||
identity?: string;
|
||
from?: RelationItem;
|
||
message?: MessageItem;
|
||
/** 时间 */
|
||
createdAt?: string;
|
||
/** 状态 */
|
||
status?: number;
|
||
};
|
||
|
||
export type MessageItem = {
|
||
/** 发送者 */
|
||
relationIdentity?: string;
|
||
/** 正文 */
|
||
body?: string;
|
||
/** 时间 */
|
||
createdAt?: string;
|
||
};
|
||
|
||
export type ApplyDoRequest = {
|
||
/** 目标人的唯一ID */
|
||
toId?: number;
|
||
/** 目标人的唯一标识 */
|
||
toIdentity?: string;
|
||
/** 留言正文 */
|
||
body?: string;
|
||
};
|
||
|
||
export type ApplyDoPassRequest = {
|
||
/** 为将要通过的好友会员通行证唯一ID */
|
||
friendRelationId?: number;
|
||
/** 为将要通过的好友会员通行证唯一Identity */
|
||
friendRelationIdentity?: string;
|
||
/** 申请的唯一标识 */
|
||
applyIdentity?: string;
|
||
};
|
||
|
||
export type ApplyMessageRequest = {
|
||
/** 申请ID */
|
||
applyId?: number;
|
||
/** 留言正文 */
|
||
body?: string;
|
||
};
|
||
|
||
export type PartFriendReply = {
|
||
/** 总记录数 */
|
||
total?: number;
|
||
/** 版本号 */
|
||
version?: number;
|
||
/** 好友信息 */
|
||
friends?: RelationItem[];
|
||
};
|
||
|
||
export type FriendsReply = {
|
||
/** 总记录数 */
|
||
total?: number;
|
||
/** 版本号 */
|
||
version?: number;
|
||
/** 分组标签信息 */
|
||
tags?: TagItem[];
|
||
/** 好友信息 */
|
||
friends?: RelationItem[];
|
||
};
|
||
|
||
export type TagItem = {
|
||
/** 好友标签ID */
|
||
id?: number;
|
||
/** 标签唯一标识 */
|
||
identity?: string;
|
||
/** 标签成员统计 */
|
||
friendTotal?: number;
|
||
/** 标签名称 */
|
||
tagName?: string;
|
||
};
|
||
|
||
export type FriendApplyGetReply = {
|
||
/** 会员信息卡片 */
|
||
data?: RelationItem;
|
||
/** 聊天记录 */
|
||
message?: MessageItem[];
|
||
};
|
||
|
||
export type ModifyNicknameRequest = {
|
||
/** 会员唯一标识 */
|
||
identity?: string;
|
||
/** 新的备注名称 */
|
||
nickname?: string;
|
||
};
|
||
|
||
export type FriendTagsReply = {
|
||
/** 总记录数 */
|
||
total?: number;
|
||
data?: TagItem[];
|
||
};
|
||
|
||
export type TagDoCreateRequest = {
|
||
/** 标签名称 */
|
||
tagName?: string;
|
||
/** 成员identity */
|
||
friendIdentity?: string[];
|
||
};
|
||
|
||
export type TagDoUpdateRequest = {
|
||
/** 标签唯一标识 */
|
||
tagIdentity?: string;
|
||
/** 成员identity */
|
||
friendIdentity?: string;
|
||
/** 操作方式:ADD增加成员,DEL删除成员 */
|
||
direction?: string;
|
||
};
|
||
|
||
/** * 基础操作 * relation-关系管理:好友 */
|
||
export interface Friend {
|
||
}
|
||
|
||
export function createFriendClient(
|
||
handler: RequestHandler
|
||
): Friend {
|
||
return {
|
||
};
|
||
}
|
||
/** relation-关系管理:匹配 */
|
||
export interface Match {
|
||
}
|
||
|
||
export function createMatchClient(
|
||
handler: RequestHandler
|
||
): Match {
|
||
return {
|
||
};
|
||
}
|
||
|
||
// @@protoc_insertion_point(typescript-http-eof)
|