client/typescript/feedback/index.ts

197 lines
4.1 KiB
TypeScript

// Code generated by protoc-gen-typescript-http. DO NOT EDIT.
/* eslint-disable camelcase */
// @ts-nocheck
export type ListRequest = {
/** 页码,默认第一页 */
page?: number;
/** 单页显示数量,默认10,最多50 */
size?: number;
/** 用户唯一`标识,可选 */
user_identity?: string;
/** 用户名称,可选 */
user_name?: string;
/** 条目状态,可选,默认0,全部查找 */
status?: number;
/** 业务类型: 1,意见/2,反馈/3,申述等,默认0 调用方传 */
category?: string;
/** 邮箱 */
email?: string;
/** 手机号码 */
phone?: string;
/** 店铺标识 */
store_identity?: string;
/** 代理 */
agency?: string;
};
export type ListReply = {
count?: number;
list?: FeedbackItem[];
};
export type FeedbackItem = {
identity?: string;
/** 用户唯一标识 */
user_identity?: string;
/** 用户名称 */
user_name?: string;
/** 状态,1未处理,2已处理,也可以调用方自行设置,如果未设置则默认是1 */
status?: number;
/** 创建时间 */
created_at?: string;
/** 更新时间 */
updated_at?: string;
/** 标题 */
title?: string;
/** 内容 */
content?: string;
/** 图片 */
images?: FeedbackImage[];
/** 反馈信息 */
remark?: string;
/** 类型: 1:pre_sales 2:after_sales */
category?: string;
accessories?: FeedbackAccessory[];
/** 邮箱 */
email?: string;
/** 手机号码 */
phone?: string;
/** 店铺标识 */
store_identity?: string;
/** 代理 */
agency?: string;
};
export type FeedbackImage = {
identity?: string;
itemIdentity?: string;
url?: string;
};
export type FeedbackAccessory = {
identity?: string;
item_identity?: string;
/** 附件标题 */
title?: string;
/** 附件地址 */
file_path?: string;
};
export type GetRequest = {
identity?: string;
};
export type GetReply = {
record?: FeedbackItem;
exists?: boolean;
};
export type AddRequest = {
/** 用户唯一标识 */
user_identity?: string;
/** 用户名称 */
user_name?: string;
/** 状态,1未处理,2已处理,也可以调用方自行设置,如果未设置则默认是1 */
status?: number;
/** 标题 */
title?: string;
/** 内容 */
content?: string;
/** 图片 */
images?: FeedbackImage[];
/** 类型: 1:pre_sales 2:after_sales */
category?: string;
/** 附件 */
accessories?: FeedbackAccessory[];
/** 邮箱 */
email?: string;
/** 手机号码 */
phone?: string;
/** 店铺标识 */
store_identity?: string;
/** 代理 */
agency?: string;
};
export type AddReply = {
identity?: string;
};
export type ModifyRequest = {
identity?: string;
/** 用户唯一标识 */
user_identity?: string;
/** 用户名称 */
user_name?: string;
/** 状态,1未处理,2已处理,也可以调用方自行设置,如果未设置则默认是1 */
status?: number;
/** 标题 */
title?: string;
/** 内容 */
content?: string;
/** 图片 */
images?: FeedbackImage[];
/** 类型: 1:pre_sales 2:after_sales */
category?: string;
/** 附件 */
accessories?: FeedbackAccessory[];
/** 邮箱 */
email?: string;
/** 手机号码 */
phone?: string;
/** 店铺标识 */
store_identity?: string;
/** 代理 */
agency?: string;
};
export type DeleteRequest = {
identity?: string;
};
export type RemarkRequest = {
identity?: string;
remark?: string;
status?: number;
};
export type IdentRequest = {
/** 唯一ID */
id?: number;
/** 唯一码 */
identity?: string;
};
export type StatusReply = {
/** 状态码 */
code?: number;
/** 状态说明 */
message?: string;
/** 数据 */
details?: string;
/** 响应时间序列 */
timeseq?: number;
};
/** Feedback-建议反馈模块 */
export interface Method {
}
type RequestType = {
path: string;
method: string;
body: string | null;
};
type RequestHandler = (request: RequestType, meta: { service: string, method: string }) => Promise<unknown>;
export function createMethodClient(
handler: RequestHandler
): Method {
return {
};
}
// @@protoc_insertion_point(typescript-http-eof)