fix: admin database charset
This commit is contained in:
@@ -1,12 +1,13 @@
|
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// versions:
|
||||
// protoc-gen-go v1.36.11
|
||||
// protoc v4.25.8
|
||||
// protoc v3.19.4
|
||||
// source: proto/admin.proto
|
||||
|
||||
package admin
|
||||
|
||||
import (
|
||||
_ "google.golang.org/genproto/googleapis/api/annotations"
|
||||
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
||||
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
||||
anypb "google.golang.org/protobuf/types/known/anypb"
|
||||
@@ -514,7 +515,7 @@ var File_proto_admin_proto protoreflect.FileDescriptor
|
||||
|
||||
const file_proto_admin_proto_rawDesc = "" +
|
||||
"\n" +
|
||||
"\x11proto/admin.proto\x12\x05admin\x1a\x19google/protobuf/any.proto\"\xac\x01\n" +
|
||||
"\x11proto/admin.proto\x12\x05admin\x1a\x19google/protobuf/any.proto\x1a\x1cgoogle/api/annotations.proto\"\xac\x01\n" +
|
||||
"\x10AdminEditRequest\x12\x0e\n" +
|
||||
"\x02id\x18\x01 \x01(\x03R\x02id\x12\x12\n" +
|
||||
"\x04name\x18\x02 \x01(\tR\x04name\x12\x1a\n" +
|
||||
@@ -547,9 +548,9 @@ const file_proto_admin_proto_rawDesc = "" +
|
||||
"\x06status\x18\a \x01(\x05R\x06status\"K\n" +
|
||||
"\x11AdminLoginRequest\x12\x1a\n" +
|
||||
"\busername\x18\x01 \x01(\x05R\busername\x12\x1a\n" +
|
||||
"\bpassword\x18\x02 \x01(\x05R\bpassword2\xc3\x03\n" +
|
||||
"\x05Admin\x124\n" +
|
||||
"\bAdminAdd\x12\x17.admin.AdminEditRequest\x1a\x0f.admin.Response\x125\n" +
|
||||
"\bpassword\x18\x02 \x01(\x05R\bpassword2\xe3\x03\n" +
|
||||
"\x05Admin\x12T\n" +
|
||||
"\bAdminAdd\x12\x17.admin.AdminEditRequest\x1a\x0f.admin.Response\"\x1e\x82\xd3\xe4\x93\x02\x18:\x01*\"\x13/admin/v3/admin/add\x125\n" +
|
||||
"\tAdminEdit\x12\x17.admin.AdminEditRequest\x1a\x0f.admin.Response\x124\n" +
|
||||
"\vAdminStatus\x12\x14.admin.StatusRequest\x1a\x0f.admin.Response\x123\n" +
|
||||
"\bPassword\x12\x16.admin.PasswordRequest\x1a\x0f.admin.Response\x129\n" +
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
|
||||
// versions:
|
||||
// - protoc-gen-go-grpc v1.6.2
|
||||
// - protoc v4.25.8
|
||||
// - protoc v3.19.4
|
||||
// source: proto/admin.proto
|
||||
|
||||
package admin
|
||||
|
||||
@@ -4,6 +4,7 @@ package admin;
|
||||
option go_package="./admin";
|
||||
|
||||
import "google/protobuf/any.proto";
|
||||
import "google/api/annotations.proto";
|
||||
|
||||
message AdminEditRequest {
|
||||
int64 id = 1;
|
||||
@@ -15,6 +16,7 @@ message AdminEditRequest {
|
||||
repeated int64 roles = 7;
|
||||
}
|
||||
|
||||
|
||||
message StatusRequest {
|
||||
int64 id = 1 ;
|
||||
int32 status = 2 ;
|
||||
@@ -55,7 +57,13 @@ message AdminLoginRequest {
|
||||
}
|
||||
|
||||
service Admin {
|
||||
rpc AdminAdd(AdminEditRequest) returns(Response);
|
||||
rpc AdminAdd(AdminEditRequest) returns(Response){
|
||||
option (google.api.http) = {
|
||||
post: "/admin/v3/admin/add"
|
||||
body: "*"
|
||||
};
|
||||
};
|
||||
|
||||
rpc AdminEdit(AdminEditRequest) returns(Response);
|
||||
rpc AdminStatus(StatusRequest) returns(Response);
|
||||
rpc Password(PasswordRequest) returns(Response);
|
||||
|
||||
Reference in New Issue
Block a user