From d17b570d0515b6432a8dee70495cfeb942913827 Mon Sep 17 00:00:00 2001 From: yanweidong Date: Wed, 28 Feb 2024 10:28:34 +0800 Subject: [PATCH] fix --- axios/service/company/types.ts | 6 +++--- axios/service/feedback/types.ts | 2 +- axios/service/notify/types.ts | 8 ++++---- axios/service/order/types.ts | 2 +- cli/main.go | 4 ++-- 5 files changed, 11 insertions(+), 11 deletions(-) diff --git a/axios/service/company/types.ts b/axios/service/company/types.ts index de7cf47..8fddfe6 100644 --- a/axios/service/company/types.ts +++ b/axios/service/company/types.ts @@ -18,7 +18,7 @@ export interface CompanyListRequest { relation_genre?: number; // 关联关系类型: 1 成员企业、2 分销企业、3 供货企业 registered_start_at?: string; // 注册时间-开始,格式:2006-01-02 15:04:05 registered_end_at?: string; // 注册时间-结束格式:2006-01-02 15:04:05 - with_statistics?: bool; // 是否需要查询统计信息 + with_statistics?: boolean; // 是否需要查询统计信息 } @@ -83,7 +83,7 @@ export interface DeliveryAddressItem { province_identity?: string; // 省级identity city_identity?: string; // 市级identity district_identity?: string; // 区级identity - is_default?: bool; + is_default?: boolean; created_at?: string; } @@ -131,7 +131,7 @@ export interface StaffListRequest { status?: number; registered_start_at?: string; // 注册时间-开始,格式:2006-01-02 15:04:05 registered_end_at?: string; // 注册时间-结束格式:2006-01-02 15:04:05 - with_statistics?: bool; // 是否需要查询统计信息 + with_statistics?: boolean; // 是否需要查询统计信息 staff_identity?: string; } diff --git a/axios/service/feedback/types.ts b/axios/service/feedback/types.ts index 5672dc0..5aa0c87 100644 --- a/axios/service/feedback/types.ts +++ b/axios/service/feedback/types.ts @@ -45,7 +45,7 @@ export interface GetRequest { export interface GetReply { record?: FeedbackItem; - exists?: bool; + exists?: boolean; } diff --git a/axios/service/notify/types.ts b/axios/service/notify/types.ts index 544926d..0ada23d 100644 --- a/axios/service/notify/types.ts +++ b/axios/service/notify/types.ts @@ -15,12 +15,12 @@ export interface SmsSendRequest { template_code?: string; // 必传项 phone?: string; // 必传项 paramters?: { [key in string]: any}; - generate_code?: bool; // 验证码相关 是否生成验证码 + generate_code?: boolean; // 验证码相关 是否生成验证码 expire_interval?: number; // 验证码缓存时间,单位:分钟,仅generate_code为true时会缓存,默认5分钟 code_width?: number; // 验证码长度,默认 4 code_key?: string; // template_code 模板中验证码的标识,默认code - has_black_list_filter?: bool; // 是否黑单过滤,默认不过滤 - wihout_limit?: bool; // 忽略每天短信条数上线限制,默认不忽略 + has_black_list_filter?: boolean; // 是否黑单过滤,默认不过滤 + wihout_limit?: boolean; // 忽略每天短信条数上线限制,默认不忽略 } @@ -36,5 +36,5 @@ export interface SmsVerifyRequest { export interface PassResponse { - pass?: bool; + pass?: boolean; } \ No newline at end of file diff --git a/axios/service/order/types.ts b/axios/service/order/types.ts index ea27d38..607da8b 100644 --- a/axios/service/order/types.ts +++ b/axios/service/order/types.ts @@ -194,7 +194,7 @@ export interface ConfirmRequest { address_id?: number; // 订单唯一码 coupon_identity?: string; // 优惠卷 remark?: string; // 备注 - logisticsFee?: TYPE_DOUBLE; // 运费 + logisticsFee?: number; // 运费 } diff --git a/cli/main.go b/cli/main.go index a986328..9c6e45a 100644 --- a/cli/main.go +++ b/cli/main.go @@ -255,10 +255,10 @@ func getFdType(fd *desc.FieldDescriptor) string { switch fd.GetType().String() { case "TYPE_STRING": return "string" - case "TYPE_INT64", "TYPE_INT32", "TYPE_FLOAT32", "TYPE_FLOAT64": + case "TYPE_INT64", "TYPE_INT32", "TYPE_FLOAT32", "TYPE_FLOAT64", "TYPE_DOUBLE": return "number" case "TYPE_BOOL": - return "bool" + return "boolean" case "TYPE_MESSAGE": return fd.GetMessageType().GetName() default: