mirror of
				https://github.com/TeaOSLab/EdgeCommon.git
				synced 2025-11-04 05:00:24 +08:00 
			
		
		
		
	
		
			
				
	
	
		
			19 lines
		
	
	
		
			383 B
		
	
	
	
		
			Protocol Buffer
		
	
	
	
	
	
			
		
		
	
	
			19 lines
		
	
	
		
			383 B
		
	
	
	
		
			Protocol Buffer
		
	
	
	
	
	
syntax = "proto3";
 | 
						|
option go_package = "./pb";
 | 
						|
 | 
						|
package pb;
 | 
						|
 | 
						|
import "models/model_admin_module.proto";
 | 
						|
import "models/model_login.proto";
 | 
						|
 | 
						|
message Admin {
 | 
						|
	int64 id = 1;
 | 
						|
	string fullname = 2;
 | 
						|
	string username = 3;
 | 
						|
	bool isOn = 4;
 | 
						|
	bool isSuper = 5;
 | 
						|
	int64 createdAt = 6;
 | 
						|
	repeated AdminModule Modules = 7;
 | 
						|
	Login otpLogin = 8; // OTP认证
 | 
						|
	bool canLogin = 9; // 是否可以登录
 | 
						|
} |