|
|
@ -58,8 +58,12 @@ func UpdateGroupInfoMap(ctx context.Context, group *sdkws.GroupInfoForSet) map[s
|
|
|
|
func UpdateGroupInfoExMap(ctx context.Context, group *pbgroup.SetGroupInfoExReq) (map[string]any, error) {
|
|
|
|
func UpdateGroupInfoExMap(ctx context.Context, group *pbgroup.SetGroupInfoExReq) (map[string]any, error) {
|
|
|
|
m := make(map[string]any)
|
|
|
|
m := make(map[string]any)
|
|
|
|
|
|
|
|
|
|
|
|
if group.GroupName != nil && group.GroupName.Value != "" {
|
|
|
|
if group.GroupName != nil {
|
|
|
|
return nil, errs.ErrArgs.WrapMsg("group name is empty")
|
|
|
|
if group.GroupName.Value != "" {
|
|
|
|
|
|
|
|
m["group_name"] = group.GroupName.Value
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
return nil, errs.ErrArgs.WrapMsg("group name is empty")
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if group.Notification != nil {
|
|
|
|
if group.Notification != nil {
|
|
|
|
m["notification"] = group.Notification.Value
|
|
|
|
m["notification"] = group.Notification.Value
|
|
|
|