Merge branch 'develop' of git.ailuowan.com:zzw/lone-services into develop
This commit is contained in:
@@ -165,7 +165,7 @@ func (l *AuthorityEditLogic) getData(adminInfo utils.UserInfo, in *admin.Authori
|
||||
return edit, utils.SetError(utils.ErrorMissingParams, "权限名称已存在")
|
||||
}
|
||||
|
||||
check = l.check(edit.Id, map[string]string{
|
||||
check = l.check(in.Id, map[string]string{
|
||||
"service_id": strconv.FormatInt(edit.ServiceId, utils.NumberTen),
|
||||
"identification": edit.Identification,
|
||||
})
|
||||
@@ -261,7 +261,7 @@ func (l *AuthorityEditLogic) getSort(pid, serviceId int64) uint8 {
|
||||
w := modelbase.Params{
|
||||
Eq: map[string]string{
|
||||
"parent_id": strconv.FormatInt(pid, utils.NumberTen),
|
||||
"project_id": strconv.FormatInt(serviceId, utils.NumberTen)},
|
||||
"service_id": strconv.FormatInt(serviceId, utils.NumberTen)},
|
||||
Order: "sort DESC",
|
||||
}
|
||||
info := dao.Authority{}
|
||||
|
||||
Reference in New Issue
Block a user