mirror of
https://github.com/usememos/memos.git
synced 2025-06-05 22:09:59 +02:00
feat: add public flag instead of system setting to enable signup (#3589)
This commit is contained in:
@ -1,6 +1,6 @@
|
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// versions:
|
||||
// protoc-gen-go v1.34.1
|
||||
// protoc-gen-go v1.34.2
|
||||
// protoc (unknown)
|
||||
// source: api/v1/user_service.proto
|
||||
|
||||
@ -1397,7 +1397,7 @@ func file_api_v1_user_service_proto_rawDescGZIP() []byte {
|
||||
|
||||
var file_api_v1_user_service_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
|
||||
var file_api_v1_user_service_proto_msgTypes = make([]protoimpl.MessageInfo, 18)
|
||||
var file_api_v1_user_service_proto_goTypes = []interface{}{
|
||||
var file_api_v1_user_service_proto_goTypes = []any{
|
||||
(User_Role)(0), // 0: memos.api.v1.User.Role
|
||||
(*User)(nil), // 1: memos.api.v1.User
|
||||
(*ListUsersRequest)(nil), // 2: memos.api.v1.ListUsersRequest
|
||||
@ -1478,7 +1478,7 @@ func file_api_v1_user_service_proto_init() {
|
||||
}
|
||||
file_api_v1_common_proto_init()
|
||||
if !protoimpl.UnsafeEnabled {
|
||||
file_api_v1_user_service_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
||||
file_api_v1_user_service_proto_msgTypes[0].Exporter = func(v any, i int) any {
|
||||
switch v := v.(*User); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
@ -1490,7 +1490,7 @@ func file_api_v1_user_service_proto_init() {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_api_v1_user_service_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
|
||||
file_api_v1_user_service_proto_msgTypes[1].Exporter = func(v any, i int) any {
|
||||
switch v := v.(*ListUsersRequest); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
@ -1502,7 +1502,7 @@ func file_api_v1_user_service_proto_init() {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_api_v1_user_service_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
|
||||
file_api_v1_user_service_proto_msgTypes[2].Exporter = func(v any, i int) any {
|
||||
switch v := v.(*ListUsersResponse); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
@ -1514,7 +1514,7 @@ func file_api_v1_user_service_proto_init() {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_api_v1_user_service_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
|
||||
file_api_v1_user_service_proto_msgTypes[3].Exporter = func(v any, i int) any {
|
||||
switch v := v.(*SearchUsersRequest); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
@ -1526,7 +1526,7 @@ func file_api_v1_user_service_proto_init() {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_api_v1_user_service_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
|
||||
file_api_v1_user_service_proto_msgTypes[4].Exporter = func(v any, i int) any {
|
||||
switch v := v.(*SearchUsersResponse); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
@ -1538,7 +1538,7 @@ func file_api_v1_user_service_proto_init() {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_api_v1_user_service_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
|
||||
file_api_v1_user_service_proto_msgTypes[5].Exporter = func(v any, i int) any {
|
||||
switch v := v.(*GetUserRequest); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
@ -1550,7 +1550,7 @@ func file_api_v1_user_service_proto_init() {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_api_v1_user_service_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
|
||||
file_api_v1_user_service_proto_msgTypes[6].Exporter = func(v any, i int) any {
|
||||
switch v := v.(*GetUserAvatarBinaryRequest); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
@ -1562,7 +1562,7 @@ func file_api_v1_user_service_proto_init() {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_api_v1_user_service_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
|
||||
file_api_v1_user_service_proto_msgTypes[7].Exporter = func(v any, i int) any {
|
||||
switch v := v.(*CreateUserRequest); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
@ -1574,7 +1574,7 @@ func file_api_v1_user_service_proto_init() {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_api_v1_user_service_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {
|
||||
file_api_v1_user_service_proto_msgTypes[8].Exporter = func(v any, i int) any {
|
||||
switch v := v.(*UpdateUserRequest); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
@ -1586,7 +1586,7 @@ func file_api_v1_user_service_proto_init() {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_api_v1_user_service_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} {
|
||||
file_api_v1_user_service_proto_msgTypes[9].Exporter = func(v any, i int) any {
|
||||
switch v := v.(*DeleteUserRequest); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
@ -1598,7 +1598,7 @@ func file_api_v1_user_service_proto_init() {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_api_v1_user_service_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} {
|
||||
file_api_v1_user_service_proto_msgTypes[10].Exporter = func(v any, i int) any {
|
||||
switch v := v.(*UserSetting); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
@ -1610,7 +1610,7 @@ func file_api_v1_user_service_proto_init() {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_api_v1_user_service_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} {
|
||||
file_api_v1_user_service_proto_msgTypes[11].Exporter = func(v any, i int) any {
|
||||
switch v := v.(*GetUserSettingRequest); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
@ -1622,7 +1622,7 @@ func file_api_v1_user_service_proto_init() {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_api_v1_user_service_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} {
|
||||
file_api_v1_user_service_proto_msgTypes[12].Exporter = func(v any, i int) any {
|
||||
switch v := v.(*UpdateUserSettingRequest); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
@ -1634,7 +1634,7 @@ func file_api_v1_user_service_proto_init() {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_api_v1_user_service_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} {
|
||||
file_api_v1_user_service_proto_msgTypes[13].Exporter = func(v any, i int) any {
|
||||
switch v := v.(*UserAccessToken); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
@ -1646,7 +1646,7 @@ func file_api_v1_user_service_proto_init() {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_api_v1_user_service_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} {
|
||||
file_api_v1_user_service_proto_msgTypes[14].Exporter = func(v any, i int) any {
|
||||
switch v := v.(*ListUserAccessTokensRequest); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
@ -1658,7 +1658,7 @@ func file_api_v1_user_service_proto_init() {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_api_v1_user_service_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} {
|
||||
file_api_v1_user_service_proto_msgTypes[15].Exporter = func(v any, i int) any {
|
||||
switch v := v.(*ListUserAccessTokensResponse); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
@ -1670,7 +1670,7 @@ func file_api_v1_user_service_proto_init() {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_api_v1_user_service_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} {
|
||||
file_api_v1_user_service_proto_msgTypes[16].Exporter = func(v any, i int) any {
|
||||
switch v := v.(*CreateUserAccessTokenRequest); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
@ -1682,7 +1682,7 @@ func file_api_v1_user_service_proto_init() {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_api_v1_user_service_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} {
|
||||
file_api_v1_user_service_proto_msgTypes[17].Exporter = func(v any, i int) any {
|
||||
switch v := v.(*DeleteUserAccessTokenRequest); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
@ -1695,7 +1695,7 @@ func file_api_v1_user_service_proto_init() {
|
||||
}
|
||||
}
|
||||
}
|
||||
file_api_v1_user_service_proto_msgTypes[16].OneofWrappers = []interface{}{}
|
||||
file_api_v1_user_service_proto_msgTypes[16].OneofWrappers = []any{}
|
||||
type x struct{}
|
||||
out := protoimpl.TypeBuilder{
|
||||
File: protoimpl.DescBuilder{
|
||||
|
Reference in New Issue
Block a user