MarshalJSON implements the json.Marshaler interface.
()
| 91 | |
| 92 | // MarshalJSON implements the json.Marshaler interface. |
| 93 | func (r UserPermissionRole) MarshalJSON() ([]byte, error) { |
| 94 | return json.Marshal(r.String()) |
| 95 | } |
| 96 | |
| 97 | // String implements the fmt.Stringer interface. |
| 98 | func (r UserPermissionRole) String() string { |