feat:完善项目信息

This commit is contained in:
henry
2022-01-07 17:24:39 +08:00
parent 2bf3c01702
commit 119857bfdb
12 changed files with 295 additions and 175 deletions

View File

@ -132,6 +132,11 @@ func (this *Permission) AddUser(user string) {
this.user = user
}
// AddRequest 追加请求信息
func (this *Permission) AddRequest(requests []*AuthRequest) {
this.request = requests
}
// AddRoleForUser 增加用户角色
func (this *Permission) AddRoleForUser() (bool, error) {
if len(this.roles) <= 0 {