Changes
4 changed files (+83/-0)
-
-
@@ -0,0 +1,20 @@// Copyright 2025 Shota FUJI // // This source code is licensed under Zero-Clause BSD License. // You can find a copy of the Zero-Clause BSD License at LICENSES/0BSD.txt // You may also obtain a copy of the Zero-Clause BSD License at // <https://opensource.org/license/0bsd> // // SPDX-License-Identifier: 0BSD edition = "2023"; package event; option go_package = "pocka.jp/x/event_sourcing_user_management_poc/gen/event"; message PasswordLoginConfigured { string user_id = 1; bytes password_hash = 2; bytes salt = 3; }
-
-
-
@@ -0,0 +1,22 @@// Copyright 2025 Shota FUJI // // This source code is licensed under Zero-Clause BSD License. // You can find a copy of the Zero-Clause BSD License at LICENSES/0BSD.txt // You may also obtain a copy of the Zero-Clause BSD License at // <https://opensource.org/license/0bsd> // // SPDX-License-Identifier: 0BSD edition = "2023"; package event; import "proto/model/role.proto"; option go_package = "pocka.jp/x/event_sourcing_user_management_poc/gen/event"; message RoleAssigned { string user_id = 1; model.Role role = 2; }
-
-
-
@@ -0,0 +1,20 @@// Copyright 2025 Shota FUJI // // This source code is licensed under Zero-Clause BSD License. // You can find a copy of the Zero-Clause BSD License at LICENSES/0BSD.txt // You may also obtain a copy of the Zero-Clause BSD License at // <https://opensource.org/license/0bsd> // // SPDX-License-Identifier: 0BSD edition = "2023"; package event; option go_package = "pocka.jp/x/event_sourcing_user_management_poc/gen/event"; message UserCreated { string id = 1; string display_name = 2; string email = 3; }
-
-
proto/model/role.proto (new)
-
@@ -0,0 +1,21 @@// Copyright 2025 Shota FUJI // // This source code is licensed under Zero-Clause BSD License. // You can find a copy of the Zero-Clause BSD License at LICENSES/0BSD.txt // You may also obtain a copy of the Zero-Clause BSD License at // <https://opensource.org/license/0bsd> // // SPDX-License-Identifier: 0BSD edition = "2023"; package model; option go_package = "pocka.jp/x/event_sourcing_user_management_poc/gen/model"; enum Role { ROLE_UNKNOWN = 0; ROLE_VIEWER = 1; ROLE_EDITOR = 2; ROLE_ADMIN = 3; }
-