mirror of
				https://github.com/TeaOSLab/EdgeCommon.git
				synced 2025-11-04 05:00:24 +08:00 
			
		
		
		
	API节点信息增加instanceCode(实例代号)字段
This commit is contained in:
		
							
								
								
									
										5894
									
								
								build/rpc.json
									
									
									
									
									
								
							
							
						
						
									
										5894
									
								
								build/rpc.json
									
									
									
									
									
								
							
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							@@ -47,6 +47,7 @@ type APINode struct {
 | 
			
		||||
	StatusJSON      []byte   `protobuf:"bytes,12,opt,name=statusJSON,proto3" json:"statusJSON,omitempty"`
 | 
			
		||||
	IsPrimary       bool     `protobuf:"varint,16,opt,name=isPrimary,proto3" json:"isPrimary,omitempty"`
 | 
			
		||||
	Debug           bool     `protobuf:"varint,30,opt,name=debug,proto3" json:"debug,omitempty"`
 | 
			
		||||
	InstanceCode    string   `protobuf:"bytes,31,opt,name=instanceCode,proto3" json:"instanceCode,omitempty"`
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func (x *APINode) Reset() {
 | 
			
		||||
@@ -200,12 +201,19 @@ func (x *APINode) GetDebug() bool {
 | 
			
		||||
	return false
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func (x *APINode) GetInstanceCode() string {
 | 
			
		||||
	if x != nil {
 | 
			
		||||
		return x.InstanceCode
 | 
			
		||||
	}
 | 
			
		||||
	return ""
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
var File_models_model_api_node_proto protoreflect.FileDescriptor
 | 
			
		||||
 | 
			
		||||
var file_models_model_api_node_proto_rawDesc = []byte{
 | 
			
		||||
	0x0a, 0x1b, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2f, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x5f, 0x61,
 | 
			
		||||
	0x70, 0x69, 0x5f, 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x02, 0x70,
 | 
			
		||||
	0x62, 0x22, 0xfd, 0x03, 0x0a, 0x07, 0x41, 0x50, 0x49, 0x4e, 0x6f, 0x64, 0x65, 0x12, 0x0e, 0x0a,
 | 
			
		||||
	0x62, 0x22, 0xa1, 0x04, 0x0a, 0x07, 0x41, 0x50, 0x49, 0x4e, 0x6f, 0x64, 0x65, 0x12, 0x0e, 0x0a,
 | 
			
		||||
	0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a,
 | 
			
		||||
	0x04, 0x69, 0x73, 0x4f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x04, 0x69, 0x73, 0x4f,
 | 
			
		||||
	0x6e, 0x12, 0x24, 0x0a, 0x0d, 0x6e, 0x6f, 0x64, 0x65, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72,
 | 
			
		||||
@@ -237,8 +245,10 @@ var file_models_model_api_node_proto_rawDesc = []byte{
 | 
			
		||||
	0x09, 0x69, 0x73, 0x50, 0x72, 0x69, 0x6d, 0x61, 0x72, 0x79, 0x18, 0x10, 0x20, 0x01, 0x28, 0x08,
 | 
			
		||||
	0x52, 0x09, 0x69, 0x73, 0x50, 0x72, 0x69, 0x6d, 0x61, 0x72, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x64,
 | 
			
		||||
	0x65, 0x62, 0x75, 0x67, 0x18, 0x1e, 0x20, 0x01, 0x28, 0x08, 0x52, 0x05, 0x64, 0x65, 0x62, 0x75,
 | 
			
		||||
	0x67, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x2f, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f,
 | 
			
		||||
	0x33,
 | 
			
		||||
	0x67, 0x12, 0x22, 0x0a, 0x0c, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x43, 0x6f, 0x64,
 | 
			
		||||
	0x65, 0x18, 0x1f, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63,
 | 
			
		||||
	0x65, 0x43, 0x6f, 0x64, 0x65, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x2f, 0x70, 0x62, 0x62, 0x06, 0x70,
 | 
			
		||||
	0x72, 0x6f, 0x74, 0x6f, 0x33,
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
var (
 | 
			
		||||
 
 | 
			
		||||
@@ -2153,8 +2153,8 @@ type ComposeAdminDashboardResponse_UpgradeInfo struct {
 | 
			
		||||
	sizeCache     protoimpl.SizeCache
 | 
			
		||||
	unknownFields protoimpl.UnknownFields
 | 
			
		||||
 | 
			
		||||
	CountNodes int64  `protobuf:"varint,1,opt,name=countNodes,proto3" json:"countNodes,omitempty"`
 | 
			
		||||
	NewVersion string `protobuf:"bytes,2,opt,name=newVersion,proto3" json:"newVersion,omitempty"`
 | 
			
		||||
	CountNodes int64  `protobuf:"varint,1,opt,name=countNodes,proto3" json:"countNodes,omitempty"` // 节点数
 | 
			
		||||
	NewVersion string `protobuf:"bytes,2,opt,name=newVersion,proto3" json:"newVersion,omitempty"`  // 新版本
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func (x *ComposeAdminDashboardResponse_UpgradeInfo) Reset() {
 | 
			
		||||
 
 | 
			
		||||
@@ -22,4 +22,5 @@ message APINode {
 | 
			
		||||
	bool isPrimary = 16;
 | 
			
		||||
 | 
			
		||||
	bool debug = 30;
 | 
			
		||||
	string instanceCode = 31;
 | 
			
		||||
}
 | 
			
		||||
@@ -281,8 +281,8 @@ message ComposeAdminDashboardResponse {
 | 
			
		||||
 | 
			
		||||
	// 节点升级信息
 | 
			
		||||
	message UpgradeInfo {
 | 
			
		||||
		int64 countNodes = 1;
 | 
			
		||||
		string newVersion = 2;
 | 
			
		||||
		int64 countNodes = 1; // 节点数
 | 
			
		||||
		string newVersion = 2; // 新版本
 | 
			
		||||
	}
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user