doc: 修复两个注释的小错误 (#68)
This commit is contained in:
parent
9e0d6c2cde
commit
697c71cf91
|
@ -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()))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue