|
|
@ -58,9 +58,13 @@ 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 {
|
|
|
|
|
|
|
|
if group.GroupName.Value != "" {
|
|
|
|
|
|
|
|
m["group_name"] = group.GroupName.Value
|
|
|
|
|
|
|
|
} else {
|
|
|
|
return nil, errs.ErrArgs.WrapMsg("group name is empty")
|
|
|
|
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
|
|
|
|
m["notification_update_time"] = time.Now()
|
|
|
|
m["notification_update_time"] = time.Now()
|
|
|
|