mirror of
https://github.com/TeaOSLab/EdgeCommon.git
synced 2025-11-07 23:30:25 +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; // 是否可以登录
|
|
} |