feat: (rbac) user role mapping

This commit is contained in:
xushuhui 2022-04-20 17:54:09 +08:00
parent abad11e3bf
commit 454319b8d4
1 changed files with 2 additions and 2 deletions

View File

@ -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}" `
}