133 lines
2.3 KiB
TypeScript
133 lines
2.3 KiB
TypeScript
// Code generated by protoc-gen-typescript-http. DO NOT EDIT.
|
|
/* eslint-disable camelcase */
|
|
// @ts-nocheck
|
|
|
|
export type Crc = {
|
|
code?: string;
|
|
};
|
|
|
|
export type StatusReply = {
|
|
/** 状态码 */
|
|
status?: number;
|
|
/** 标识码 */
|
|
identity?: string;
|
|
/** 状态说明 */
|
|
message?: string;
|
|
/** 响应时间序列 */
|
|
timeseq?: number;
|
|
};
|
|
|
|
export type CheckForUpdatesRequest = {
|
|
/** 应用程序名称 <必填> */
|
|
app?: string;
|
|
/** 操作系统 <必填> */
|
|
os?: string;
|
|
/** 构架名称 <必填> */
|
|
arch?: string;
|
|
/** 版本号 <必填> */
|
|
version?: string;
|
|
};
|
|
|
|
export type CheckForUpdatesReply = {
|
|
/** 唯一码 */
|
|
identity?: string;
|
|
/** 版本号 */
|
|
version?: string;
|
|
/** 更析说明 */
|
|
summary?: string;
|
|
/** 更新文件以及文件hash */
|
|
files?: string;
|
|
/** 发布时间 */
|
|
pubdate?: string;
|
|
};
|
|
|
|
/** initial-检测是否有新版或新的配置 */
|
|
export interface Check {
|
|
}
|
|
|
|
type RequestType = {
|
|
path: string;
|
|
method: string;
|
|
body: string | null;
|
|
};
|
|
|
|
type RequestHandler = (request: RequestType, meta: { service: string, method: string }) => Promise<unknown>;
|
|
|
|
export function createCheckClient(
|
|
handler: RequestHandler
|
|
): Check {
|
|
return {
|
|
};
|
|
}
|
|
export type Empty = {
|
|
};
|
|
|
|
export type AreasRequest = {
|
|
/** 是否输出乡镇,默认:市级 */
|
|
showTown?: boolean;
|
|
};
|
|
|
|
export type ConfigRequest = {
|
|
/** 应用程序名称 <必填> */
|
|
app?: string;
|
|
/** 操作系统 <必填> */
|
|
os?: string;
|
|
};
|
|
|
|
export type ConfigReply = {
|
|
/** 配置参数列表 */
|
|
data?: ConfigItem[];
|
|
};
|
|
|
|
export type ConfigItem = {
|
|
/** 唯一标识 */
|
|
Identity?: string;
|
|
/** 配置键 */
|
|
key?: string;
|
|
/** 配置值 */
|
|
value?: string;
|
|
/** 版本号 */
|
|
version?: number;
|
|
};
|
|
|
|
export type AreasReply = {
|
|
areas?: AreasItem[];
|
|
};
|
|
|
|
export type AreasItem = {
|
|
id?: string;
|
|
pid?: string;
|
|
deep?: number;
|
|
name?: string;
|
|
pinyinPrefix?: string;
|
|
pinyin?: string;
|
|
extId?: string;
|
|
extName?: string;
|
|
};
|
|
|
|
export type TagsReply = {
|
|
tags?: TagsItem[];
|
|
};
|
|
|
|
export type TagsItem = {
|
|
id?: number;
|
|
type?: number;
|
|
key?: string;
|
|
title?: string;
|
|
remark?: string;
|
|
icon?: string;
|
|
};
|
|
|
|
/** initial-数据 */
|
|
export interface Data {
|
|
}
|
|
|
|
export function createDataClient(
|
|
handler: RequestHandler
|
|
): Data {
|
|
return {
|
|
};
|
|
}
|
|
|
|
// @@protoc_insertion_point(typescript-http-eof)
|