mirror of
https://github.com/VaalaCat/frp-panel.git
synced 2025-09-26 19:31:18 +08:00
40 lines
744 B
Protocol Buffer
40 lines
744 B
Protocol Buffer
syntax = "proto3";
|
|
package api_auth;
|
|
|
|
import "common.proto";
|
|
option go_package="../pb";
|
|
|
|
message LoginRequest {
|
|
optional string username = 1;
|
|
optional string password = 2;
|
|
}
|
|
|
|
message LoginResponse {
|
|
optional common.Status status = 1;
|
|
optional string token = 2;
|
|
}
|
|
|
|
message RegisterRequest {
|
|
optional string username = 1;
|
|
optional string password = 2;
|
|
optional string email = 3;
|
|
}
|
|
|
|
message RegisterResponse {
|
|
optional common.Status status = 1;
|
|
}
|
|
|
|
message APIPermission {
|
|
optional string method = 1;
|
|
optional string path = 2;
|
|
}
|
|
|
|
message SignTokenRequest {
|
|
optional int64 expires_in = 1;
|
|
repeated APIPermission permissions = 2;
|
|
}
|
|
|
|
message SignTokenResponse {
|
|
optional common.Status status = 1;
|
|
optional string token = 2;
|
|
} |