feat: (rbac) user role mapping
This commit is contained in:
parent
abad11e3bf
commit
454319b8d4
|
@ -13,6 +13,6 @@ type User struct {
|
||||||
Tags []string `json:"tags" elastic_mapping:"tags:{type:text}"`
|
Tags []string `json:"tags" elastic_mapping:"tags:{type:text}"`
|
||||||
}
|
}
|
||||||
type UserRole struct {
|
type UserRole struct {
|
||||||
Id string `json:"id"`
|
Id string `json:"id" elastic_mapping:"id:{type:keyword}"`
|
||||||
Name string `json:"name"`
|
Name string `json:"name" elastic_mapping:"name:{type:keyword}" `
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue