From 454319b8d49eea23e2f0f370051678a203dfd9d1 Mon Sep 17 00:00:00 2001 From: xushuhui Date: Wed, 20 Apr 2022 17:54:09 +0800 Subject: [PATCH] feat: (rbac) user role mapping --- model/rbac/user.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/model/rbac/user.go b/model/rbac/user.go index d9ebcf32..266379a9 100644 --- a/model/rbac/user.go +++ b/model/rbac/user.go @@ -13,6 +13,6 @@ type User struct { Tags []string `json:"tags" elastic_mapping:"tags:{type:text}"` } type UserRole struct { - Id string `json:"id"` - Name string `json:"name"` + Id string `json:"id" elastic_mapping:"id:{type:keyword}"` + Name string `json:"name" elastic_mapping:"name:{type:keyword}" ` }