mirror of
https://github.com/TeaOSLab/EdgeCommon.git
synced 2025-11-17 23:50:24 +08:00
对服务增加基础的数据统计/部分代码分Package
This commit is contained in:
18
pkg/rpc/protos/models/model_admin.proto
Normal file
18
pkg/rpc/protos/models/model_admin.proto
Normal file
@@ -0,0 +1,18 @@
|
||||
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认证
|
||||
}
|
||||
Reference in New Issue
Block a user