周睿 vor 1 Jahr
Ursprung
Commit
e383f1ad97

+ 316 - 0
app_business/lib/generated/track_offical.pb.dart

@@ -18,6 +18,322 @@ import 'base.pb.dart' as $0;
 import 'base.pbenum.dart' as $0;
 import 'google/protobuf/timestamp.pb.dart' as $2;
 
+class ToActivityRulesSaveRequest extends $pb.GeneratedMessage {
+  factory ToActivityRulesSaveRequest({
+    $core.Iterable<ToActivityRulesSaveInfo>? list,
+  }) {
+    final $result = create();
+    if (list != null) {
+      $result.list.addAll(list);
+    }
+    return $result;
+  }
+  ToActivityRulesSaveRequest._() : super();
+  factory ToActivityRulesSaveRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r);
+  factory ToActivityRulesSaveRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r);
+
+  static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'ToActivityRulesSaveRequest', package: const $pb.PackageName(_omitMessageNames ? '' : 'to.v1'), createEmptyInstance: create)
+    ..pc<ToActivityRulesSaveInfo>(2, _omitFieldNames ? '' : 'list', $pb.PbFieldType.PM, subBuilder: ToActivityRulesSaveInfo.create)
+    ..hasRequiredFields = false
+  ;
+
+  @$core.Deprecated(
+  'Using this can add significant overhead to your binary. '
+  'Use [GeneratedMessageGenericExtensions.deepCopy] instead. '
+  'Will be removed in next major version')
+  ToActivityRulesSaveRequest clone() => ToActivityRulesSaveRequest()..mergeFromMessage(this);
+  @$core.Deprecated(
+  'Using this can add significant overhead to your binary. '
+  'Use [GeneratedMessageGenericExtensions.rebuild] instead. '
+  'Will be removed in next major version')
+  ToActivityRulesSaveRequest copyWith(void Function(ToActivityRulesSaveRequest) updates) => super.copyWith((message) => updates(message as ToActivityRulesSaveRequest)) as ToActivityRulesSaveRequest;
+
+  $pb.BuilderInfo get info_ => _i;
+
+  @$core.pragma('dart2js:noInline')
+  static ToActivityRulesSaveRequest create() => ToActivityRulesSaveRequest._();
+  ToActivityRulesSaveRequest createEmptyInstance() => create();
+  static $pb.PbList<ToActivityRulesSaveRequest> createRepeated() => $pb.PbList<ToActivityRulesSaveRequest>();
+  @$core.pragma('dart2js:noInline')
+  static ToActivityRulesSaveRequest getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<ToActivityRulesSaveRequest>(create);
+  static ToActivityRulesSaveRequest? _defaultInstance;
+
+  @$pb.TagNumber(2)
+  $core.List<ToActivityRulesSaveInfo> get list => $_getList(0);
+}
+
+class ToActivityRulesSaveInfo extends $pb.GeneratedMessage {
+  factory ToActivityRulesSaveInfo({
+    $core.int? arrId,
+    $core.String? arValue,
+  }) {
+    final $result = create();
+    if (arrId != null) {
+      $result.arrId = arrId;
+    }
+    if (arValue != null) {
+      $result.arValue = arValue;
+    }
+    return $result;
+  }
+  ToActivityRulesSaveInfo._() : super();
+  factory ToActivityRulesSaveInfo.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r);
+  factory ToActivityRulesSaveInfo.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r);
+
+  static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'ToActivityRulesSaveInfo', package: const $pb.PackageName(_omitMessageNames ? '' : 'to.v1'), createEmptyInstance: create)
+    ..a<$core.int>(1, _omitFieldNames ? '' : 'arrId', $pb.PbFieldType.O3, protoName: 'arrId')
+    ..aOS(2, _omitFieldNames ? '' : 'arValue', protoName: 'arValue')
+    ..hasRequiredFields = false
+  ;
+
+  @$core.Deprecated(
+  'Using this can add significant overhead to your binary. '
+  'Use [GeneratedMessageGenericExtensions.deepCopy] instead. '
+  'Will be removed in next major version')
+  ToActivityRulesSaveInfo clone() => ToActivityRulesSaveInfo()..mergeFromMessage(this);
+  @$core.Deprecated(
+  'Using this can add significant overhead to your binary. '
+  'Use [GeneratedMessageGenericExtensions.rebuild] instead. '
+  'Will be removed in next major version')
+  ToActivityRulesSaveInfo copyWith(void Function(ToActivityRulesSaveInfo) updates) => super.copyWith((message) => updates(message as ToActivityRulesSaveInfo)) as ToActivityRulesSaveInfo;
+
+  $pb.BuilderInfo get info_ => _i;
+
+  @$core.pragma('dart2js:noInline')
+  static ToActivityRulesSaveInfo create() => ToActivityRulesSaveInfo._();
+  ToActivityRulesSaveInfo createEmptyInstance() => create();
+  static $pb.PbList<ToActivityRulesSaveInfo> createRepeated() => $pb.PbList<ToActivityRulesSaveInfo>();
+  @$core.pragma('dart2js:noInline')
+  static ToActivityRulesSaveInfo getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<ToActivityRulesSaveInfo>(create);
+  static ToActivityRulesSaveInfo? _defaultInstance;
+
+  @$pb.TagNumber(1)
+  $core.int get arrId => $_getIZ(0);
+  @$pb.TagNumber(1)
+  set arrId($core.int v) { $_setSignedInt32(0, v); }
+  @$pb.TagNumber(1)
+  $core.bool hasArrId() => $_has(0);
+  @$pb.TagNumber(1)
+  void clearArrId() => clearField(1);
+
+  @$pb.TagNumber(2)
+  $core.String get arValue => $_getSZ(1);
+  @$pb.TagNumber(2)
+  set arValue($core.String v) { $_setString(1, v); }
+  @$pb.TagNumber(2)
+  $core.bool hasArValue() => $_has(1);
+  @$pb.TagNumber(2)
+  void clearArValue() => clearField(2);
+}
+
+class ToActivityRulesQueryReply extends $pb.GeneratedMessage {
+  factory ToActivityRulesQueryReply({
+    $core.Iterable<ToActivityRulesInfo>? list,
+  }) {
+    final $result = create();
+    if (list != null) {
+      $result.list.addAll(list);
+    }
+    return $result;
+  }
+  ToActivityRulesQueryReply._() : super();
+  factory ToActivityRulesQueryReply.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r);
+  factory ToActivityRulesQueryReply.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r);
+
+  static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'ToActivityRulesQueryReply', package: const $pb.PackageName(_omitMessageNames ? '' : 'to.v1'), createEmptyInstance: create)
+    ..pc<ToActivityRulesInfo>(1, _omitFieldNames ? '' : 'list', $pb.PbFieldType.PM, subBuilder: ToActivityRulesInfo.create)
+    ..hasRequiredFields = false
+  ;
+
+  @$core.Deprecated(
+  'Using this can add significant overhead to your binary. '
+  'Use [GeneratedMessageGenericExtensions.deepCopy] instead. '
+  'Will be removed in next major version')
+  ToActivityRulesQueryReply clone() => ToActivityRulesQueryReply()..mergeFromMessage(this);
+  @$core.Deprecated(
+  'Using this can add significant overhead to your binary. '
+  'Use [GeneratedMessageGenericExtensions.rebuild] instead. '
+  'Will be removed in next major version')
+  ToActivityRulesQueryReply copyWith(void Function(ToActivityRulesQueryReply) updates) => super.copyWith((message) => updates(message as ToActivityRulesQueryReply)) as ToActivityRulesQueryReply;
+
+  $pb.BuilderInfo get info_ => _i;
+
+  @$core.pragma('dart2js:noInline')
+  static ToActivityRulesQueryReply create() => ToActivityRulesQueryReply._();
+  ToActivityRulesQueryReply createEmptyInstance() => create();
+  static $pb.PbList<ToActivityRulesQueryReply> createRepeated() => $pb.PbList<ToActivityRulesQueryReply>();
+  @$core.pragma('dart2js:noInline')
+  static ToActivityRulesQueryReply getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<ToActivityRulesQueryReply>(create);
+  static ToActivityRulesQueryReply? _defaultInstance;
+
+  @$pb.TagNumber(1)
+  $core.List<ToActivityRulesInfo> get list => $_getList(0);
+}
+
+class ToActivityRulesInfo extends $pb.GeneratedMessage {
+  factory ToActivityRulesInfo({
+    $core.int? arrId,
+    $core.String? arName,
+    $core.bool? isLock,
+    $core.int? arType,
+    $core.Iterable<ToActivityRulesSelect>? arValueSelectList,
+    $core.String? arValue,
+  }) {
+    final $result = create();
+    if (arrId != null) {
+      $result.arrId = arrId;
+    }
+    if (arName != null) {
+      $result.arName = arName;
+    }
+    if (isLock != null) {
+      $result.isLock = isLock;
+    }
+    if (arType != null) {
+      $result.arType = arType;
+    }
+    if (arValueSelectList != null) {
+      $result.arValueSelectList.addAll(arValueSelectList);
+    }
+    if (arValue != null) {
+      $result.arValue = arValue;
+    }
+    return $result;
+  }
+  ToActivityRulesInfo._() : super();
+  factory ToActivityRulesInfo.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r);
+  factory ToActivityRulesInfo.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r);
+
+  static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'ToActivityRulesInfo', package: const $pb.PackageName(_omitMessageNames ? '' : 'to.v1'), createEmptyInstance: create)
+    ..a<$core.int>(1, _omitFieldNames ? '' : 'arrId', $pb.PbFieldType.O3, protoName: 'arrId')
+    ..aOS(2, _omitFieldNames ? '' : 'arName', protoName: 'arName')
+    ..aOB(3, _omitFieldNames ? '' : 'isLock', protoName: 'isLock')
+    ..a<$core.int>(4, _omitFieldNames ? '' : 'arType', $pb.PbFieldType.O3, protoName: 'arType')
+    ..pc<ToActivityRulesSelect>(5, _omitFieldNames ? '' : 'arValueSelectList', $pb.PbFieldType.PM, protoName: 'arValueSelectList', subBuilder: ToActivityRulesSelect.create)
+    ..aOS(6, _omitFieldNames ? '' : 'arValue', protoName: 'arValue')
+    ..hasRequiredFields = false
+  ;
+
+  @$core.Deprecated(
+  'Using this can add significant overhead to your binary. '
+  'Use [GeneratedMessageGenericExtensions.deepCopy] instead. '
+  'Will be removed in next major version')
+  ToActivityRulesInfo clone() => ToActivityRulesInfo()..mergeFromMessage(this);
+  @$core.Deprecated(
+  'Using this can add significant overhead to your binary. '
+  'Use [GeneratedMessageGenericExtensions.rebuild] instead. '
+  'Will be removed in next major version')
+  ToActivityRulesInfo copyWith(void Function(ToActivityRulesInfo) updates) => super.copyWith((message) => updates(message as ToActivityRulesInfo)) as ToActivityRulesInfo;
+
+  $pb.BuilderInfo get info_ => _i;
+
+  @$core.pragma('dart2js:noInline')
+  static ToActivityRulesInfo create() => ToActivityRulesInfo._();
+  ToActivityRulesInfo createEmptyInstance() => create();
+  static $pb.PbList<ToActivityRulesInfo> createRepeated() => $pb.PbList<ToActivityRulesInfo>();
+  @$core.pragma('dart2js:noInline')
+  static ToActivityRulesInfo getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<ToActivityRulesInfo>(create);
+  static ToActivityRulesInfo? _defaultInstance;
+
+  @$pb.TagNumber(1)
+  $core.int get arrId => $_getIZ(0);
+  @$pb.TagNumber(1)
+  set arrId($core.int v) { $_setSignedInt32(0, v); }
+  @$pb.TagNumber(1)
+  $core.bool hasArrId() => $_has(0);
+  @$pb.TagNumber(1)
+  void clearArrId() => clearField(1);
+
+  @$pb.TagNumber(2)
+  $core.String get arName => $_getSZ(1);
+  @$pb.TagNumber(2)
+  set arName($core.String v) { $_setString(1, v); }
+  @$pb.TagNumber(2)
+  $core.bool hasArName() => $_has(1);
+  @$pb.TagNumber(2)
+  void clearArName() => clearField(2);
+
+  @$pb.TagNumber(3)
+  $core.bool get isLock => $_getBF(2);
+  @$pb.TagNumber(3)
+  set isLock($core.bool v) { $_setBool(2, v); }
+  @$pb.TagNumber(3)
+  $core.bool hasIsLock() => $_has(2);
+  @$pb.TagNumber(3)
+  void clearIsLock() => clearField(3);
+
+  @$pb.TagNumber(4)
+  $core.int get arType => $_getIZ(3);
+  @$pb.TagNumber(4)
+  set arType($core.int v) { $_setSignedInt32(3, v); }
+  @$pb.TagNumber(4)
+  $core.bool hasArType() => $_has(3);
+  @$pb.TagNumber(4)
+  void clearArType() => clearField(4);
+
+  @$pb.TagNumber(5)
+  $core.List<ToActivityRulesSelect> get arValueSelectList => $_getList(4);
+
+  @$pb.TagNumber(6)
+  $core.String get arValue => $_getSZ(5);
+  @$pb.TagNumber(6)
+  set arValue($core.String v) { $_setString(5, v); }
+  @$pb.TagNumber(6)
+  $core.bool hasArValue() => $_has(5);
+  @$pb.TagNumber(6)
+  void clearArValue() => clearField(6);
+}
+
+class ToActivityRulesSelect extends $pb.GeneratedMessage {
+  factory ToActivityRulesSelect({
+    $core.String? arValueSelect,
+  }) {
+    final $result = create();
+    if (arValueSelect != null) {
+      $result.arValueSelect = arValueSelect;
+    }
+    return $result;
+  }
+  ToActivityRulesSelect._() : super();
+  factory ToActivityRulesSelect.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r);
+  factory ToActivityRulesSelect.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r);
+
+  static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'ToActivityRulesSelect', package: const $pb.PackageName(_omitMessageNames ? '' : 'to.v1'), createEmptyInstance: create)
+    ..aOS(1, _omitFieldNames ? '' : 'arValueSelect', protoName: 'arValueSelect')
+    ..hasRequiredFields = false
+  ;
+
+  @$core.Deprecated(
+  'Using this can add significant overhead to your binary. '
+  'Use [GeneratedMessageGenericExtensions.deepCopy] instead. '
+  'Will be removed in next major version')
+  ToActivityRulesSelect clone() => ToActivityRulesSelect()..mergeFromMessage(this);
+  @$core.Deprecated(
+  'Using this can add significant overhead to your binary. '
+  'Use [GeneratedMessageGenericExtensions.rebuild] instead. '
+  'Will be removed in next major version')
+  ToActivityRulesSelect copyWith(void Function(ToActivityRulesSelect) updates) => super.copyWith((message) => updates(message as ToActivityRulesSelect)) as ToActivityRulesSelect;
+
+  $pb.BuilderInfo get info_ => _i;
+
+  @$core.pragma('dart2js:noInline')
+  static ToActivityRulesSelect create() => ToActivityRulesSelect._();
+  ToActivityRulesSelect createEmptyInstance() => create();
+  static $pb.PbList<ToActivityRulesSelect> createRepeated() => $pb.PbList<ToActivityRulesSelect>();
+  @$core.pragma('dart2js:noInline')
+  static ToActivityRulesSelect getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<ToActivityRulesSelect>(create);
+  static ToActivityRulesSelect? _defaultInstance;
+
+  @$pb.TagNumber(1)
+  $core.String get arValueSelect => $_getSZ(0);
+  @$pb.TagNumber(1)
+  set arValueSelect($core.String v) { $_setString(0, v); }
+  @$pb.TagNumber(1)
+  $core.bool hasArValueSelect() => $_has(0);
+  @$pb.TagNumber(1)
+  void clearArValueSelect() => clearField(1);
+}
+
 class ToCooperationQueryReply extends $pb.GeneratedMessage {
   factory ToCooperationQueryReply({
     $core.String? name,

+ 40 - 0
app_business/lib/generated/track_offical.pbgrpc.dart

@@ -146,6 +146,14 @@ class ApiToClient extends $grpc.Client {
       '/to.v1.ApiTo/ToCooperationQuery',
       ($0.DefaultRequest value) => value.writeToBuffer(),
       ($core.List<$core.int> value) => $1.ToCooperationQueryReply.fromBuffer(value));
+  static final _$toActivityRulesQuery = $grpc.ClientMethod<$0.IdRequest, $1.ToActivityRulesQueryReply>(
+      '/to.v1.ApiTo/ToActivityRulesQuery',
+      ($0.IdRequest value) => value.writeToBuffer(),
+      ($core.List<$core.int> value) => $1.ToActivityRulesQueryReply.fromBuffer(value));
+  static final _$toActivityRulesSave = $grpc.ClientMethod<$1.ToActivityRulesSaveRequest, $0.DefaultReply>(
+      '/to.v1.ApiTo/ToActivityRulesSave',
+      ($1.ToActivityRulesSaveRequest value) => value.writeToBuffer(),
+      ($core.List<$core.int> value) => $0.DefaultReply.fromBuffer(value));
 
   ApiToClient($grpc.ClientChannel channel,
       {$grpc.CallOptions? options,
@@ -276,6 +284,14 @@ class ApiToClient extends $grpc.Client {
   $grpc.ResponseFuture<$1.ToCooperationQueryReply> toCooperationQuery($0.DefaultRequest request, {$grpc.CallOptions? options}) {
     return $createUnaryCall(_$toCooperationQuery, request, options: options);
   }
+
+  $grpc.ResponseFuture<$1.ToActivityRulesQueryReply> toActivityRulesQuery($0.IdRequest request, {$grpc.CallOptions? options}) {
+    return $createUnaryCall(_$toActivityRulesQuery, request, options: options);
+  }
+
+  $grpc.ResponseFuture<$0.DefaultReply> toActivityRulesSave($1.ToActivityRulesSaveRequest request, {$grpc.CallOptions? options}) {
+    return $createUnaryCall(_$toActivityRulesSave, request, options: options);
+  }
 }
 
 @$pb.GrpcServiceName('to.v1.ApiTo')
@@ -500,6 +516,20 @@ abstract class ApiToServiceBase extends $grpc.Service {
         false,
         ($core.List<$core.int> value) => $0.DefaultRequest.fromBuffer(value),
         ($1.ToCooperationQueryReply value) => value.writeToBuffer()));
+    $addMethod($grpc.ServiceMethod<$0.IdRequest, $1.ToActivityRulesQueryReply>(
+        'ToActivityRulesQuery',
+        toActivityRulesQuery_Pre,
+        false,
+        false,
+        ($core.List<$core.int> value) => $0.IdRequest.fromBuffer(value),
+        ($1.ToActivityRulesQueryReply value) => value.writeToBuffer()));
+    $addMethod($grpc.ServiceMethod<$1.ToActivityRulesSaveRequest, $0.DefaultReply>(
+        'ToActivityRulesSave',
+        toActivityRulesSave_Pre,
+        false,
+        false,
+        ($core.List<$core.int> value) => $1.ToActivityRulesSaveRequest.fromBuffer(value),
+        ($0.DefaultReply value) => value.writeToBuffer()));
   }
 
   $async.Future<$0.DefaultReply> toSendCodeToPhoneV2_Pre($grpc.ServiceCall call, $async.Future<$0.ToSendCodeToPhoneRequestV2> request) async {
@@ -626,6 +656,14 @@ abstract class ApiToServiceBase extends $grpc.Service {
     return toCooperationQuery(call, await request);
   }
 
+  $async.Future<$1.ToActivityRulesQueryReply> toActivityRulesQuery_Pre($grpc.ServiceCall call, $async.Future<$0.IdRequest> request) async {
+    return toActivityRulesQuery(call, await request);
+  }
+
+  $async.Future<$0.DefaultReply> toActivityRulesSave_Pre($grpc.ServiceCall call, $async.Future<$1.ToActivityRulesSaveRequest> request) async {
+    return toActivityRulesSave(call, await request);
+  }
+
   $async.Future<$0.DefaultReply> toSendCodeToPhoneV2($grpc.ServiceCall call, $0.ToSendCodeToPhoneRequestV2 request);
   $async.Future<$0.GetSmsSendLeftTimeReply> toGetSmsSendLeftTimeV2($grpc.ServiceCall call, $0.GetSmsSendLeftTimeRequest request);
   $async.Future<$0.SignInReply> toSignInV2($grpc.ServiceCall call, $0.ToSignInRequestV2 request);
@@ -657,4 +695,6 @@ abstract class ApiToServiceBase extends $grpc.Service {
   $async.Future<$0.DefaultReply> allMatchChackInsForceResume($grpc.ServiceCall call, $0.IdArrRequest request);
   $async.Future<$0.DefaultReply> allMatchChackInsDel($grpc.ServiceCall call, $0.IdArrRequest request);
   $async.Future<$1.ToCooperationQueryReply> toCooperationQuery($grpc.ServiceCall call, $0.DefaultRequest request);
+  $async.Future<$1.ToActivityRulesQueryReply> toActivityRulesQuery($grpc.ServiceCall call, $0.IdRequest request);
+  $async.Future<$0.DefaultReply> toActivityRulesSave($grpc.ServiceCall call, $1.ToActivityRulesSaveRequest request);
 }

+ 73 - 0
app_business/lib/generated/track_offical.pbjson.dart

@@ -13,6 +13,79 @@ import 'dart:convert' as $convert;
 import 'dart:core' as $core;
 import 'dart:typed_data' as $typed_data;
 
+@$core.Deprecated('Use toActivityRulesSaveRequestDescriptor instead')
+const ToActivityRulesSaveRequest$json = {
+  '1': 'ToActivityRulesSaveRequest',
+  '2': [
+    {'1': 'list', '3': 2, '4': 3, '5': 11, '6': '.to.v1.ToActivityRulesSaveInfo', '10': 'list'},
+  ],
+};
+
+/// Descriptor for `ToActivityRulesSaveRequest`. Decode as a `google.protobuf.DescriptorProto`.
+final $typed_data.Uint8List toActivityRulesSaveRequestDescriptor = $convert.base64Decode(
+    'ChpUb0FjdGl2aXR5UnVsZXNTYXZlUmVxdWVzdBIyCgRsaXN0GAIgAygLMh4udG8udjEuVG9BY3'
+    'Rpdml0eVJ1bGVzU2F2ZUluZm9SBGxpc3Q=');
+
+@$core.Deprecated('Use toActivityRulesSaveInfoDescriptor instead')
+const ToActivityRulesSaveInfo$json = {
+  '1': 'ToActivityRulesSaveInfo',
+  '2': [
+    {'1': 'arrId', '3': 1, '4': 1, '5': 5, '10': 'arrId'},
+    {'1': 'arValue', '3': 2, '4': 1, '5': 9, '10': 'arValue'},
+  ],
+};
+
+/// Descriptor for `ToActivityRulesSaveInfo`. Decode as a `google.protobuf.DescriptorProto`.
+final $typed_data.Uint8List toActivityRulesSaveInfoDescriptor = $convert.base64Decode(
+    'ChdUb0FjdGl2aXR5UnVsZXNTYXZlSW5mbxIUCgVhcnJJZBgBIAEoBVIFYXJySWQSGAoHYXJWYW'
+    'x1ZRgCIAEoCVIHYXJWYWx1ZQ==');
+
+@$core.Deprecated('Use toActivityRulesQueryReplyDescriptor instead')
+const ToActivityRulesQueryReply$json = {
+  '1': 'ToActivityRulesQueryReply',
+  '2': [
+    {'1': 'list', '3': 1, '4': 3, '5': 11, '6': '.to.v1.ToActivityRulesInfo', '10': 'list'},
+  ],
+};
+
+/// Descriptor for `ToActivityRulesQueryReply`. Decode as a `google.protobuf.DescriptorProto`.
+final $typed_data.Uint8List toActivityRulesQueryReplyDescriptor = $convert.base64Decode(
+    'ChlUb0FjdGl2aXR5UnVsZXNRdWVyeVJlcGx5Ei4KBGxpc3QYASADKAsyGi50by52MS5Ub0FjdG'
+    'l2aXR5UnVsZXNJbmZvUgRsaXN0');
+
+@$core.Deprecated('Use toActivityRulesInfoDescriptor instead')
+const ToActivityRulesInfo$json = {
+  '1': 'ToActivityRulesInfo',
+  '2': [
+    {'1': 'arrId', '3': 1, '4': 1, '5': 5, '10': 'arrId'},
+    {'1': 'arName', '3': 2, '4': 1, '5': 9, '10': 'arName'},
+    {'1': 'isLock', '3': 3, '4': 1, '5': 8, '10': 'isLock'},
+    {'1': 'arType', '3': 4, '4': 1, '5': 5, '10': 'arType'},
+    {'1': 'arValueSelectList', '3': 5, '4': 3, '5': 11, '6': '.to.v1.ToActivityRulesSelect', '10': 'arValueSelectList'},
+    {'1': 'arValue', '3': 6, '4': 1, '5': 9, '10': 'arValue'},
+  ],
+};
+
+/// Descriptor for `ToActivityRulesInfo`. Decode as a `google.protobuf.DescriptorProto`.
+final $typed_data.Uint8List toActivityRulesInfoDescriptor = $convert.base64Decode(
+    'ChNUb0FjdGl2aXR5UnVsZXNJbmZvEhQKBWFycklkGAEgASgFUgVhcnJJZBIWCgZhck5hbWUYAi'
+    'ABKAlSBmFyTmFtZRIWCgZpc0xvY2sYAyABKAhSBmlzTG9jaxIWCgZhclR5cGUYBCABKAVSBmFy'
+    'VHlwZRJKChFhclZhbHVlU2VsZWN0TGlzdBgFIAMoCzIcLnRvLnYxLlRvQWN0aXZpdHlSdWxlc1'
+    'NlbGVjdFIRYXJWYWx1ZVNlbGVjdExpc3QSGAoHYXJWYWx1ZRgGIAEoCVIHYXJWYWx1ZQ==');
+
+@$core.Deprecated('Use toActivityRulesSelectDescriptor instead')
+const ToActivityRulesSelect$json = {
+  '1': 'ToActivityRulesSelect',
+  '2': [
+    {'1': 'arValueSelect', '3': 1, '4': 1, '5': 9, '10': 'arValueSelect'},
+  ],
+};
+
+/// Descriptor for `ToActivityRulesSelect`. Decode as a `google.protobuf.DescriptorProto`.
+final $typed_data.Uint8List toActivityRulesSelectDescriptor = $convert.base64Decode(
+    'ChVUb0FjdGl2aXR5UnVsZXNTZWxlY3QSJAoNYXJWYWx1ZVNlbGVjdBgBIAEoCVINYXJWYWx1ZV'
+    'NlbGVjdA==');
+
 @$core.Deprecated('Use toCooperationQueryReplyDescriptor instead')
 const ToCooperationQueryReply$json = {
   '1': 'ToCooperationQueryReply',

+ 162 - 0
app_business/lib/view/home/event_manage/dialog_settings.dart

@@ -0,0 +1,162 @@
+import 'dart:collection';
+
+import 'package:app_business/service/api.dart';
+import 'package:track_common/widget.dart';
+
+class Rule {
+  var id = 0;
+  var name = '';
+  RuleValue value = RuleValueBool();
+}
+
+class RuleValue {}
+
+class RuleValueBool extends RuleValue {
+  var value = false;
+}
+
+class RuleValueArrStr extends RuleValue {
+  var value = '';
+  var options = <String>[];
+}
+
+class SettingsController extends GetxController {
+  final rules = HashMap<int, Rule>().obs;
+
+  @override
+  void onInit() {
+    final id = Get.arguments as int;
+    Get.find<ApiService>()
+        .stub
+        .toActivityRulesQuery(IdRequest()..id = Int64(id))
+        .then((p0) {
+      rules.update((val) {
+        for (final e in p0.list) {
+          val![e.arrId] = Rule()
+            ..id = e.arrId
+            ..name = e.arName
+            ..value = e.arType == 1
+                ? (RuleValueBool()..value = e.isLock)
+                : (RuleValueArrStr()
+                  ..value = e.arValue
+                  ..options =
+                      e.arValueSelectList.map((e) => e.arValueSelect).toList());
+        }
+      });
+    });
+
+    super.onInit();
+  }
+}
+
+class DialogSettings extends GetView<SettingsController> {
+  const DialogSettings({super.key});
+
+  @override
+  Widget build(BuildContext context) {
+    return GetBuilder(
+        init: SettingsController(),
+        builder: (ctx) {
+          return AlertDialog(
+            surfaceTintColor: Colors.white,
+            title: const Center(child: Text('规则设置')),
+            content: Column(
+              mainAxisSize: MainAxisSize.min,
+              children: [
+                Obx(() => _list()),
+                Padding(
+                    padding: const EdgeInsets.symmetric(horizontal: 45),
+                    child: AppButton.confirm(
+                        width: double.infinity,
+                        height: 38,
+                        child: const Text('确认'),
+                        onPressed: () {}))
+              ],
+            ),
+          );
+        });
+  }
+
+  Widget _list() {
+    return Column(
+      mainAxisSize: MainAxisSize.min,
+      crossAxisAlignment: CrossAxisAlignment.start,
+      children:
+          controller.rules.value.values.map((data) => _RuleElem(data)).toList(),
+    );
+  }
+}
+
+class _RuleElem extends GetView<SettingsController> {
+  const _RuleElem(this.data);
+
+  final Rule data;
+  @override
+  Widget build(BuildContext context) {
+    final value = data.value;
+    Widget? option;
+
+    if (value is RuleValueBool) {
+      option = Switch(
+          value: value.value,
+          activeColor: Colors.blue,
+          onChanged: (b) {
+            value.value = b;
+            controller.rules.update((val) {
+              val![data.id] = data;
+            });
+          });
+    }
+
+    if (value is RuleValueArrStr) {
+      option = Row(
+        mainAxisSize: MainAxisSize.min,
+        children: value.options
+            .map((e) => _Radio(
+                value: e,
+                groupValue: value.value,
+                onChanged: (v) {
+                  if (v != null) {
+                    value.value = v;
+                    controller.rules.update((val) {
+                      val![data.id] = data;
+                    });
+                  }
+                }))
+            .toList(),
+      );
+    }
+
+    return Row(
+      mainAxisSize: MainAxisSize.min,
+      children: [
+        SizedBox(width: 84, child: Text(data.name, textAlign: TextAlign.end)),
+        const SizedBox(width: 22),
+        option!,
+      ],
+    );
+  }
+}
+
+class _Radio extends StatelessWidget {
+  const _Radio(
+      {required this.value, required this.groupValue, required this.onChanged});
+  final String value;
+  final String groupValue;
+  final void Function(String?) onChanged;
+
+  @override
+  Widget build(BuildContext context) {
+    return Row(
+      mainAxisSize: MainAxisSize.min,
+      children: [
+        Radio(
+            activeColor: Colors.blue,
+            value: value,
+            groupValue: groupValue,
+            onChanged: onChanged),
+        Text(value),
+      ],
+    );
+  }
+}

+ 43 - 25
app_business/lib/view/home/event_manage/event_manage.dart

@@ -5,6 +5,7 @@ import 'package:track_common/model/event_state.dart';
 import 'package:track_common/widget.dart';
 import 'package:track_common/widget/prelude.dart';
 
+import 'dialog_settings.dart';
 import 'event_manage_controller.dart';
 
 class EventManage extends GetView<EventManagerController> {
@@ -366,8 +367,8 @@ class EventTitle extends GetView<EventManagerController> {
         onTap: onTap,
       )
     ];
-
-    if (selected) {
+    const buttonWidth = 52.0;
+    if (selected && data.state != EventState.finish) {
       children.add(const SizedBox(height: 2));
       children.add(Container(
         decoration: const BoxDecoration(
@@ -380,29 +381,42 @@ class EventTitle extends GetView<EventManagerController> {
         child: Column(
           mainAxisSize: MainAxisSize.min,
           children: [
-            Row(
-              children: [
-                DarkButton(
-                    onPressed: data.isAllowDel
-                        ? () => controller.deleteEvent(data)
-                        : null,
-                    child: const Text('删除')),
-                const Spacer(),
-                DarkButton(
-                    color: Colors.blue,
-                    onPressed: data.isAllowEdit
-                        ? () async {
-                            final r = await showEventEditDialog(
-                                controller.mapId!,
-                                EventRegisterInfo()..name = data.name);
-                            if (r != null) {
-                              controller.eventEdit(data.id, r);
-                            }
-                          }
-                        : null,
-                    child: const Text('修改')),
-              ],
-            ),
+            SizedBox(
+                height: 25,
+                child: Row(
+                  children: [
+                    AppButton.cancel(
+                        width: buttonWidth,
+                        onPressed: data.isAllowDel
+                            ? () => controller.deleteEvent(data)
+                            : null,
+                        child: const Text('删除')),
+                    const Spacer(),
+                    AppButton.confirm(
+                        width: buttonWidth,
+                        onPressed: data.isAllowEdit
+                            ? () async {
+                                final r = await showEventSettingsDialog(data);
+                                if (r != null) {}
+                              }
+                            : null,
+                        child: const Text('设置')),
+                    const SizedBox(width: 7),
+                    AppButton.confirm(
+                        width: buttonWidth,
+                        onPressed: data.isAllowEdit
+                            ? () async {
+                                final r = await showEventEditDialog(
+                                    controller.mapId!,
+                                    EventRegisterInfo()..name = data.name);
+                                if (r != null) {
+                                  controller.eventEdit(data.id, r);
+                                }
+                              }
+                            : null,
+                        child: const Text('修改')),
+                  ],
+                )),
             const SizedBox(height: 24),
             SizedBox.square(
                 dimension: 128, child: PrettyQrView.data(data: data.qrCode)),
@@ -422,3 +436,7 @@ class EventTitle extends GetView<EventManagerController> {
     );
   }
 }
+
+Future<EventRegisterInfo?> showEventSettingsDialog(EventInManage event) async {
+  return await Get.dialog(const DialogSettings(), arguments: event.id);
+}

+ 1 - 1
protos/app_api

@@ -1 +1 @@
-Subproject commit a140647de14d3b06bc26b37419cc230f009fbcef
+Subproject commit 60d5f158e47ba09263c61b407bf2e738cad29729