update: event SlugChangeEvent now require user field
This commit is contained in:
@@ -324,8 +324,9 @@ func (x *Authentication) GetIdentity() string {
|
|||||||
|
|
||||||
type SlugChangeEvent struct {
|
type SlugChangeEvent struct {
|
||||||
state protoimpl.MessageState `protogen:"open.v1"`
|
state protoimpl.MessageState `protogen:"open.v1"`
|
||||||
Old string `protobuf:"bytes,1,opt,name=old,proto3" json:"old,omitempty"`
|
User string `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"`
|
||||||
New string `protobuf:"bytes,2,opt,name=new,proto3" json:"new,omitempty"`
|
Old string `protobuf:"bytes,2,opt,name=old,proto3" json:"old,omitempty"`
|
||||||
|
New string `protobuf:"bytes,3,opt,name=new,proto3" json:"new,omitempty"`
|
||||||
unknownFields protoimpl.UnknownFields
|
unknownFields protoimpl.UnknownFields
|
||||||
sizeCache protoimpl.SizeCache
|
sizeCache protoimpl.SizeCache
|
||||||
}
|
}
|
||||||
@@ -360,6 +361,13 @@ func (*SlugChangeEvent) Descriptor() ([]byte, []int) {
|
|||||||
return file_events_proto_rawDescGZIP(), []int{3}
|
return file_events_proto_rawDescGZIP(), []int{3}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (x *SlugChangeEvent) GetUser() string {
|
||||||
|
if x != nil {
|
||||||
|
return x.User
|
||||||
|
}
|
||||||
|
return ""
|
||||||
|
}
|
||||||
|
|
||||||
func (x *SlugChangeEvent) GetOld() string {
|
func (x *SlugChangeEvent) GetOld() string {
|
||||||
if x != nil {
|
if x != nil {
|
||||||
return x.Old
|
return x.Old
|
||||||
@@ -620,10 +628,11 @@ const file_events_proto_rawDesc = "" +
|
|||||||
"\x0eAuthentication\x12\x1d\n" +
|
"\x0eAuthentication\x12\x1d\n" +
|
||||||
"\n" +
|
"\n" +
|
||||||
"auth_token\x18\x01 \x01(\tR\tauthToken\x12\x1a\n" +
|
"auth_token\x18\x01 \x01(\tR\tauthToken\x12\x1a\n" +
|
||||||
"\bidentity\x18\x02 \x01(\tR\bidentity\"5\n" +
|
"\bidentity\x18\x02 \x01(\tR\bidentity\"I\n" +
|
||||||
"\x0fSlugChangeEvent\x12\x10\n" +
|
"\x0fSlugChangeEvent\x12\x12\n" +
|
||||||
"\x03old\x18\x01 \x01(\tR\x03old\x12\x10\n" +
|
"\x04user\x18\x01 \x01(\tR\x04user\x12\x10\n" +
|
||||||
"\x03new\x18\x02 \x01(\tR\x03new\"M\n" +
|
"\x03old\x18\x02 \x01(\tR\x03old\x12\x10\n" +
|
||||||
|
"\x03new\x18\x03 \x01(\tR\x03new\"M\n" +
|
||||||
"\x17SlugChangeEventResponse\x12\x18\n" +
|
"\x17SlugChangeEventResponse\x12\x18\n" +
|
||||||
"\asuccess\x18\x01 \x01(\bR\asuccess\x12\x18\n" +
|
"\asuccess\x18\x01 \x01(\bR\asuccess\x12\x18\n" +
|
||||||
"\amessage\x18\x02 \x01(\tR\amessage\".\n" +
|
"\amessage\x18\x02 \x01(\tR\amessage\".\n" +
|
||||||
|
|||||||
@@ -42,8 +42,9 @@ message Authentication {
|
|||||||
}
|
}
|
||||||
|
|
||||||
message SlugChangeEvent {
|
message SlugChangeEvent {
|
||||||
string old = 1;
|
string user = 1;
|
||||||
string new = 2;
|
string old = 2;
|
||||||
|
string new = 3;
|
||||||
}
|
}
|
||||||
|
|
||||||
message SlugChangeEventResponse {
|
message SlugChangeEventResponse {
|
||||||
|
|||||||
Reference in New Issue
Block a user