func NewDefaultUserInfo(username, password string, groups []string) *UserInfo {
	return NewUserInfo(username, username, password, groups)
}
NewDefaultUserInfo is construction method
package rbac
import (
	"strings"
	"github.com/fanux/fist/tools"
)
type UserInfo struct {
	Username string   `json:"username"`
	Nickname string   `json:"nickname"`
	Password string   `json:"password,omitempty"`
	Groups   []string `json:"groups,omitempty"`
}
func NewUserInfo(username, nickname, password string, groups []string) *UserInfo {
	return &UserInfo{Username: username, Nickname: nickname, Password: password, Groups: groups}
}