member is added
This commit is contained in:
parent
ac441c063f
commit
b5d6db061c
1
build.rs
1
build.rs
|
@ -63,6 +63,7 @@ static TARGETS: Lazy<HashMap<&str, Vec<&str>>> = Lazy::new(|| {
|
||||||
vec![
|
vec![
|
||||||
"./proto/ss/domain/site.proto",
|
"./proto/ss/domain/site.proto",
|
||||||
"./proto/ss/member/identity.proto",
|
"./proto/ss/member/identity.proto",
|
||||||
|
"./proto/ss/member/member.proto",
|
||||||
],
|
],
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
|
@ -23,7 +23,7 @@ message Member {
|
||||||
bet.beteran.domain.Site site = 2;
|
bet.beteran.domain.Site site = 2;
|
||||||
MemberClass member_class = 3;
|
MemberClass member_class = 3;
|
||||||
MemberLevel member_level = 4;
|
MemberLevel member_level = 4;
|
||||||
optional Member referrer = 5;
|
optional Member referrer_member = 5;
|
||||||
uint64 referred_count = 6;
|
uint64 referred_count = 6;
|
||||||
string username = 7;
|
string username = 7;
|
||||||
string nickname = 8;
|
string nickname = 8;
|
||||||
|
|
|
@ -2,8 +2,6 @@ syntax = "proto3";
|
||||||
|
|
||||||
package bet.beteran.rbac;
|
package bet.beteran.rbac;
|
||||||
|
|
||||||
import "models/rbac/resource.proto";
|
|
||||||
|
|
||||||
message Role {
|
message Role {
|
||||||
string id = 1;
|
string id = 1;
|
||||||
Role parent = 2;
|
Role parent = 2;
|
||||||
|
|
56
proto/ss/member/member.proto
Normal file
56
proto/ss/member/member.proto
Normal file
|
@ -0,0 +1,56 @@
|
||||||
|
syntax = "proto3";
|
||||||
|
|
||||||
|
package bet.beteran.ss.member;
|
||||||
|
|
||||||
|
import "protobuf/rpc/error.proto";
|
||||||
|
import "models/core/network.proto";
|
||||||
|
import "protobuf/pagination/pagination.proto";
|
||||||
|
import "protobuf/pagination/search.proto";
|
||||||
|
import "protobuf/pagination/sort.proto";
|
||||||
|
|
||||||
|
import "models/member/member.proto";
|
||||||
|
|
||||||
|
|
||||||
|
// subject = bet.beteran.ss.member.ListMembers
|
||||||
|
message ListMembersRequest {
|
||||||
|
bet.beteran.core.network.Client client = 1;
|
||||||
|
optional bet.protobuf.pagination.Pagination pagination = 2;
|
||||||
|
repeated bet.protobuf.pagination.Search searches = 3;
|
||||||
|
repeated bet.protobuf.pagination.Sort sorts = 4;
|
||||||
|
}
|
||||||
|
|
||||||
|
message ListMembersResponse {
|
||||||
|
message Result {
|
||||||
|
repeated bet.beteran.member.Member members = 1;
|
||||||
|
}
|
||||||
|
optional bet.protobuf.rpc.Error error = 1;
|
||||||
|
optional Result result = 2;
|
||||||
|
}
|
||||||
|
|
||||||
|
// subject = bet.beteran.ss.member.GetMember
|
||||||
|
message GetMemberRequest {
|
||||||
|
bet.beteran.core.network.Client client = 1;
|
||||||
|
string id = 2;
|
||||||
|
}
|
||||||
|
|
||||||
|
message GetMemberResponse {
|
||||||
|
message Result {
|
||||||
|
bet.beteran.member.Member member = 1;
|
||||||
|
}
|
||||||
|
optional bet.protobuf.rpc.Error error = 1;
|
||||||
|
optional Result result = 2;
|
||||||
|
}
|
||||||
|
|
||||||
|
// subject = bet.beteran.ss.member.GetMemberByUsername
|
||||||
|
message GetMemberByUsernameRequest {
|
||||||
|
bet.beteran.core.network.Client client = 1;
|
||||||
|
string username = 2;
|
||||||
|
}
|
||||||
|
|
||||||
|
message GetMemberByUsernameResponse {
|
||||||
|
message Result {
|
||||||
|
bet.beteran.member.Member member = 1;
|
||||||
|
}
|
||||||
|
optional bet.protobuf.rpc.Error error = 1;
|
||||||
|
optional Result result = 2;
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user