From 8f8f8bd674d15b4f655e95a7bbb83b9833bb5d7d Mon Sep 17 00:00:00 2001 From: Idhibhat Pankam Date: Mon, 8 Jan 2024 08:56:22 +0700 Subject: [PATCH] feat: role const --- src/constant/user/user.constant.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/constant/user/user.constant.go b/src/constant/user/user.constant.go index 7d84a6a..cf1991e 100644 --- a/src/constant/user/user.constant.go +++ b/src/constant/user/user.constant.go @@ -3,3 +3,10 @@ package user const FindOneUserSuccessMessage = "find one user success" const UpdateUserSuccessMessage = "update user success" const DeleteUserSuccessMessage = "delete user success" + +type Role string + +const ( + USER Role = "user" + ADMIN Role = "admin" +)