mirror of
				https://github.com/TeaOSLab/EdgeCommon.git
				synced 2025-11-04 13:10:24 +08:00 
			
		
		
		
	
		
			
	
	
		
			23 lines
		
	
	
		
			436 B
		
	
	
	
		
			Protocol Buffer
		
	
	
	
	
	
		
		
			
		
	
	
			23 lines
		
	
	
		
			436 B
		
	
	
	
		
			Protocol Buffer
		
	
	
	
	
	
| 
								 | 
							
								syntax = "proto3";
							 | 
						||
| 
								 | 
							
								option go_package = "./pb";
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								package pb;
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								// AccessToken相关服务
							 | 
						||
| 
								 | 
							
								service APIAccessTokenService {
							 | 
						||
| 
								 | 
							
									// 获取AccessToken
							 | 
						||
| 
								 | 
							
									rpc GetAPIAccessToken (GetAPIAccessTokenRequest) returns (GetAPIAccessTokenResponse);
							 | 
						||
| 
								 | 
							
								}
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								// 获取AccessToken
							 | 
						||
| 
								 | 
							
								message GetAPIAccessTokenRequest {
							 | 
						||
| 
								 | 
							
									string type = 1;
							 | 
						||
| 
								 | 
							
									string accessKeyId = 2;
							 | 
						||
| 
								 | 
							
									string accessKey = 3;
							 | 
						||
| 
								 | 
							
								}
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								message GetAPIAccessTokenResponse {
							 | 
						||
| 
								 | 
							
									string token = 1;
							 | 
						||
| 
								 | 
							
									int64 expiresAt = 2;
							 | 
						||
| 
								 | 
							
								}
							 |