doc: 修复两个注释的小错误 (#68)

This commit is contained in:
二丫讲梵 2022-07-12 11:17:23 +08:00 committed by GitHub
parent 9e0d6c2cde
commit 697c71cf91
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -47,7 +47,7 @@ func (d *DingTalkLogic) SyncDingTalkDepts(c *gin.Context, req interface{}) (data
for _, dept := range otherDepts { for _, dept := range otherDepts {
err := d.AddDepts(dept) err := d.AddDepts(dept)
if err != nil { if err != nil {
return nil, tools.NewOperationError(fmt.Errorf("DsyncDingTalkDepts添加部门失败:%s", err.Error())) return nil, tools.NewOperationError(fmt.Errorf("DsyncDingTalkDepts添加其他部门失败:%s", err.Error()))
} }
} }

View File

@ -52,7 +52,7 @@ func (d *WeComLogic) SyncWeComDepts(c *gin.Context, req interface{}) (data inter
for _, dept := range otherDepts { for _, dept := range otherDepts {
err := d.AddDepts(dept) err := d.AddDepts(dept)
if err != nil { if err != nil {
return nil, tools.NewOperationError(fmt.Errorf("SyncWeComDepts添加部门失败:%s", err.Error())) return nil, tools.NewOperationError(fmt.Errorf("SyncWeComDepts添加其他部门失败:%s", err.Error()))
} }
} }
return nil, nil return nil, nil