更新
This commit is contained in:
1 parent
5718a00e31
commit
1850ac640e
226 files changed
+37772
-12071
No files matched your search
@@ -7,6 +7,7 @@ import (
|
||||
"server/models"
|
||||
|
||||
"github.com/beego/beego/v2/client/orm"
|
||||
"server/pkg/identity"
|
||||
)
|
||||
|
||||
// 移动端通讯录(企业内部通讯录)只读接口。
|
||||
@@ -62,7 +63,8 @@ func appContactOrgNames(ids []uint64) map[uint64]string {
|
||||
func (c *AppOaController) ContactList() {
|
||||
claims, err := c.oaClaims()
|
||||
if err != nil {
|
||||
c.oaErr(401, 401, "未登录或无权限")
|
||||
code := identity.Status(err)
|
||||
c.oaErr(code, code, err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
@@ -133,7 +135,8 @@ func (c *AppOaController) ContactList() {
|
||||
func (c *AppOaController) ContactOrgTree() {
|
||||
claims, err := c.oaClaims()
|
||||
if err != nil {
|
||||
c.oaErr(401, 401, "未登录或无权限")
|
||||
code := identity.Status(err)
|
||||
c.oaErr(code, code, err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
@@ -172,7 +175,8 @@ func (c *AppOaController) ContactOrgTree() {
|
||||
func (c *AppOaController) ContactDetail() {
|
||||
claims, err := c.oaClaims()
|
||||
if err != nil {
|
||||
c.oaErr(401, 401, "未登录或无权限")
|
||||
code := identity.Status(err)
|
||||
c.oaErr(code, code, err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user