158 lines
		
	
	
		
			2.8 KiB
		
	
	
	
		
			TypeScript
		
	
	
	
			
		
		
	
	
			158 lines
		
	
	
		
			2.8 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 ConfigRequest = {
 | ||
|   /** 应用程序名称 <必填> */ 
 | ||
|   app?: string;
 | ||
|   /** 操作系统 <必填> */ 
 | ||
|   os?: string;
 | ||
| };
 | ||
| 
 | ||
| export type ConfigReply = {
 | ||
|   /** 配置参数列表 */ 
 | ||
|   data?: ConfigItem[];
 | ||
| };
 | ||
| 
 | ||
| export type ConfigItem = {
 | ||
|   /** 唯一标识 */ 
 | ||
|   Identity?: string;
 | ||
|   /** 配置键 */ 
 | ||
|   key?: string;
 | ||
|   /** 配置值 */ 
 | ||
|   value?: string;
 | ||
|   /** 版本号 */ 
 | ||
|   version?: 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 CountryReply = {
 | ||
|   countries?: CountryItem[];
 | ||
| };
 | ||
| 
 | ||
| export type CountryItem = {
 | ||
|   id?: number;
 | ||
|   Iso2?: string;
 | ||
|   Iso3?: string;
 | ||
|   numCode?: string;
 | ||
|   phoneCode?: string;
 | ||
|   currency?: string;
 | ||
|   currencySymbol?: string;
 | ||
|   region?: string;
 | ||
|   timezones?: string;
 | ||
|   translations?: string;
 | ||
|   name?: string;
 | ||
|   localName?: string;
 | ||
|   enabled?: boolean;
 | ||
|   sortOrder?: number;
 | ||
| };
 | ||
| 
 | ||
| export type AreasRequest = {
 | ||
|   /** 国家ID,默认:中国 1 */ 
 | ||
|   countryId?: number;
 | ||
|   /** 国家代码,默认:中国 CN */ 
 | ||
|   countryCode?: string;
 | ||
|   /** 是否输出乡镇,默认:市级 */ 
 | ||
|   showTown?: boolean;
 | ||
| };
 | ||
| 
 | ||
| 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 DatasReply = {
 | ||
|   datas?: DatasItem[];
 | ||
| };
 | ||
| 
 | ||
| export type DatasItem = {
 | ||
|   id?: number;
 | ||
|   dataType?: string;
 | ||
|   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)
 |