auto updated.
This commit is contained in:
		
							parent
							
								
									b646562853
								
							
						
					
					
						commit
						50ae2fe358
					
				|  | @ -1,24 +0,0 @@ | ||||||
| # Mail |  | ||||||
| 
 |  | ||||||
|  Mail method |  | ||||||
| 
 |  | ||||||
| - [/notify.Mail/SendMail](#notifymailsendmail) |  | ||||||
| 
 |  | ||||||
| ## /notify.Mail/SendMail |  | ||||||
| 
 |  | ||||||
| 
 |  | ||||||
| 
 |  | ||||||
| ### Request |  | ||||||
| ```javascript |  | ||||||
| { |  | ||||||
|     sign_name: "", // type<string>, 必传项 |  | ||||||
| } |  | ||||||
| ``` |  | ||||||
| 
 |  | ||||||
| ### Reply |  | ||||||
| ```javascript |  | ||||||
| { |  | ||||||
|     request_id: "", // type<string> |  | ||||||
| } |  | ||||||
| ``` |  | ||||||
| 
 |  | ||||||
|  | @ -1,210 +0,0 @@ | ||||||
| # Xiaomi |  | ||||||
| 
 |  | ||||||
| 
 |  | ||||||
| - [/notify.Xiaomi/Regid](#notifyxiaomiregid) |  | ||||||
| - [/notify.Xiaomi/Alias](#notifyxiaomialias) |  | ||||||
| - [/notify.Xiaomi/Topic](#notifyxiaomitopic) |  | ||||||
| - [/notify.Xiaomi/MultiTopic](#notifyxiaomimultitopic) |  | ||||||
| - [/notify.Xiaomi/All](#notifyxiaomiall) |  | ||||||
| 
 |  | ||||||
| ## /notify.Xiaomi/Regid |  | ||||||
| 
 |  | ||||||
|  向一组regid列表或alias列表推送单条消息(这些regId可以属于不同的包名) |  | ||||||
| 
 |  | ||||||
| 
 |  | ||||||
| ### Request |  | ||||||
| ```javascript |  | ||||||
| { |  | ||||||
|     push_type: "", // type<string>, 推送类型:"alias";"registration_id"; 注:需要与push_id对应 |  | ||||||
|     push_id: [""], // list<string>, 根据alias或registration_id或account,发送消息到指定设备上,用逗号分割。  |  | ||||||
|     message: { |  | ||||||
|         payload: "", // type<string>, 消息的内容。(注意:需要对payload字符串做urlencode处理) |  | ||||||
|         restricted_package_name: "", // type<string>, App的包名。备注:中间用逗号分割。 |  | ||||||
|         title: "", // type<string>, 通知栏展示的通知的标题,不允许全是空白字符,长度小于50, 一个中英文字符均计算为1(通知栏消息必填)。 |  | ||||||
|         description: "", // type<string>, 通知栏展示的通知的描述,不允许全是空白字符,长度小于128,一个中英文字符均计算为1(通知栏消息必填)。 |  | ||||||
|         time_to_live: "0", // type<int64>, 可选项。如果用户离线,设置消息在服务器保存的时间,单位:ms。服务器默认最长保留两周。 |  | ||||||
|         time_to_send: "0", // type<int64>, 可选项。定时发送消息。用自1970年1月1日以来00:00:00.0 UTC时间表示(以毫秒为单位的时间)。注:仅支持七天内的定时消息。 |  | ||||||
|         sound_uri: "", // type<string>, 可选项,自定义通知栏消息铃声url |  | ||||||
|         notify_foreground: "", // type<string>, 可选项 '1'弹出通知栏消息(默认);'0'不会弹出通知栏消息 |  | ||||||
|         notify_effect: "", // type<string>, 可选项,预定义通知栏消息的点击行为;"1":打开app的Launcher Activity。"2":打开app的任一Activity(需要extra.intent_uri)。"3":打开网页(需要传入extra.web_uri) |  | ||||||
|         intent_uri: "", // type<string>, 可选项,打开当前app的任一组件。 |  | ||||||
|         web_uri: "", // type<string>, 可选项,打开某一个网页。 |  | ||||||
|         jobkey: "", // type<string>, 可选项,使用推送批次(JobKey)功能聚合消息。由数字([0-9]),大小写字母([a-zA-Z]),下划线(_)和中划线(-)组成,长度不大于20个字符 |  | ||||||
|         app_version: "", // type<string>, 可以接收消息的app版本号,用逗号分割。目前支持MiPush_SDK_Client_2_2_12_sdk.jar(及以后)的版本。 |  | ||||||
|         app_version_not_in: "", // type<string>, 无法接收消息的app版本号,用逗号分割。 |  | ||||||
|         connpt: "", // type<string>, 可选项,指定在特定的网络环境下才能接收到消息。目前仅支持指定"wifi"。 |  | ||||||
|         only_send_once: "", // type<string>, 可选项,extra.only_send_once的值设置为'1',表示该消息仅在设备在线时发送一次,不缓存离线消息进行多次下发 |  | ||||||
|         notify_id: 0, // type<int32>, 可选项。默认情况下,通知栏只显示一条推送消息。如果通知栏要显示多条推送消息,需要针对不同的消息设置不同的notify_id(相同notify_id的通知栏消息会覆盖之前的),且要求notify_id为取值在0~2147483647的整数。 |  | ||||||
|     }, // type<BaseItem> |  | ||||||
| } |  | ||||||
| ``` |  | ||||||
| 
 |  | ||||||
| ### Reply |  | ||||||
| ```javascript |  | ||||||
| { |  | ||||||
|     status: "0", // type<int64>, 状态码 |  | ||||||
|     identity: "", // type<string>, 标识码 |  | ||||||
|     message: "", // type<string>, 状态说明 |  | ||||||
|     timeseq: "0", // type<int64>, 响应时间序列 |  | ||||||
| } |  | ||||||
| ``` |  | ||||||
| ## /notify.Xiaomi/Alias |  | ||||||
| 
 |  | ||||||
|  向某个alias或一组alias列表推送某条消息(这些alias可以属于不同的包名) |  | ||||||
| 
 |  | ||||||
| 
 |  | ||||||
| ### Request |  | ||||||
| ```javascript |  | ||||||
| { |  | ||||||
|     push_type: "", // type<string>, 推送类型:"alias";"registration_id"; 注:需要与push_id对应 |  | ||||||
|     push_id: [""], // list<string>, 根据alias或registration_id或account,发送消息到指定设备上,用逗号分割。  |  | ||||||
|     message: { |  | ||||||
|         payload: "", // type<string>, 消息的内容。(注意:需要对payload字符串做urlencode处理) |  | ||||||
|         restricted_package_name: "", // type<string>, App的包名。备注:中间用逗号分割。 |  | ||||||
|         title: "", // type<string>, 通知栏展示的通知的标题,不允许全是空白字符,长度小于50, 一个中英文字符均计算为1(通知栏消息必填)。 |  | ||||||
|         description: "", // type<string>, 通知栏展示的通知的描述,不允许全是空白字符,长度小于128,一个中英文字符均计算为1(通知栏消息必填)。 |  | ||||||
|         time_to_live: "0", // type<int64>, 可选项。如果用户离线,设置消息在服务器保存的时间,单位:ms。服务器默认最长保留两周。 |  | ||||||
|         time_to_send: "0", // type<int64>, 可选项。定时发送消息。用自1970年1月1日以来00:00:00.0 UTC时间表示(以毫秒为单位的时间)。注:仅支持七天内的定时消息。 |  | ||||||
|         sound_uri: "", // type<string>, 可选项,自定义通知栏消息铃声url |  | ||||||
|         notify_foreground: "", // type<string>, 可选项 '1'弹出通知栏消息(默认);'0'不会弹出通知栏消息 |  | ||||||
|         notify_effect: "", // type<string>, 可选项,预定义通知栏消息的点击行为;"1":打开app的Launcher Activity。"2":打开app的任一Activity(需要extra.intent_uri)。"3":打开网页(需要传入extra.web_uri) |  | ||||||
|         intent_uri: "", // type<string>, 可选项,打开当前app的任一组件。 |  | ||||||
|         web_uri: "", // type<string>, 可选项,打开某一个网页。 |  | ||||||
|         jobkey: "", // type<string>, 可选项,使用推送批次(JobKey)功能聚合消息。由数字([0-9]),大小写字母([a-zA-Z]),下划线(_)和中划线(-)组成,长度不大于20个字符 |  | ||||||
|         app_version: "", // type<string>, 可以接收消息的app版本号,用逗号分割。目前支持MiPush_SDK_Client_2_2_12_sdk.jar(及以后)的版本。 |  | ||||||
|         app_version_not_in: "", // type<string>, 无法接收消息的app版本号,用逗号分割。 |  | ||||||
|         connpt: "", // type<string>, 可选项,指定在特定的网络环境下才能接收到消息。目前仅支持指定"wifi"。 |  | ||||||
|         only_send_once: "", // type<string>, 可选项,extra.only_send_once的值设置为'1',表示该消息仅在设备在线时发送一次,不缓存离线消息进行多次下发 |  | ||||||
|         notify_id: 0, // type<int32>, 可选项。默认情况下,通知栏只显示一条推送消息。如果通知栏要显示多条推送消息,需要针对不同的消息设置不同的notify_id(相同notify_id的通知栏消息会覆盖之前的),且要求notify_id为取值在0~2147483647的整数。 |  | ||||||
|     }, // type<BaseItem> |  | ||||||
| } |  | ||||||
| ``` |  | ||||||
| 
 |  | ||||||
| ### Reply |  | ||||||
| ```javascript |  | ||||||
| { |  | ||||||
|     status: "0", // type<int64>, 状态码 |  | ||||||
|     identity: "", // type<string>, 标识码 |  | ||||||
|     message: "", // type<string>, 状态说明 |  | ||||||
|     timeseq: "0", // type<int64>, 响应时间序列 |  | ||||||
| } |  | ||||||
| ``` |  | ||||||
| ## /notify.Xiaomi/Topic |  | ||||||
| 
 |  | ||||||
|  向某个topic推送单条消息 |  | ||||||
| 
 |  | ||||||
| 
 |  | ||||||
| ### Request |  | ||||||
| ```javascript |  | ||||||
| { |  | ||||||
|     topic: "", // type<string>, 根据topic,发送消息给订阅了该topic的所有设备 |  | ||||||
|     message: { |  | ||||||
|         payload: "", // type<string>, 消息的内容。(注意:需要对payload字符串做urlencode处理) |  | ||||||
|         restricted_package_name: "", // type<string>, App的包名。备注:中间用逗号分割。 |  | ||||||
|         title: "", // type<string>, 通知栏展示的通知的标题,不允许全是空白字符,长度小于50, 一个中英文字符均计算为1(通知栏消息必填)。 |  | ||||||
|         description: "", // type<string>, 通知栏展示的通知的描述,不允许全是空白字符,长度小于128,一个中英文字符均计算为1(通知栏消息必填)。 |  | ||||||
|         time_to_live: "0", // type<int64>, 可选项。如果用户离线,设置消息在服务器保存的时间,单位:ms。服务器默认最长保留两周。 |  | ||||||
|         time_to_send: "0", // type<int64>, 可选项。定时发送消息。用自1970年1月1日以来00:00:00.0 UTC时间表示(以毫秒为单位的时间)。注:仅支持七天内的定时消息。 |  | ||||||
|         sound_uri: "", // type<string>, 可选项,自定义通知栏消息铃声url |  | ||||||
|         notify_foreground: "", // type<string>, 可选项 '1'弹出通知栏消息(默认);'0'不会弹出通知栏消息 |  | ||||||
|         notify_effect: "", // type<string>, 可选项,预定义通知栏消息的点击行为;"1":打开app的Launcher Activity。"2":打开app的任一Activity(需要extra.intent_uri)。"3":打开网页(需要传入extra.web_uri) |  | ||||||
|         intent_uri: "", // type<string>, 可选项,打开当前app的任一组件。 |  | ||||||
|         web_uri: "", // type<string>, 可选项,打开某一个网页。 |  | ||||||
|         jobkey: "", // type<string>, 可选项,使用推送批次(JobKey)功能聚合消息。由数字([0-9]),大小写字母([a-zA-Z]),下划线(_)和中划线(-)组成,长度不大于20个字符 |  | ||||||
|         app_version: "", // type<string>, 可以接收消息的app版本号,用逗号分割。目前支持MiPush_SDK_Client_2_2_12_sdk.jar(及以后)的版本。 |  | ||||||
|         app_version_not_in: "", // type<string>, 无法接收消息的app版本号,用逗号分割。 |  | ||||||
|         connpt: "", // type<string>, 可选项,指定在特定的网络环境下才能接收到消息。目前仅支持指定"wifi"。 |  | ||||||
|         only_send_once: "", // type<string>, 可选项,extra.only_send_once的值设置为'1',表示该消息仅在设备在线时发送一次,不缓存离线消息进行多次下发 |  | ||||||
|         notify_id: 0, // type<int32>, 可选项。默认情况下,通知栏只显示一条推送消息。如果通知栏要显示多条推送消息,需要针对不同的消息设置不同的notify_id(相同notify_id的通知栏消息会覆盖之前的),且要求notify_id为取值在0~2147483647的整数。 |  | ||||||
|     }, // type<BaseItem> |  | ||||||
| } |  | ||||||
| ``` |  | ||||||
| 
 |  | ||||||
| ### Reply |  | ||||||
| ```javascript |  | ||||||
| { |  | ||||||
|     status: "0", // type<int64>, 状态码 |  | ||||||
|     identity: "", // type<string>, 标识码 |  | ||||||
|     message: "", // type<string>, 状态说明 |  | ||||||
|     timeseq: "0", // type<int64>, 响应时间序列 |  | ||||||
| } |  | ||||||
| ``` |  | ||||||
| ## /notify.Xiaomi/MultiTopic |  | ||||||
| 
 |  | ||||||
|  向多个topic推送单条消息(可以指定一个或多个包名) |  | ||||||
| 
 |  | ||||||
| 
 |  | ||||||
| ### Request |  | ||||||
| ```javascript |  | ||||||
| { |  | ||||||
|     topics: "", // type<string>, topic列表,使用;$;分割。注: topics参数需要和topic_op参数配合使用,另外topic的数量不能超过5。 |  | ||||||
|     topic_op: "", // type<string>, topic之间的操作关系。支持以下三种:UNION并集INTERSECTION交集EXCEPT差集例如:topics的列表元素是[A, B, C, D],则并集结果是A∪B∪C∪D,交集的结果是A ∩B ∩C ∩D,差集的结果是A-B-C-D。 |  | ||||||
|     message: { |  | ||||||
|         payload: "", // type<string>, 消息的内容。(注意:需要对payload字符串做urlencode处理) |  | ||||||
|         restricted_package_name: "", // type<string>, App的包名。备注:中间用逗号分割。 |  | ||||||
|         title: "", // type<string>, 通知栏展示的通知的标题,不允许全是空白字符,长度小于50, 一个中英文字符均计算为1(通知栏消息必填)。 |  | ||||||
|         description: "", // type<string>, 通知栏展示的通知的描述,不允许全是空白字符,长度小于128,一个中英文字符均计算为1(通知栏消息必填)。 |  | ||||||
|         time_to_live: "0", // type<int64>, 可选项。如果用户离线,设置消息在服务器保存的时间,单位:ms。服务器默认最长保留两周。 |  | ||||||
|         time_to_send: "0", // type<int64>, 可选项。定时发送消息。用自1970年1月1日以来00:00:00.0 UTC时间表示(以毫秒为单位的时间)。注:仅支持七天内的定时消息。 |  | ||||||
|         sound_uri: "", // type<string>, 可选项,自定义通知栏消息铃声url |  | ||||||
|         notify_foreground: "", // type<string>, 可选项 '1'弹出通知栏消息(默认);'0'不会弹出通知栏消息 |  | ||||||
|         notify_effect: "", // type<string>, 可选项,预定义通知栏消息的点击行为;"1":打开app的Launcher Activity。"2":打开app的任一Activity(需要extra.intent_uri)。"3":打开网页(需要传入extra.web_uri) |  | ||||||
|         intent_uri: "", // type<string>, 可选项,打开当前app的任一组件。 |  | ||||||
|         web_uri: "", // type<string>, 可选项,打开某一个网页。 |  | ||||||
|         jobkey: "", // type<string>, 可选项,使用推送批次(JobKey)功能聚合消息。由数字([0-9]),大小写字母([a-zA-Z]),下划线(_)和中划线(-)组成,长度不大于20个字符 |  | ||||||
|         app_version: "", // type<string>, 可以接收消息的app版本号,用逗号分割。目前支持MiPush_SDK_Client_2_2_12_sdk.jar(及以后)的版本。 |  | ||||||
|         app_version_not_in: "", // type<string>, 无法接收消息的app版本号,用逗号分割。 |  | ||||||
|         connpt: "", // type<string>, 可选项,指定在特定的网络环境下才能接收到消息。目前仅支持指定"wifi"。 |  | ||||||
|         only_send_once: "", // type<string>, 可选项,extra.only_send_once的值设置为'1',表示该消息仅在设备在线时发送一次,不缓存离线消息进行多次下发 |  | ||||||
|         notify_id: 0, // type<int32>, 可选项。默认情况下,通知栏只显示一条推送消息。如果通知栏要显示多条推送消息,需要针对不同的消息设置不同的notify_id(相同notify_id的通知栏消息会覆盖之前的),且要求notify_id为取值在0~2147483647的整数。 |  | ||||||
|     }, // type<BaseItem> |  | ||||||
| } |  | ||||||
| ``` |  | ||||||
| 
 |  | ||||||
| ### Reply |  | ||||||
| ```javascript |  | ||||||
| { |  | ||||||
|     status: "0", // type<int64>, 状态码 |  | ||||||
|     identity: "", // type<string>, 标识码 |  | ||||||
|     message: "", // type<string>, 状态说明 |  | ||||||
|     timeseq: "0", // type<int64>, 响应时间序列 |  | ||||||
| } |  | ||||||
| ``` |  | ||||||
| ## /notify.Xiaomi/All |  | ||||||
| 
 |  | ||||||
|  向所有设备推送某条消息(可以指定一个或多个包名) |  | ||||||
| 
 |  | ||||||
| 
 |  | ||||||
| ### Request |  | ||||||
| ```javascript |  | ||||||
| { |  | ||||||
|     payload: "", // type<string>, 消息的内容。(注意:需要对payload字符串做urlencode处理) |  | ||||||
|     restricted_package_name: "", // type<string>, App的包名。备注:中间用逗号分割。 |  | ||||||
|     title: "", // type<string>, 通知栏展示的通知的标题,不允许全是空白字符,长度小于50, 一个中英文字符均计算为1(通知栏消息必填)。 |  | ||||||
|     description: "", // type<string>, 通知栏展示的通知的描述,不允许全是空白字符,长度小于128,一个中英文字符均计算为1(通知栏消息必填)。 |  | ||||||
|     time_to_live: "0", // type<int64>, 可选项。如果用户离线,设置消息在服务器保存的时间,单位:ms。服务器默认最长保留两周。 |  | ||||||
|     time_to_send: "0", // type<int64>, 可选项。定时发送消息。用自1970年1月1日以来00:00:00.0 UTC时间表示(以毫秒为单位的时间)。注:仅支持七天内的定时消息。 |  | ||||||
|     sound_uri: "", // type<string>, 可选项,自定义通知栏消息铃声url |  | ||||||
|     notify_foreground: "", // type<string>, 可选项 '1'弹出通知栏消息(默认);'0'不会弹出通知栏消息 |  | ||||||
|     notify_effect: "", // type<string>, 可选项,预定义通知栏消息的点击行为;"1":打开app的Launcher Activity。"2":打开app的任一Activity(需要extra.intent_uri)。"3":打开网页(需要传入extra.web_uri) |  | ||||||
|     intent_uri: "", // type<string>, 可选项,打开当前app的任一组件。 |  | ||||||
|     web_uri: "", // type<string>, 可选项,打开某一个网页。 |  | ||||||
|     jobkey: "", // type<string>, 可选项,使用推送批次(JobKey)功能聚合消息。由数字([0-9]),大小写字母([a-zA-Z]),下划线(_)和中划线(-)组成,长度不大于20个字符 |  | ||||||
|     app_version: "", // type<string>, 可以接收消息的app版本号,用逗号分割。目前支持MiPush_SDK_Client_2_2_12_sdk.jar(及以后)的版本。 |  | ||||||
|     app_version_not_in: "", // type<string>, 无法接收消息的app版本号,用逗号分割。 |  | ||||||
|     connpt: "", // type<string>, 可选项,指定在特定的网络环境下才能接收到消息。目前仅支持指定"wifi"。 |  | ||||||
|     only_send_once: "", // type<string>, 可选项,extra.only_send_once的值设置为'1',表示该消息仅在设备在线时发送一次,不缓存离线消息进行多次下发 |  | ||||||
|     notify_id: 0, // type<int32>, 可选项。默认情况下,通知栏只显示一条推送消息。如果通知栏要显示多条推送消息,需要针对不同的消息设置不同的notify_id(相同notify_id的通知栏消息会覆盖之前的),且要求notify_id为取值在0~2147483647的整数。 |  | ||||||
| } |  | ||||||
| ``` |  | ||||||
| 
 |  | ||||||
| ### Reply |  | ||||||
| ```javascript |  | ||||||
| { |  | ||||||
|     status: "0", // type<int64>, 状态码 |  | ||||||
|     identity: "", // type<string>, 标识码 |  | ||||||
|     message: "", // type<string>, 状态说明 |  | ||||||
|     timeseq: "0", // type<int64>, 响应时间序列 |  | ||||||
| } |  | ||||||
| ``` |  | ||||||
| 
 |  | ||||||
|  | @ -1,57 +0,0 @@ | ||||||
| # Sms |  | ||||||
| 
 |  | ||||||
|  sms method |  | ||||||
| 
 |  | ||||||
| - [/notify.Sms/Send](#notifysmssend) |  | ||||||
| - [/notify.Sms/Verify](#notifysmsverify) |  | ||||||
| 
 |  | ||||||
| ## /notify.Sms/Send |  | ||||||
| 
 |  | ||||||
| 
 |  | ||||||
| 
 |  | ||||||
| ### Request |  | ||||||
| ```javascript |  | ||||||
| { |  | ||||||
|     sign_name: "", // type<string>, 必传项 |  | ||||||
|     template_code: "", // type<string>, 必传项 |  | ||||||
|     phone: "", // type<string>, 必传项 |  | ||||||
|     paramters: { |  | ||||||
|         "": "" |  | ||||||
|     }, // map<string,string> |  | ||||||
|     // 验证码相关 |  | ||||||
|     generate_code: false, // type<bool>, 是否生成验证码 |  | ||||||
|     expire_interval: "0", // type<int64>, 验证码缓存时间,单位:分钟,仅generate_code为true时会缓存,默认5分钟 |  | ||||||
|     code_width: "0", // type<int64>, 验证码长度,默认 4 |  | ||||||
|     code_key: "", // type<string>, template_code 模板中验证码的标识,默认code |  | ||||||
|     has_black_list_filter: false, // type<bool>, 是否黑单过滤,默认不过滤 |  | ||||||
|     wihout_limit: false, // type<bool>, 忽略每天短信条数上线限制,默认不忽略 |  | ||||||
| } |  | ||||||
| ``` |  | ||||||
| 
 |  | ||||||
| ### Reply |  | ||||||
| ```javascript |  | ||||||
| { |  | ||||||
|     // string request_id = 1; |  | ||||||
|     biz_id: "", // type<string> |  | ||||||
| } |  | ||||||
| ``` |  | ||||||
| ## /notify.Sms/Verify |  | ||||||
| 
 |  | ||||||
| 
 |  | ||||||
| 
 |  | ||||||
| ### Request |  | ||||||
| ```javascript |  | ||||||
| { |  | ||||||
|     // string request_id = 1; |  | ||||||
|     phone: "", // type<string> |  | ||||||
|     code: "", // type<string> |  | ||||||
| } |  | ||||||
| ``` |  | ||||||
| 
 |  | ||||||
| ### Reply |  | ||||||
| ```javascript |  | ||||||
| { |  | ||||||
|     pass: false, // type<bool> |  | ||||||
| } |  | ||||||
| ``` |  | ||||||
| 
 |  | ||||||
|  | @ -1,18 +1,21 @@ | ||||||
| { | { | ||||||
|   "swagger": "2.0", |   "swagger": "2.0", | ||||||
|   "info": { |   "info": { | ||||||
|     "title": "mail.proto", |     "title": "blocks.proto", | ||||||
|     "version": "version not set" |     "version": "version not set" | ||||||
|   }, |   }, | ||||||
|   "tags": [ |   "tags": [ | ||||||
|     { |     { | ||||||
|       "name": "Mail" |       "name": "Account" | ||||||
|     }, |     }, | ||||||
|     { |     { | ||||||
|       "name": "Xiaomi" |       "name": "Forget" | ||||||
|     }, |     }, | ||||||
|     { |     { | ||||||
|       "name": "Sms" |       "name": "Login" | ||||||
|  |     }, | ||||||
|  |     { | ||||||
|  |       "name": "Register" | ||||||
|     } |     } | ||||||
|   ], |   ], | ||||||
|   "consumes": [ |   "consumes": [ | ||||||
|  | @ -23,122 +26,192 @@ | ||||||
|   ], |   ], | ||||||
|   "paths": {}, |   "paths": {}, | ||||||
|   "definitions": { |   "definitions": { | ||||||
|     "notifyBaseItem": { |     "passportForgetReply": { | ||||||
|       "type": "object", |       "type": "object", | ||||||
|       "properties": { |       "properties": { | ||||||
|         "payload": { |         "identity": { | ||||||
|           "type": "string", |           "type": "string", | ||||||
|           "title": "消息的内容。(注意:需要对payload字符串做urlencode处理)" |           "title": "用户唯一码" | ||||||
|         }, |         }, | ||||||
|         "restrictedPackageName": { |         "dataBind": { | ||||||
|           "type": "string", |           "type": "string", | ||||||
|           "title": "App的包名。备注:中间用逗号分割。" |           "title": "数据绑定的相关说明,PASS通过,NOPHONE没有绑定手机号,NOPWD没有设置密码,NOBIND没有手机号同时没有密码" | ||||||
|         }, |         }, | ||||||
|         "title": { |         "token": { | ||||||
|           "type": "string", |           "type": "string", | ||||||
|           "title": "通知栏展示的通知的标题,不允许全是空白字符,长度小于50, 一个中英文字符均计算为1(通知栏消息必填)。" |           "title": "用户凭证" | ||||||
|         }, |         }, | ||||||
|         "description": { |         "extend": { | ||||||
|  |           "type": "object", | ||||||
|  |           "additionalProperties": { | ||||||
|  |             "type": "string" | ||||||
|  |           }, | ||||||
|  |           "title": "扩展字段" | ||||||
|  |         } | ||||||
|  |       } | ||||||
|  |     }, | ||||||
|  |     "passportGetFullReply": { | ||||||
|  |       "type": "object", | ||||||
|  |       "properties": { | ||||||
|  |         "identity": { | ||||||
|           "type": "string", |           "type": "string", | ||||||
|           "title": "通知栏展示的通知的描述,不允许全是空白字符,长度小于128,一个中英文字符均计算为1(通知栏消息必填)。" |           "title": "唯一标识" | ||||||
|         }, |         }, | ||||||
|         "timeToLive": { |         "account": { | ||||||
|           "type": "string", |           "type": "string", | ||||||
|           "format": "int64", |           "title": "帐号" | ||||||
|           "title": "可选项。如果用户离线,设置消息在服务器保存的时间,单位:ms。服务器默认最长保留两周。" |  | ||||||
|         }, |         }, | ||||||
|         "timeToSend": { |         "phone": { | ||||||
|           "type": "string", |           "type": "string", | ||||||
|           "format": "int64", |           "title": "手机号码 必填" | ||||||
|           "title": "可选项。定时发送消息。用自1970年1月1日以来00:00:00.0 UTC时间表示(以毫秒为单位的时间)。注:仅支持七天内的定时消息。" |  | ||||||
|         }, |         }, | ||||||
|         "soundUri": { |         "email": { | ||||||
|           "type": "string", |           "type": "string", | ||||||
|           "title": "可选项,自定义通知栏消息铃声url" |           "title": "验证码" | ||||||
|         }, |         }, | ||||||
|         "notifyForeground": { |         "rights": { | ||||||
|           "type": "string", |           "type": "string", | ||||||
|           "title": "可选项 '1'弹出通知栏消息(默认);'0'不会弹出通知栏消息" |           "title": "权限" | ||||||
|         }, |         }, | ||||||
|         "notifyEffect": { |         "nickname": { | ||||||
|           "type": "string", |           "type": "string", | ||||||
|           "title": "可选项,预定义通知栏消息的点击行为;\"1\":打开app的Launcher Activity。\"2\":打开app的任一Activity(需要extra.intent_uri)。\"3\":打开网页(需要传入extra.web_uri)" |           "title": "昵称" | ||||||
|         }, |         }, | ||||||
|         "intentUri": { |         "avatar": { | ||||||
|           "type": "string", |           "type": "string", | ||||||
|           "title": "可选项,打开当前app的任一组件。" |           "title": "头像" | ||||||
|         }, |         }, | ||||||
|         "webUri": { |         "birthday": { | ||||||
|           "type": "string", |           "type": "string", | ||||||
|           "title": "可选项,打开某一个网页。" |           "title": "生日" | ||||||
|         }, |         }, | ||||||
|         "jobkey": { |         "sex": { | ||||||
|           "type": "string", |  | ||||||
|           "title": "可选项,使用推送批次(JobKey)功能聚合消息。由数字([0-9]),大小写字母([a-zA-Z]),下划线(_)和中划线(-)组成,长度不大于20个字符" |  | ||||||
|         }, |  | ||||||
|         "appVersion": { |  | ||||||
|           "type": "string", |  | ||||||
|           "title": "可以接收消息的app版本号,用逗号分割。目前支持MiPush_SDK_Client_2_2_12_sdk.jar(及以后)的版本。" |  | ||||||
|         }, |  | ||||||
|         "appVersionNotIn": { |  | ||||||
|           "type": "string", |  | ||||||
|           "title": "无法接收消息的app版本号,用逗号分割。" |  | ||||||
|         }, |  | ||||||
|         "connpt": { |  | ||||||
|           "type": "string", |  | ||||||
|           "title": "可选项,指定在特定的网络环境下才能接收到消息。目前仅支持指定\"wifi\"。" |  | ||||||
|         }, |  | ||||||
|         "onlySendOnce": { |  | ||||||
|           "type": "string", |  | ||||||
|           "title": "可选项,extra.only_send_once的值设置为'1',表示该消息仅在设备在线时发送一次,不缓存离线消息进行多次下发" |  | ||||||
|         }, |  | ||||||
|         "notifyId": { |  | ||||||
|           "type": "integer", |           "type": "integer", | ||||||
|           "format": "int32", |           "format": "int32", | ||||||
|           "title": "可选项。默认情况下,通知栏只显示一条推送消息。如果通知栏要显示多条推送消息,需要针对不同的消息设置不同的notify_id(相同notify_id的通知栏消息会覆盖之前的),且要求notify_id为取值在0~2147483647的整数。" |           "title": "性别,1为男性,2为女性" | ||||||
|         } |  | ||||||
|       } |  | ||||||
|         }, |         }, | ||||||
|     "notifyPassResponse": { |         "country": { | ||||||
|  |           "type": "integer", | ||||||
|  |           "format": "int32", | ||||||
|  |           "title": "国家" | ||||||
|  |         }, | ||||||
|  |         "province": { | ||||||
|  |           "type": "integer", | ||||||
|  |           "format": "int32", | ||||||
|  |           "title": "省" | ||||||
|  |         }, | ||||||
|  |         "city": { | ||||||
|  |           "type": "integer", | ||||||
|  |           "format": "int32", | ||||||
|  |           "title": "市" | ||||||
|  |         }, | ||||||
|  |         "area": { | ||||||
|  |           "type": "integer", | ||||||
|  |           "format": "int32", | ||||||
|  |           "title": "区" | ||||||
|  |         }, | ||||||
|  |         "sign": { | ||||||
|  |           "type": "string", | ||||||
|  |           "title": "签名" | ||||||
|  |         }, | ||||||
|  |         "cover": { | ||||||
|  |           "type": "string", | ||||||
|  |           "title": "背景\u0026封面" | ||||||
|  |         }, | ||||||
|  |         "score": { | ||||||
|  |           "type": "integer", | ||||||
|  |           "format": "int32", | ||||||
|  |           "title": "积分" | ||||||
|  |         }, | ||||||
|  |         "level": { | ||||||
|  |           "type": "integer", | ||||||
|  |           "format": "int32", | ||||||
|  |           "title": "等级" | ||||||
|  |         }, | ||||||
|  |         "verify": { | ||||||
|           "type": "object", |           "type": "object", | ||||||
|       "properties": { |           "additionalProperties": { | ||||||
|         "pass": { |  | ||||||
|             "type": "boolean" |             "type": "boolean" | ||||||
|  |           }, | ||||||
|  |           "title": "数据" | ||||||
|  |         }, | ||||||
|  |         "tags": { | ||||||
|  |           "type": "array", | ||||||
|  |           "items": { | ||||||
|  |             "type": "object", | ||||||
|  |             "$ref": "#/definitions/passportTagItem" | ||||||
|           } |           } | ||||||
|         } |         } | ||||||
|       }, |       }, | ||||||
|     "notifySendMailResponse": { |       "title": "获取会员的完整信息" | ||||||
|       "type": "object", |  | ||||||
|       "properties": { |  | ||||||
|         "requestId": { |  | ||||||
|           "type": "string" |  | ||||||
|         } |  | ||||||
|       } |  | ||||||
|     }, |     }, | ||||||
|     "notifySmsSendResponse": { |     "passportLoginReply": { | ||||||
|       "type": "object", |       "type": "object", | ||||||
|       "properties": { |       "properties": { | ||||||
|         "bizId": { |         "id": { | ||||||
|           "type": "string", |           "type": "string", | ||||||
|           "title": "string request_id = 1;" |           "format": "int64" | ||||||
|         } |  | ||||||
|       } |  | ||||||
|     }, |  | ||||||
|     "notifyStatusReply": { |  | ||||||
|       "type": "object", |  | ||||||
|       "properties": { |  | ||||||
|         "status": { |  | ||||||
|           "type": "string", |  | ||||||
|           "format": "int64", |  | ||||||
|           "title": "状态码" |  | ||||||
|         }, |         }, | ||||||
|         "identity": { |         "identity": { | ||||||
|           "type": "string", |           "type": "string", | ||||||
|           "title": "标识码" |           "title": "用户唯一码" | ||||||
|         }, |         }, | ||||||
|         "message": { |         "token": { | ||||||
|           "type": "string", |           "type": "string", | ||||||
|           "title": "状态说明" |           "title": "用户凭证" | ||||||
|  |         }, | ||||||
|  |         "extend": { | ||||||
|  |           "type": "object", | ||||||
|  |           "additionalProperties": { | ||||||
|  |             "type": "string" | ||||||
|  |           }, | ||||||
|  |           "title": "扩展字段" | ||||||
|  |         } | ||||||
|  |       } | ||||||
|  |     }, | ||||||
|  |     "passportRegisterReply": { | ||||||
|  |       "type": "object", | ||||||
|  |       "properties": { | ||||||
|  |         "id": { | ||||||
|  |           "type": "string", | ||||||
|  |           "format": "int64" | ||||||
|  |         }, | ||||||
|  |         "identity": { | ||||||
|  |           "type": "string", | ||||||
|  |           "title": "用户唯一码" | ||||||
|  |         }, | ||||||
|  |         "token": { | ||||||
|  |           "type": "string", | ||||||
|  |           "title": "用户Header所需Token" | ||||||
|  |         }, | ||||||
|  |         "extend": { | ||||||
|  |           "type": "object", | ||||||
|  |           "additionalProperties": { | ||||||
|  |             "type": "string" | ||||||
|  |           }, | ||||||
|  |           "title": "扩展字段" | ||||||
|  |         } | ||||||
|  |       } | ||||||
|  |     }, | ||||||
|  |     "passportStatisticsReply": { | ||||||
|  |       "type": "object", | ||||||
|  |       "properties": { | ||||||
|  |         "Data": { | ||||||
|  |           "type": "object", | ||||||
|  |           "additionalProperties": { | ||||||
|  |             "type": "string", | ||||||
|  |             "format": "int64" | ||||||
|  |           }, | ||||||
|  |           "title": "数据以Map格式输出" | ||||||
|  |         } | ||||||
|  |       } | ||||||
|  |     }, | ||||||
|  |     "passportStatusReply": { | ||||||
|  |       "type": "object", | ||||||
|  |       "properties": { | ||||||
|  |         "data": { | ||||||
|  |           "type": "string", | ||||||
|  |           "title": "数据" | ||||||
|         }, |         }, | ||||||
|         "timeseq": { |         "timeseq": { | ||||||
|           "type": "string", |           "type": "string", | ||||||
|  | @ -147,6 +220,17 @@ | ||||||
|         } |         } | ||||||
|       } |       } | ||||||
|     }, |     }, | ||||||
|  |     "passportTagItem": { | ||||||
|  |       "type": "object", | ||||||
|  |       "properties": { | ||||||
|  |         "name": { | ||||||
|  |           "type": "string" | ||||||
|  |         }, | ||||||
|  |         "icon": { | ||||||
|  |           "type": "string" | ||||||
|  |         } | ||||||
|  |       } | ||||||
|  |     }, | ||||||
|     "protobufAny": { |     "protobufAny": { | ||||||
|       "type": "object", |       "type": "object", | ||||||
|       "properties": { |       "properties": { | ||||||
|  |  | ||||||
|  | @ -1,583 +0,0 @@ | ||||||
| // Code generated by protoc-gen-go. DO NOT EDIT.
 |  | ||||||
| // versions:
 |  | ||||||
| // 	protoc-gen-go v1.36.8
 |  | ||||||
| // 	protoc        (unknown)
 |  | ||||||
| // source: info.proto
 |  | ||||||
| 
 |  | ||||||
| package passport |  | ||||||
| 
 |  | ||||||
| import ( |  | ||||||
| 	protoreflect "google.golang.org/protobuf/reflect/protoreflect" |  | ||||||
| 	protoimpl "google.golang.org/protobuf/runtime/protoimpl" |  | ||||||
| 	reflect "reflect" |  | ||||||
| 	sync "sync" |  | ||||||
| 	unsafe "unsafe" |  | ||||||
| ) |  | ||||||
| 
 |  | ||||||
| const ( |  | ||||||
| 	// Verify that this generated code is sufficiently up-to-date.
 |  | ||||||
| 	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) |  | ||||||
| 	// Verify that runtime/protoimpl is sufficiently up-to-date.
 |  | ||||||
| 	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) |  | ||||||
| ) |  | ||||||
| 
 |  | ||||||
| type BindRequest struct { |  | ||||||
| 	state         protoimpl.MessageState `protogen:"open.v1"` |  | ||||||
| 	Action        string                 `protobuf:"bytes,1,opt,name=action,proto3" json:"action,omitempty"`     //操作动作
 |  | ||||||
| 	Phone         string                 `protobuf:"bytes,2,opt,name=phone,proto3" json:"phone,omitempty"`       // 手机号码 必填
 |  | ||||||
| 	Code          string                 `protobuf:"bytes,3,opt,name=code,proto3" json:"code,omitempty"`         // 验证码
 |  | ||||||
| 	Password      string                 `protobuf:"bytes,4,opt,name=password,proto3" json:"password,omitempty"` // 密码 必填
 |  | ||||||
| 	Nickname      string                 `protobuf:"bytes,5,opt,name=nickname,proto3" json:"nickname,omitempty"` // 昵称
 |  | ||||||
| 	unknownFields protoimpl.UnknownFields |  | ||||||
| 	sizeCache     protoimpl.SizeCache |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
| func (x *BindRequest) Reset() { |  | ||||||
| 	*x = BindRequest{} |  | ||||||
| 	mi := &file_info_proto_msgTypes[0] |  | ||||||
| 	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |  | ||||||
| 	ms.StoreMessageInfo(mi) |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
| func (x *BindRequest) String() string { |  | ||||||
| 	return protoimpl.X.MessageStringOf(x) |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
| func (*BindRequest) ProtoMessage() {} |  | ||||||
| 
 |  | ||||||
| func (x *BindRequest) ProtoReflect() protoreflect.Message { |  | ||||||
| 	mi := &file_info_proto_msgTypes[0] |  | ||||||
| 	if x != nil { |  | ||||||
| 		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |  | ||||||
| 		if ms.LoadMessageInfo() == nil { |  | ||||||
| 			ms.StoreMessageInfo(mi) |  | ||||||
| 		} |  | ||||||
| 		return ms |  | ||||||
| 	} |  | ||||||
| 	return mi.MessageOf(x) |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
| // Deprecated: Use BindRequest.ProtoReflect.Descriptor instead.
 |  | ||||||
| func (*BindRequest) Descriptor() ([]byte, []int) { |  | ||||||
| 	return file_info_proto_rawDescGZIP(), []int{0} |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
| func (x *BindRequest) GetAction() string { |  | ||||||
| 	if x != nil { |  | ||||||
| 		return x.Action |  | ||||||
| 	} |  | ||||||
| 	return "" |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
| func (x *BindRequest) GetPhone() string { |  | ||||||
| 	if x != nil { |  | ||||||
| 		return x.Phone |  | ||||||
| 	} |  | ||||||
| 	return "" |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
| func (x *BindRequest) GetCode() string { |  | ||||||
| 	if x != nil { |  | ||||||
| 		return x.Code |  | ||||||
| 	} |  | ||||||
| 	return "" |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
| func (x *BindRequest) GetPassword() string { |  | ||||||
| 	if x != nil { |  | ||||||
| 		return x.Password |  | ||||||
| 	} |  | ||||||
| 	return "" |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
| func (x *BindRequest) GetNickname() string { |  | ||||||
| 	if x != nil { |  | ||||||
| 		return x.Nickname |  | ||||||
| 	} |  | ||||||
| 	return "" |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
| type GetDataReply struct { |  | ||||||
| 	state         protoimpl.MessageState `protogen:"open.v1"` |  | ||||||
| 	Account       string                 `protobuf:"bytes,1,opt,name=account,proto3" json:"account,omitempty"`    //帐号
 |  | ||||||
| 	Phone         string                 `protobuf:"bytes,2,opt,name=phone,proto3" json:"phone,omitempty"`        //手机号
 |  | ||||||
| 	Nickname      string                 `protobuf:"bytes,3,opt,name=nickname,proto3" json:"nickname,omitempty"`  //昵称
 |  | ||||||
| 	Avatar        string                 `protobuf:"bytes,4,opt,name=avatar,proto3" json:"avatar,omitempty"`      //头像
 |  | ||||||
| 	Birthday      string                 `protobuf:"bytes,5,opt,name=birthday,proto3" json:"birthday,omitempty"`  //生日
 |  | ||||||
| 	Sex           int32                  `protobuf:"varint,6,opt,name=sex,proto3" json:"sex,omitempty"`           //性别,1为男性,2为女性
 |  | ||||||
| 	Province      int32                  `protobuf:"varint,7,opt,name=province,proto3" json:"province,omitempty"` //省
 |  | ||||||
| 	City          int32                  `protobuf:"varint,8,opt,name=city,proto3" json:"city,omitempty"`         //市
 |  | ||||||
| 	Area          int32                  `protobuf:"varint,9,opt,name=area,proto3" json:"area,omitempty"`         //区
 |  | ||||||
| 	Sign          string                 `protobuf:"bytes,10,opt,name=sign,proto3" json:"sign,omitempty"`         //签名
 |  | ||||||
| 	Approve       int32                  `protobuf:"varint,11,opt,name=approve,proto3" json:"approve,omitempty"`  //状态:-2,认证未通过,0为未认证,1为审核中,2为认证成功
 |  | ||||||
| 	unknownFields protoimpl.UnknownFields |  | ||||||
| 	sizeCache     protoimpl.SizeCache |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
| func (x *GetDataReply) Reset() { |  | ||||||
| 	*x = GetDataReply{} |  | ||||||
| 	mi := &file_info_proto_msgTypes[1] |  | ||||||
| 	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |  | ||||||
| 	ms.StoreMessageInfo(mi) |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
| func (x *GetDataReply) String() string { |  | ||||||
| 	return protoimpl.X.MessageStringOf(x) |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
| func (*GetDataReply) ProtoMessage() {} |  | ||||||
| 
 |  | ||||||
| func (x *GetDataReply) ProtoReflect() protoreflect.Message { |  | ||||||
| 	mi := &file_info_proto_msgTypes[1] |  | ||||||
| 	if x != nil { |  | ||||||
| 		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |  | ||||||
| 		if ms.LoadMessageInfo() == nil { |  | ||||||
| 			ms.StoreMessageInfo(mi) |  | ||||||
| 		} |  | ||||||
| 		return ms |  | ||||||
| 	} |  | ||||||
| 	return mi.MessageOf(x) |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
| // Deprecated: Use GetDataReply.ProtoReflect.Descriptor instead.
 |  | ||||||
| func (*GetDataReply) Descriptor() ([]byte, []int) { |  | ||||||
| 	return file_info_proto_rawDescGZIP(), []int{1} |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
| func (x *GetDataReply) GetAccount() string { |  | ||||||
| 	if x != nil { |  | ||||||
| 		return x.Account |  | ||||||
| 	} |  | ||||||
| 	return "" |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
| func (x *GetDataReply) GetPhone() string { |  | ||||||
| 	if x != nil { |  | ||||||
| 		return x.Phone |  | ||||||
| 	} |  | ||||||
| 	return "" |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
| func (x *GetDataReply) GetNickname() string { |  | ||||||
| 	if x != nil { |  | ||||||
| 		return x.Nickname |  | ||||||
| 	} |  | ||||||
| 	return "" |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
| func (x *GetDataReply) GetAvatar() string { |  | ||||||
| 	if x != nil { |  | ||||||
| 		return x.Avatar |  | ||||||
| 	} |  | ||||||
| 	return "" |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
| func (x *GetDataReply) GetBirthday() string { |  | ||||||
| 	if x != nil { |  | ||||||
| 		return x.Birthday |  | ||||||
| 	} |  | ||||||
| 	return "" |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
| func (x *GetDataReply) GetSex() int32 { |  | ||||||
| 	if x != nil { |  | ||||||
| 		return x.Sex |  | ||||||
| 	} |  | ||||||
| 	return 0 |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
| func (x *GetDataReply) GetProvince() int32 { |  | ||||||
| 	if x != nil { |  | ||||||
| 		return x.Province |  | ||||||
| 	} |  | ||||||
| 	return 0 |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
| func (x *GetDataReply) GetCity() int32 { |  | ||||||
| 	if x != nil { |  | ||||||
| 		return x.City |  | ||||||
| 	} |  | ||||||
| 	return 0 |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
| func (x *GetDataReply) GetArea() int32 { |  | ||||||
| 	if x != nil { |  | ||||||
| 		return x.Area |  | ||||||
| 	} |  | ||||||
| 	return 0 |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
| func (x *GetDataReply) GetSign() string { |  | ||||||
| 	if x != nil { |  | ||||||
| 		return x.Sign |  | ||||||
| 	} |  | ||||||
| 	return "" |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
| func (x *GetDataReply) GetApprove() int32 { |  | ||||||
| 	if x != nil { |  | ||||||
| 		return x.Approve |  | ||||||
| 	} |  | ||||||
| 	return 0 |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
| type SetDataRequest struct { |  | ||||||
| 	state         protoimpl.MessageState `protogen:"open.v1"` |  | ||||||
| 	Nickname      string                 `protobuf:"bytes,1,opt,name=nickname,proto3" json:"nickname,omitempty"`  //昵称
 |  | ||||||
| 	Avatar        string                 `protobuf:"bytes,2,opt,name=avatar,proto3" json:"avatar,omitempty"`      //头像
 |  | ||||||
| 	Birthday      string                 `protobuf:"bytes,3,opt,name=birthday,proto3" json:"birthday,omitempty"`  //生日
 |  | ||||||
| 	Sex           int32                  `protobuf:"varint,4,opt,name=sex,proto3" json:"sex,omitempty"`           //性别,1为男性,2为女性
 |  | ||||||
| 	Province      int32                  `protobuf:"varint,5,opt,name=province,proto3" json:"province,omitempty"` //省
 |  | ||||||
| 	City          int32                  `protobuf:"varint,6,opt,name=city,proto3" json:"city,omitempty"`         //市
 |  | ||||||
| 	Area          int32                  `protobuf:"varint,7,opt,name=area,proto3" json:"area,omitempty"`         //区
 |  | ||||||
| 	Sign          string                 `protobuf:"bytes,8,opt,name=sign,proto3" json:"sign,omitempty"`          //签名
 |  | ||||||
| 	unknownFields protoimpl.UnknownFields |  | ||||||
| 	sizeCache     protoimpl.SizeCache |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
| func (x *SetDataRequest) Reset() { |  | ||||||
| 	*x = SetDataRequest{} |  | ||||||
| 	mi := &file_info_proto_msgTypes[2] |  | ||||||
| 	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |  | ||||||
| 	ms.StoreMessageInfo(mi) |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
| func (x *SetDataRequest) String() string { |  | ||||||
| 	return protoimpl.X.MessageStringOf(x) |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
| func (*SetDataRequest) ProtoMessage() {} |  | ||||||
| 
 |  | ||||||
| func (x *SetDataRequest) ProtoReflect() protoreflect.Message { |  | ||||||
| 	mi := &file_info_proto_msgTypes[2] |  | ||||||
| 	if x != nil { |  | ||||||
| 		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |  | ||||||
| 		if ms.LoadMessageInfo() == nil { |  | ||||||
| 			ms.StoreMessageInfo(mi) |  | ||||||
| 		} |  | ||||||
| 		return ms |  | ||||||
| 	} |  | ||||||
| 	return mi.MessageOf(x) |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
| // Deprecated: Use SetDataRequest.ProtoReflect.Descriptor instead.
 |  | ||||||
| func (*SetDataRequest) Descriptor() ([]byte, []int) { |  | ||||||
| 	return file_info_proto_rawDescGZIP(), []int{2} |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
| func (x *SetDataRequest) GetNickname() string { |  | ||||||
| 	if x != nil { |  | ||||||
| 		return x.Nickname |  | ||||||
| 	} |  | ||||||
| 	return "" |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
| func (x *SetDataRequest) GetAvatar() string { |  | ||||||
| 	if x != nil { |  | ||||||
| 		return x.Avatar |  | ||||||
| 	} |  | ||||||
| 	return "" |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
| func (x *SetDataRequest) GetBirthday() string { |  | ||||||
| 	if x != nil { |  | ||||||
| 		return x.Birthday |  | ||||||
| 	} |  | ||||||
| 	return "" |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
| func (x *SetDataRequest) GetSex() int32 { |  | ||||||
| 	if x != nil { |  | ||||||
| 		return x.Sex |  | ||||||
| 	} |  | ||||||
| 	return 0 |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
| func (x *SetDataRequest) GetProvince() int32 { |  | ||||||
| 	if x != nil { |  | ||||||
| 		return x.Province |  | ||||||
| 	} |  | ||||||
| 	return 0 |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
| func (x *SetDataRequest) GetCity() int32 { |  | ||||||
| 	if x != nil { |  | ||||||
| 		return x.City |  | ||||||
| 	} |  | ||||||
| 	return 0 |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
| func (x *SetDataRequest) GetArea() int32 { |  | ||||||
| 	if x != nil { |  | ||||||
| 		return x.Area |  | ||||||
| 	} |  | ||||||
| 	return 0 |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
| func (x *SetDataRequest) GetSign() string { |  | ||||||
| 	if x != nil { |  | ||||||
| 		return x.Sign |  | ||||||
| 	} |  | ||||||
| 	return "" |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
| type SetPasswordRequest struct { |  | ||||||
| 	state         protoimpl.MessageState `protogen:"open.v1"` |  | ||||||
| 	OldPassword   string                 `protobuf:"bytes,3,opt,name=old_password,json=oldPassword,proto3" json:"old_password,omitempty"` // 旧密码
 |  | ||||||
| 	NewPassword   string                 `protobuf:"bytes,4,opt,name=new_password,json=newPassword,proto3" json:"new_password,omitempty"` // 新密码
 |  | ||||||
| 	unknownFields protoimpl.UnknownFields |  | ||||||
| 	sizeCache     protoimpl.SizeCache |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
| func (x *SetPasswordRequest) Reset() { |  | ||||||
| 	*x = SetPasswordRequest{} |  | ||||||
| 	mi := &file_info_proto_msgTypes[3] |  | ||||||
| 	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |  | ||||||
| 	ms.StoreMessageInfo(mi) |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
| func (x *SetPasswordRequest) String() string { |  | ||||||
| 	return protoimpl.X.MessageStringOf(x) |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
| func (*SetPasswordRequest) ProtoMessage() {} |  | ||||||
| 
 |  | ||||||
| func (x *SetPasswordRequest) ProtoReflect() protoreflect.Message { |  | ||||||
| 	mi := &file_info_proto_msgTypes[3] |  | ||||||
| 	if x != nil { |  | ||||||
| 		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |  | ||||||
| 		if ms.LoadMessageInfo() == nil { |  | ||||||
| 			ms.StoreMessageInfo(mi) |  | ||||||
| 		} |  | ||||||
| 		return ms |  | ||||||
| 	} |  | ||||||
| 	return mi.MessageOf(x) |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
| // Deprecated: Use SetPasswordRequest.ProtoReflect.Descriptor instead.
 |  | ||||||
| func (*SetPasswordRequest) Descriptor() ([]byte, []int) { |  | ||||||
| 	return file_info_proto_rawDescGZIP(), []int{3} |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
| func (x *SetPasswordRequest) GetOldPassword() string { |  | ||||||
| 	if x != nil { |  | ||||||
| 		return x.OldPassword |  | ||||||
| 	} |  | ||||||
| 	return "" |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
| func (x *SetPasswordRequest) GetNewPassword() string { |  | ||||||
| 	if x != nil { |  | ||||||
| 		return x.NewPassword |  | ||||||
| 	} |  | ||||||
| 	return "" |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
| type StatisticsRequest struct { |  | ||||||
| 	state         protoimpl.MessageState `protogen:"open.v1"` |  | ||||||
| 	Field         []string               `protobuf:"bytes,1,rep,name=field,proto3" json:"field,omitempty"` //要获取的统计数据字段。
 |  | ||||||
| 	unknownFields protoimpl.UnknownFields |  | ||||||
| 	sizeCache     protoimpl.SizeCache |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
| func (x *StatisticsRequest) Reset() { |  | ||||||
| 	*x = StatisticsRequest{} |  | ||||||
| 	mi := &file_info_proto_msgTypes[4] |  | ||||||
| 	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |  | ||||||
| 	ms.StoreMessageInfo(mi) |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
| func (x *StatisticsRequest) String() string { |  | ||||||
| 	return protoimpl.X.MessageStringOf(x) |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
| func (*StatisticsRequest) ProtoMessage() {} |  | ||||||
| 
 |  | ||||||
| func (x *StatisticsRequest) ProtoReflect() protoreflect.Message { |  | ||||||
| 	mi := &file_info_proto_msgTypes[4] |  | ||||||
| 	if x != nil { |  | ||||||
| 		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |  | ||||||
| 		if ms.LoadMessageInfo() == nil { |  | ||||||
| 			ms.StoreMessageInfo(mi) |  | ||||||
| 		} |  | ||||||
| 		return ms |  | ||||||
| 	} |  | ||||||
| 	return mi.MessageOf(x) |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
| // Deprecated: Use StatisticsRequest.ProtoReflect.Descriptor instead.
 |  | ||||||
| func (*StatisticsRequest) Descriptor() ([]byte, []int) { |  | ||||||
| 	return file_info_proto_rawDescGZIP(), []int{4} |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
| func (x *StatisticsRequest) GetField() []string { |  | ||||||
| 	if x != nil { |  | ||||||
| 		return x.Field |  | ||||||
| 	} |  | ||||||
| 	return nil |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
| type StatisticsReply struct { |  | ||||||
| 	state         protoimpl.MessageState `protogen:"open.v1"` |  | ||||||
| 	Data          map[string]int64       `protobuf:"bytes,1,rep,name=Data,proto3" json:"Data,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"varint,2,opt,name=value"` //数据以Map格式输出
 |  | ||||||
| 	unknownFields protoimpl.UnknownFields |  | ||||||
| 	sizeCache     protoimpl.SizeCache |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
| func (x *StatisticsReply) Reset() { |  | ||||||
| 	*x = StatisticsReply{} |  | ||||||
| 	mi := &file_info_proto_msgTypes[5] |  | ||||||
| 	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |  | ||||||
| 	ms.StoreMessageInfo(mi) |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
| func (x *StatisticsReply) String() string { |  | ||||||
| 	return protoimpl.X.MessageStringOf(x) |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
| func (*StatisticsReply) ProtoMessage() {} |  | ||||||
| 
 |  | ||||||
| func (x *StatisticsReply) ProtoReflect() protoreflect.Message { |  | ||||||
| 	mi := &file_info_proto_msgTypes[5] |  | ||||||
| 	if x != nil { |  | ||||||
| 		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |  | ||||||
| 		if ms.LoadMessageInfo() == nil { |  | ||||||
| 			ms.StoreMessageInfo(mi) |  | ||||||
| 		} |  | ||||||
| 		return ms |  | ||||||
| 	} |  | ||||||
| 	return mi.MessageOf(x) |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
| // Deprecated: Use StatisticsReply.ProtoReflect.Descriptor instead.
 |  | ||||||
| func (*StatisticsReply) Descriptor() ([]byte, []int) { |  | ||||||
| 	return file_info_proto_rawDescGZIP(), []int{5} |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
| func (x *StatisticsReply) GetData() map[string]int64 { |  | ||||||
| 	if x != nil { |  | ||||||
| 		return x.Data |  | ||||||
| 	} |  | ||||||
| 	return nil |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
| var File_info_proto protoreflect.FileDescriptor |  | ||||||
| 
 |  | ||||||
| const file_info_proto_rawDesc = "" + |  | ||||||
| 	"\n" + |  | ||||||
| 	"\n" + |  | ||||||
| 	"info.proto\x12\bpassport\x1a\fblocks.proto\"\x87\x01\n" + |  | ||||||
| 	"\vBindRequest\x12\x16\n" + |  | ||||||
| 	"\x06action\x18\x01 \x01(\tR\x06action\x12\x14\n" + |  | ||||||
| 	"\x05phone\x18\x02 \x01(\tR\x05phone\x12\x12\n" + |  | ||||||
| 	"\x04code\x18\x03 \x01(\tR\x04code\x12\x1a\n" + |  | ||||||
| 	"\bpassword\x18\x04 \x01(\tR\bpassword\x12\x1a\n" + |  | ||||||
| 	"\bnickname\x18\x05 \x01(\tR\bnickname\"\x92\x02\n" + |  | ||||||
| 	"\fGetDataReply\x12\x18\n" + |  | ||||||
| 	"\aaccount\x18\x01 \x01(\tR\aaccount\x12\x14\n" + |  | ||||||
| 	"\x05phone\x18\x02 \x01(\tR\x05phone\x12\x1a\n" + |  | ||||||
| 	"\bnickname\x18\x03 \x01(\tR\bnickname\x12\x16\n" + |  | ||||||
| 	"\x06avatar\x18\x04 \x01(\tR\x06avatar\x12\x1a\n" + |  | ||||||
| 	"\bbirthday\x18\x05 \x01(\tR\bbirthday\x12\x10\n" + |  | ||||||
| 	"\x03sex\x18\x06 \x01(\x05R\x03sex\x12\x1a\n" + |  | ||||||
| 	"\bprovince\x18\a \x01(\x05R\bprovince\x12\x12\n" + |  | ||||||
| 	"\x04city\x18\b \x01(\x05R\x04city\x12\x12\n" + |  | ||||||
| 	"\x04area\x18\t \x01(\x05R\x04area\x12\x12\n" + |  | ||||||
| 	"\x04sign\x18\n" + |  | ||||||
| 	" \x01(\tR\x04sign\x12\x18\n" + |  | ||||||
| 	"\aapprove\x18\v \x01(\x05R\aapprove\"\xca\x01\n" + |  | ||||||
| 	"\x0eSetDataRequest\x12\x1a\n" + |  | ||||||
| 	"\bnickname\x18\x01 \x01(\tR\bnickname\x12\x16\n" + |  | ||||||
| 	"\x06avatar\x18\x02 \x01(\tR\x06avatar\x12\x1a\n" + |  | ||||||
| 	"\bbirthday\x18\x03 \x01(\tR\bbirthday\x12\x10\n" + |  | ||||||
| 	"\x03sex\x18\x04 \x01(\x05R\x03sex\x12\x1a\n" + |  | ||||||
| 	"\bprovince\x18\x05 \x01(\x05R\bprovince\x12\x12\n" + |  | ||||||
| 	"\x04city\x18\x06 \x01(\x05R\x04city\x12\x12\n" + |  | ||||||
| 	"\x04area\x18\a \x01(\x05R\x04area\x12\x12\n" + |  | ||||||
| 	"\x04sign\x18\b \x01(\tR\x04sign\"Z\n" + |  | ||||||
| 	"\x12SetPasswordRequest\x12!\n" + |  | ||||||
| 	"\fold_password\x18\x03 \x01(\tR\voldPassword\x12!\n" + |  | ||||||
| 	"\fnew_password\x18\x04 \x01(\tR\vnewPassword\")\n" + |  | ||||||
| 	"\x11StatisticsRequest\x12\x14\n" + |  | ||||||
| 	"\x05field\x18\x01 \x03(\tR\x05field\"\x83\x01\n" + |  | ||||||
| 	"\x0fStatisticsReply\x127\n" + |  | ||||||
| 	"\x04Data\x18\x01 \x03(\v2#.passport.StatisticsReply.DataEntryR\x04Data\x1a7\n" + |  | ||||||
| 	"\tDataEntry\x12\x10\n" + |  | ||||||
| 	"\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" + |  | ||||||
| 	"\x05value\x18\x02 \x01(\x03R\x05value:\x028\x012\xc0\x02\n" + |  | ||||||
| 	"\x04Info\x126\n" + |  | ||||||
| 	"\x04Bind\x12\x15.passport.BindRequest\x1a\x15.passport.StatusReply\"\x00\x124\n" + |  | ||||||
| 	"\aGetData\x12\x0f.passport.Empty\x1a\x16.passport.GetDataReply\"\x00\x12<\n" + |  | ||||||
| 	"\aSetData\x12\x18.passport.SetDataRequest\x1a\x15.passport.StatusReply\"\x00\x12D\n" + |  | ||||||
| 	"\vSetPassword\x12\x1c.passport.SetPasswordRequest\x1a\x15.passport.StatusReply\"\x00\x12F\n" + |  | ||||||
| 	"\n" + |  | ||||||
| 	"Statistics\x12\x1b.passport.StatisticsRequest\x1a\x19.passport.StatisticsReply\"\x00B\fZ\n" + |  | ||||||
| 	".;passportb\x06proto3" |  | ||||||
| 
 |  | ||||||
| var ( |  | ||||||
| 	file_info_proto_rawDescOnce sync.Once |  | ||||||
| 	file_info_proto_rawDescData []byte |  | ||||||
| ) |  | ||||||
| 
 |  | ||||||
| func file_info_proto_rawDescGZIP() []byte { |  | ||||||
| 	file_info_proto_rawDescOnce.Do(func() { |  | ||||||
| 		file_info_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_info_proto_rawDesc), len(file_info_proto_rawDesc))) |  | ||||||
| 	}) |  | ||||||
| 	return file_info_proto_rawDescData |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
| var file_info_proto_msgTypes = make([]protoimpl.MessageInfo, 7) |  | ||||||
| var file_info_proto_goTypes = []any{ |  | ||||||
| 	(*BindRequest)(nil),        // 0: passport.BindRequest
 |  | ||||||
| 	(*GetDataReply)(nil),       // 1: passport.GetDataReply
 |  | ||||||
| 	(*SetDataRequest)(nil),     // 2: passport.SetDataRequest
 |  | ||||||
| 	(*SetPasswordRequest)(nil), // 3: passport.SetPasswordRequest
 |  | ||||||
| 	(*StatisticsRequest)(nil),  // 4: passport.StatisticsRequest
 |  | ||||||
| 	(*StatisticsReply)(nil),    // 5: passport.StatisticsReply
 |  | ||||||
| 	nil,                        // 6: passport.StatisticsReply.DataEntry
 |  | ||||||
| 	(*Empty)(nil),              // 7: passport.Empty
 |  | ||||||
| 	(*StatusReply)(nil),        // 8: passport.StatusReply
 |  | ||||||
| } |  | ||||||
| var file_info_proto_depIdxs = []int32{ |  | ||||||
| 	6, // 0: passport.StatisticsReply.Data:type_name -> passport.StatisticsReply.DataEntry
 |  | ||||||
| 	0, // 1: passport.Info.Bind:input_type -> passport.BindRequest
 |  | ||||||
| 	7, // 2: passport.Info.GetData:input_type -> passport.Empty
 |  | ||||||
| 	2, // 3: passport.Info.SetData:input_type -> passport.SetDataRequest
 |  | ||||||
| 	3, // 4: passport.Info.SetPassword:input_type -> passport.SetPasswordRequest
 |  | ||||||
| 	4, // 5: passport.Info.Statistics:input_type -> passport.StatisticsRequest
 |  | ||||||
| 	8, // 6: passport.Info.Bind:output_type -> passport.StatusReply
 |  | ||||||
| 	1, // 7: passport.Info.GetData:output_type -> passport.GetDataReply
 |  | ||||||
| 	8, // 8: passport.Info.SetData:output_type -> passport.StatusReply
 |  | ||||||
| 	8, // 9: passport.Info.SetPassword:output_type -> passport.StatusReply
 |  | ||||||
| 	5, // 10: passport.Info.Statistics:output_type -> passport.StatisticsReply
 |  | ||||||
| 	6, // [6:11] is the sub-list for method output_type
 |  | ||||||
| 	1, // [1:6] is the sub-list for method input_type
 |  | ||||||
| 	1, // [1:1] is the sub-list for extension type_name
 |  | ||||||
| 	1, // [1:1] is the sub-list for extension extendee
 |  | ||||||
| 	0, // [0:1] is the sub-list for field type_name
 |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
| func init() { file_info_proto_init() } |  | ||||||
| func file_info_proto_init() { |  | ||||||
| 	if File_info_proto != nil { |  | ||||||
| 		return |  | ||||||
| 	} |  | ||||||
| 	file_blocks_proto_init() |  | ||||||
| 	type x struct{} |  | ||||||
| 	out := protoimpl.TypeBuilder{ |  | ||||||
| 		File: protoimpl.DescBuilder{ |  | ||||||
| 			GoPackagePath: reflect.TypeOf(x{}).PkgPath(), |  | ||||||
| 			RawDescriptor: unsafe.Slice(unsafe.StringData(file_info_proto_rawDesc), len(file_info_proto_rawDesc)), |  | ||||||
| 			NumEnums:      0, |  | ||||||
| 			NumMessages:   7, |  | ||||||
| 			NumExtensions: 0, |  | ||||||
| 			NumServices:   1, |  | ||||||
| 		}, |  | ||||||
| 		GoTypes:           file_info_proto_goTypes, |  | ||||||
| 		DependencyIndexes: file_info_proto_depIdxs, |  | ||||||
| 		MessageInfos:      file_info_proto_msgTypes, |  | ||||||
| 	}.Build() |  | ||||||
| 	File_info_proto = out.File |  | ||||||
| 	file_info_proto_goTypes = nil |  | ||||||
| 	file_info_proto_depIdxs = nil |  | ||||||
| } |  | ||||||
|  | @ -1,291 +0,0 @@ | ||||||
| // Code generated by protoc-gen-go-grpc. DO NOT EDIT.
 |  | ||||||
| // versions:
 |  | ||||||
| // - protoc-gen-go-grpc v1.5.1
 |  | ||||||
| // - protoc             (unknown)
 |  | ||||||
| // source: info.proto
 |  | ||||||
| 
 |  | ||||||
| package passport |  | ||||||
| 
 |  | ||||||
| import ( |  | ||||||
| 	context "context" |  | ||||||
| 	grpc "google.golang.org/grpc" |  | ||||||
| 	codes "google.golang.org/grpc/codes" |  | ||||||
| 	status "google.golang.org/grpc/status" |  | ||||||
| ) |  | ||||||
| 
 |  | ||||||
| // This is a compile-time assertion to ensure that this generated file
 |  | ||||||
| // is compatible with the grpc package it is being compiled against.
 |  | ||||||
| // Requires gRPC-Go v1.64.0 or later.
 |  | ||||||
| const _ = grpc.SupportPackageIsVersion9 |  | ||||||
| 
 |  | ||||||
| const ( |  | ||||||
| 	Info_Bind_FullMethodName        = "/passport.Info/Bind" |  | ||||||
| 	Info_GetData_FullMethodName     = "/passport.Info/GetData" |  | ||||||
| 	Info_SetData_FullMethodName     = "/passport.Info/SetData" |  | ||||||
| 	Info_SetPassword_FullMethodName = "/passport.Info/SetPassword" |  | ||||||
| 	Info_Statistics_FullMethodName  = "/passport.Info/Statistics" |  | ||||||
| ) |  | ||||||
| 
 |  | ||||||
| // InfoClient is the client API for Info service.
 |  | ||||||
| //
 |  | ||||||
| // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
 |  | ||||||
| //
 |  | ||||||
| // Passport(会员通行证)模块-数据
 |  | ||||||
| // *此模块需要Token验证
 |  | ||||||
| type InfoClient interface { |  | ||||||
| 	// 绑定资料
 |  | ||||||
| 	Bind(ctx context.Context, in *BindRequest, opts ...grpc.CallOption) (*StatusReply, error) |  | ||||||
| 	// 获取会员的所有信息数据
 |  | ||||||
| 	GetData(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*GetDataReply, error) |  | ||||||
| 	// 更新会员的信息数据
 |  | ||||||
| 	// 字段值为空或是0,将不更新此数据
 |  | ||||||
| 	SetData(ctx context.Context, in *SetDataRequest, opts ...grpc.CallOption) (*StatusReply, error) |  | ||||||
| 	// 更新会员的密码
 |  | ||||||
| 	SetPassword(ctx context.Context, in *SetPasswordRequest, opts ...grpc.CallOption) (*StatusReply, error) |  | ||||||
| 	// 获取会员的相关统计数据
 |  | ||||||
| 	Statistics(ctx context.Context, in *StatisticsRequest, opts ...grpc.CallOption) (*StatisticsReply, error) |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
| type infoClient struct { |  | ||||||
| 	cc grpc.ClientConnInterface |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
| func NewInfoClient(cc grpc.ClientConnInterface) InfoClient { |  | ||||||
| 	return &infoClient{cc} |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
| func (c *infoClient) Bind(ctx context.Context, in *BindRequest, opts ...grpc.CallOption) (*StatusReply, error) { |  | ||||||
| 	cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) |  | ||||||
| 	out := new(StatusReply) |  | ||||||
| 	err := c.cc.Invoke(ctx, Info_Bind_FullMethodName, in, out, cOpts...) |  | ||||||
| 	if err != nil { |  | ||||||
| 		return nil, err |  | ||||||
| 	} |  | ||||||
| 	return out, nil |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
| func (c *infoClient) GetData(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*GetDataReply, error) { |  | ||||||
| 	cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) |  | ||||||
| 	out := new(GetDataReply) |  | ||||||
| 	err := c.cc.Invoke(ctx, Info_GetData_FullMethodName, in, out, cOpts...) |  | ||||||
| 	if err != nil { |  | ||||||
| 		return nil, err |  | ||||||
| 	} |  | ||||||
| 	return out, nil |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
| func (c *infoClient) SetData(ctx context.Context, in *SetDataRequest, opts ...grpc.CallOption) (*StatusReply, error) { |  | ||||||
| 	cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) |  | ||||||
| 	out := new(StatusReply) |  | ||||||
| 	err := c.cc.Invoke(ctx, Info_SetData_FullMethodName, in, out, cOpts...) |  | ||||||
| 	if err != nil { |  | ||||||
| 		return nil, err |  | ||||||
| 	} |  | ||||||
| 	return out, nil |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
| func (c *infoClient) SetPassword(ctx context.Context, in *SetPasswordRequest, opts ...grpc.CallOption) (*StatusReply, error) { |  | ||||||
| 	cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) |  | ||||||
| 	out := new(StatusReply) |  | ||||||
| 	err := c.cc.Invoke(ctx, Info_SetPassword_FullMethodName, in, out, cOpts...) |  | ||||||
| 	if err != nil { |  | ||||||
| 		return nil, err |  | ||||||
| 	} |  | ||||||
| 	return out, nil |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
| func (c *infoClient) Statistics(ctx context.Context, in *StatisticsRequest, opts ...grpc.CallOption) (*StatisticsReply, error) { |  | ||||||
| 	cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) |  | ||||||
| 	out := new(StatisticsReply) |  | ||||||
| 	err := c.cc.Invoke(ctx, Info_Statistics_FullMethodName, in, out, cOpts...) |  | ||||||
| 	if err != nil { |  | ||||||
| 		return nil, err |  | ||||||
| 	} |  | ||||||
| 	return out, nil |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
| // InfoServer is the server API for Info service.
 |  | ||||||
| // All implementations must embed UnimplementedInfoServer
 |  | ||||||
| // for forward compatibility.
 |  | ||||||
| //
 |  | ||||||
| // Passport(会员通行证)模块-数据
 |  | ||||||
| // *此模块需要Token验证
 |  | ||||||
| type InfoServer interface { |  | ||||||
| 	// 绑定资料
 |  | ||||||
| 	Bind(context.Context, *BindRequest) (*StatusReply, error) |  | ||||||
| 	// 获取会员的所有信息数据
 |  | ||||||
| 	GetData(context.Context, *Empty) (*GetDataReply, error) |  | ||||||
| 	// 更新会员的信息数据
 |  | ||||||
| 	// 字段值为空或是0,将不更新此数据
 |  | ||||||
| 	SetData(context.Context, *SetDataRequest) (*StatusReply, error) |  | ||||||
| 	// 更新会员的密码
 |  | ||||||
| 	SetPassword(context.Context, *SetPasswordRequest) (*StatusReply, error) |  | ||||||
| 	// 获取会员的相关统计数据
 |  | ||||||
| 	Statistics(context.Context, *StatisticsRequest) (*StatisticsReply, error) |  | ||||||
| 	mustEmbedUnimplementedInfoServer() |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
| // UnimplementedInfoServer must be embedded to have
 |  | ||||||
| // forward compatible implementations.
 |  | ||||||
| //
 |  | ||||||
| // NOTE: this should be embedded by value instead of pointer to avoid a nil
 |  | ||||||
| // pointer dereference when methods are called.
 |  | ||||||
| type UnimplementedInfoServer struct{} |  | ||||||
| 
 |  | ||||||
| func (UnimplementedInfoServer) Bind(context.Context, *BindRequest) (*StatusReply, error) { |  | ||||||
| 	return nil, status.Errorf(codes.Unimplemented, "method Bind not implemented") |  | ||||||
| } |  | ||||||
| func (UnimplementedInfoServer) GetData(context.Context, *Empty) (*GetDataReply, error) { |  | ||||||
| 	return nil, status.Errorf(codes.Unimplemented, "method GetData not implemented") |  | ||||||
| } |  | ||||||
| func (UnimplementedInfoServer) SetData(context.Context, *SetDataRequest) (*StatusReply, error) { |  | ||||||
| 	return nil, status.Errorf(codes.Unimplemented, "method SetData not implemented") |  | ||||||
| } |  | ||||||
| func (UnimplementedInfoServer) SetPassword(context.Context, *SetPasswordRequest) (*StatusReply, error) { |  | ||||||
| 	return nil, status.Errorf(codes.Unimplemented, "method SetPassword not implemented") |  | ||||||
| } |  | ||||||
| func (UnimplementedInfoServer) Statistics(context.Context, *StatisticsRequest) (*StatisticsReply, error) { |  | ||||||
| 	return nil, status.Errorf(codes.Unimplemented, "method Statistics not implemented") |  | ||||||
| } |  | ||||||
| func (UnimplementedInfoServer) mustEmbedUnimplementedInfoServer() {} |  | ||||||
| func (UnimplementedInfoServer) testEmbeddedByValue()              {} |  | ||||||
| 
 |  | ||||||
| // UnsafeInfoServer may be embedded to opt out of forward compatibility for this service.
 |  | ||||||
| // Use of this interface is not recommended, as added methods to InfoServer will
 |  | ||||||
| // result in compilation errors.
 |  | ||||||
| type UnsafeInfoServer interface { |  | ||||||
| 	mustEmbedUnimplementedInfoServer() |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
| func RegisterInfoServer(s grpc.ServiceRegistrar, srv InfoServer) { |  | ||||||
| 	// If the following call pancis, it indicates UnimplementedInfoServer was
 |  | ||||||
| 	// embedded by pointer and is nil.  This will cause panics if an
 |  | ||||||
| 	// unimplemented method is ever invoked, so we test this at initialization
 |  | ||||||
| 	// time to prevent it from happening at runtime later due to I/O.
 |  | ||||||
| 	if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { |  | ||||||
| 		t.testEmbeddedByValue() |  | ||||||
| 	} |  | ||||||
| 	s.RegisterService(&Info_ServiceDesc, srv) |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
| func _Info_Bind_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |  | ||||||
| 	in := new(BindRequest) |  | ||||||
| 	if err := dec(in); err != nil { |  | ||||||
| 		return nil, err |  | ||||||
| 	} |  | ||||||
| 	if interceptor == nil { |  | ||||||
| 		return srv.(InfoServer).Bind(ctx, in) |  | ||||||
| 	} |  | ||||||
| 	info := &grpc.UnaryServerInfo{ |  | ||||||
| 		Server:     srv, |  | ||||||
| 		FullMethod: Info_Bind_FullMethodName, |  | ||||||
| 	} |  | ||||||
| 	handler := func(ctx context.Context, req interface{}) (interface{}, error) { |  | ||||||
| 		return srv.(InfoServer).Bind(ctx, req.(*BindRequest)) |  | ||||||
| 	} |  | ||||||
| 	return interceptor(ctx, in, info, handler) |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
| func _Info_GetData_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |  | ||||||
| 	in := new(Empty) |  | ||||||
| 	if err := dec(in); err != nil { |  | ||||||
| 		return nil, err |  | ||||||
| 	} |  | ||||||
| 	if interceptor == nil { |  | ||||||
| 		return srv.(InfoServer).GetData(ctx, in) |  | ||||||
| 	} |  | ||||||
| 	info := &grpc.UnaryServerInfo{ |  | ||||||
| 		Server:     srv, |  | ||||||
| 		FullMethod: Info_GetData_FullMethodName, |  | ||||||
| 	} |  | ||||||
| 	handler := func(ctx context.Context, req interface{}) (interface{}, error) { |  | ||||||
| 		return srv.(InfoServer).GetData(ctx, req.(*Empty)) |  | ||||||
| 	} |  | ||||||
| 	return interceptor(ctx, in, info, handler) |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
| func _Info_SetData_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |  | ||||||
| 	in := new(SetDataRequest) |  | ||||||
| 	if err := dec(in); err != nil { |  | ||||||
| 		return nil, err |  | ||||||
| 	} |  | ||||||
| 	if interceptor == nil { |  | ||||||
| 		return srv.(InfoServer).SetData(ctx, in) |  | ||||||
| 	} |  | ||||||
| 	info := &grpc.UnaryServerInfo{ |  | ||||||
| 		Server:     srv, |  | ||||||
| 		FullMethod: Info_SetData_FullMethodName, |  | ||||||
| 	} |  | ||||||
| 	handler := func(ctx context.Context, req interface{}) (interface{}, error) { |  | ||||||
| 		return srv.(InfoServer).SetData(ctx, req.(*SetDataRequest)) |  | ||||||
| 	} |  | ||||||
| 	return interceptor(ctx, in, info, handler) |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
| func _Info_SetPassword_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |  | ||||||
| 	in := new(SetPasswordRequest) |  | ||||||
| 	if err := dec(in); err != nil { |  | ||||||
| 		return nil, err |  | ||||||
| 	} |  | ||||||
| 	if interceptor == nil { |  | ||||||
| 		return srv.(InfoServer).SetPassword(ctx, in) |  | ||||||
| 	} |  | ||||||
| 	info := &grpc.UnaryServerInfo{ |  | ||||||
| 		Server:     srv, |  | ||||||
| 		FullMethod: Info_SetPassword_FullMethodName, |  | ||||||
| 	} |  | ||||||
| 	handler := func(ctx context.Context, req interface{}) (interface{}, error) { |  | ||||||
| 		return srv.(InfoServer).SetPassword(ctx, req.(*SetPasswordRequest)) |  | ||||||
| 	} |  | ||||||
| 	return interceptor(ctx, in, info, handler) |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
| func _Info_Statistics_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |  | ||||||
| 	in := new(StatisticsRequest) |  | ||||||
| 	if err := dec(in); err != nil { |  | ||||||
| 		return nil, err |  | ||||||
| 	} |  | ||||||
| 	if interceptor == nil { |  | ||||||
| 		return srv.(InfoServer).Statistics(ctx, in) |  | ||||||
| 	} |  | ||||||
| 	info := &grpc.UnaryServerInfo{ |  | ||||||
| 		Server:     srv, |  | ||||||
| 		FullMethod: Info_Statistics_FullMethodName, |  | ||||||
| 	} |  | ||||||
| 	handler := func(ctx context.Context, req interface{}) (interface{}, error) { |  | ||||||
| 		return srv.(InfoServer).Statistics(ctx, req.(*StatisticsRequest)) |  | ||||||
| 	} |  | ||||||
| 	return interceptor(ctx, in, info, handler) |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
| // Info_ServiceDesc is the grpc.ServiceDesc for Info service.
 |  | ||||||
| // It's only intended for direct use with grpc.RegisterService,
 |  | ||||||
| // and not to be introspected or modified (even as a copy)
 |  | ||||||
| var Info_ServiceDesc = grpc.ServiceDesc{ |  | ||||||
| 	ServiceName: "passport.Info", |  | ||||||
| 	HandlerType: (*InfoServer)(nil), |  | ||||||
| 	Methods: []grpc.MethodDesc{ |  | ||||||
| 		{ |  | ||||||
| 			MethodName: "Bind", |  | ||||||
| 			Handler:    _Info_Bind_Handler, |  | ||||||
| 		}, |  | ||||||
| 		{ |  | ||||||
| 			MethodName: "GetData", |  | ||||||
| 			Handler:    _Info_GetData_Handler, |  | ||||||
| 		}, |  | ||||||
| 		{ |  | ||||||
| 			MethodName: "SetData", |  | ||||||
| 			Handler:    _Info_SetData_Handler, |  | ||||||
| 		}, |  | ||||||
| 		{ |  | ||||||
| 			MethodName: "SetPassword", |  | ||||||
| 			Handler:    _Info_SetPassword_Handler, |  | ||||||
| 		}, |  | ||||||
| 		{ |  | ||||||
| 			MethodName: "Statistics", |  | ||||||
| 			Handler:    _Info_Statistics_Handler, |  | ||||||
| 		}, |  | ||||||
| 	}, |  | ||||||
| 	Streams:  []grpc.StreamDesc{}, |  | ||||||
| 	Metadata: "info.proto", |  | ||||||
| } |  | ||||||
		Loading…
	
		Reference in New Issue