Ver Fonte

自动开始设置

周睿 há 1 ano atrás
pai
commit
231dd1cd5d

+ 270 - 159
app_business/lib/generated/base.pb.dart

@@ -431,6 +431,70 @@ class GameArriveControlPoint extends $pb.GeneratedMessage {
   void clearTotalNo() => clearField(4);
 }
 
+class ActivityIdRequest extends $pb.GeneratedMessage {
+  factory ActivityIdRequest({
+    $fixnum.Int64? id,
+    $core.int? matchType,
+  }) {
+    final $result = create();
+    if (id != null) {
+      $result.id = id;
+    }
+    if (matchType != null) {
+      $result.matchType = matchType;
+    }
+    return $result;
+  }
+  ActivityIdRequest._() : super();
+  factory ActivityIdRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r);
+  factory ActivityIdRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r);
+
+  static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'ActivityIdRequest', package: const $pb.PackageName(_omitMessageNames ? '' : 'base.v1'), createEmptyInstance: create)
+    ..aInt64(1, _omitFieldNames ? '' : 'id')
+    ..a<$core.int>(2, _omitFieldNames ? '' : 'matchType', $pb.PbFieldType.O3, protoName: 'matchType')
+    ..hasRequiredFields = false
+  ;
+
+  @$core.Deprecated(
+  'Using this can add significant overhead to your binary. '
+  'Use [GeneratedMessageGenericExtensions.deepCopy] instead. '
+  'Will be removed in next major version')
+  ActivityIdRequest clone() => ActivityIdRequest()..mergeFromMessage(this);
+  @$core.Deprecated(
+  'Using this can add significant overhead to your binary. '
+  'Use [GeneratedMessageGenericExtensions.rebuild] instead. '
+  'Will be removed in next major version')
+  ActivityIdRequest copyWith(void Function(ActivityIdRequest) updates) => super.copyWith((message) => updates(message as ActivityIdRequest)) as ActivityIdRequest;
+
+  $pb.BuilderInfo get info_ => _i;
+
+  @$core.pragma('dart2js:noInline')
+  static ActivityIdRequest create() => ActivityIdRequest._();
+  ActivityIdRequest createEmptyInstance() => create();
+  static $pb.PbList<ActivityIdRequest> createRepeated() => $pb.PbList<ActivityIdRequest>();
+  @$core.pragma('dart2js:noInline')
+  static ActivityIdRequest getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<ActivityIdRequest>(create);
+  static ActivityIdRequest? _defaultInstance;
+
+  @$pb.TagNumber(1)
+  $fixnum.Int64 get id => $_getI64(0);
+  @$pb.TagNumber(1)
+  set id($fixnum.Int64 v) { $_setInt64(0, v); }
+  @$pb.TagNumber(1)
+  $core.bool hasId() => $_has(0);
+  @$pb.TagNumber(1)
+  void clearId() => clearField(1);
+
+  @$pb.TagNumber(2)
+  $core.int get matchType => $_getIZ(1);
+  @$pb.TagNumber(2)
+  set matchType($core.int v) { $_setSignedInt32(1, v); }
+  @$pb.TagNumber(2)
+  $core.bool hasMatchType() => $_has(1);
+  @$pb.TagNumber(2)
+  void clearMatchType() => clearField(2);
+}
+
 class MapRoute extends $pb.GeneratedMessage {
   factory MapRoute({
     $fixnum.Int64? id,
@@ -1179,165 +1243,6 @@ class Position extends $pb.GeneratedMessage {
   void clearAltitude() => clearField(3);
 }
 
-/// message ControlPointInfo{
-///   NetImage image = 1; //检查点内容图片(文创)
-///   string content = 2; //检查点内容文字
-///
-/// }
-class ControlPointInfo extends $pb.GeneratedMessage {
-  factory ControlPointInfo({
-    $1.Any? displayInfo,
-  }) {
-    final $result = create();
-    if (displayInfo != null) {
-      $result.displayInfo = displayInfo;
-    }
-    return $result;
-  }
-  ControlPointInfo._() : super();
-  factory ControlPointInfo.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r);
-  factory ControlPointInfo.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r);
-
-  static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'ControlPointInfo', package: const $pb.PackageName(_omitMessageNames ? '' : 'base.v1'), createEmptyInstance: create)
-    ..aOM<$1.Any>(1, _omitFieldNames ? '' : 'displayInfo', protoName: 'displayInfo', subBuilder: $1.Any.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')
-  ControlPointInfo clone() => ControlPointInfo()..mergeFromMessage(this);
-  @$core.Deprecated(
-  'Using this can add significant overhead to your binary. '
-  'Use [GeneratedMessageGenericExtensions.rebuild] instead. '
-  'Will be removed in next major version')
-  ControlPointInfo copyWith(void Function(ControlPointInfo) updates) => super.copyWith((message) => updates(message as ControlPointInfo)) as ControlPointInfo;
-
-  $pb.BuilderInfo get info_ => _i;
-
-  @$core.pragma('dart2js:noInline')
-  static ControlPointInfo create() => ControlPointInfo._();
-  ControlPointInfo createEmptyInstance() => create();
-  static $pb.PbList<ControlPointInfo> createRepeated() => $pb.PbList<ControlPointInfo>();
-  @$core.pragma('dart2js:noInline')
-  static ControlPointInfo getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<ControlPointInfo>(create);
-  static ControlPointInfo? _defaultInstance;
-
-  @$pb.TagNumber(1)
-  $1.Any get displayInfo => $_getN(0);
-  @$pb.TagNumber(1)
-  set displayInfo($1.Any v) { setField(1, v); }
-  @$pb.TagNumber(1)
-  $core.bool hasDisplayInfo() => $_has(0);
-  @$pb.TagNumber(1)
-  void clearDisplayInfo() => clearField(1);
-  @$pb.TagNumber(1)
-  $1.Any ensureDisplayInfo() => $_ensure(0);
-}
-
-class ControlPointDisplayInfoSingleChoice extends $pb.GeneratedMessage {
-  factory ControlPointDisplayInfoSingleChoice({
-    $core.String? question,
-    NetImage? image,
-    $core.Iterable<$core.String>? answer,
-    $core.int? rightAnswerIndex,
-    $core.int? qbId,
-  }) {
-    final $result = create();
-    if (question != null) {
-      $result.question = question;
-    }
-    if (image != null) {
-      $result.image = image;
-    }
-    if (answer != null) {
-      $result.answer.addAll(answer);
-    }
-    if (rightAnswerIndex != null) {
-      $result.rightAnswerIndex = rightAnswerIndex;
-    }
-    if (qbId != null) {
-      $result.qbId = qbId;
-    }
-    return $result;
-  }
-  ControlPointDisplayInfoSingleChoice._() : super();
-  factory ControlPointDisplayInfoSingleChoice.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r);
-  factory ControlPointDisplayInfoSingleChoice.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r);
-
-  static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'ControlPointDisplayInfoSingleChoice', package: const $pb.PackageName(_omitMessageNames ? '' : 'base.v1'), createEmptyInstance: create)
-    ..aOS(1, _omitFieldNames ? '' : 'question')
-    ..aOM<NetImage>(2, _omitFieldNames ? '' : 'image', subBuilder: NetImage.create)
-    ..pPS(3, _omitFieldNames ? '' : 'answer')
-    ..a<$core.int>(4, _omitFieldNames ? '' : 'rightAnswerIndex', $pb.PbFieldType.O3, protoName: 'rightAnswerIndex')
-    ..a<$core.int>(5, _omitFieldNames ? '' : 'qbId', $pb.PbFieldType.O3, protoName: 'qbId')
-    ..hasRequiredFields = false
-  ;
-
-  @$core.Deprecated(
-  'Using this can add significant overhead to your binary. '
-  'Use [GeneratedMessageGenericExtensions.deepCopy] instead. '
-  'Will be removed in next major version')
-  ControlPointDisplayInfoSingleChoice clone() => ControlPointDisplayInfoSingleChoice()..mergeFromMessage(this);
-  @$core.Deprecated(
-  'Using this can add significant overhead to your binary. '
-  'Use [GeneratedMessageGenericExtensions.rebuild] instead. '
-  'Will be removed in next major version')
-  ControlPointDisplayInfoSingleChoice copyWith(void Function(ControlPointDisplayInfoSingleChoice) updates) => super.copyWith((message) => updates(message as ControlPointDisplayInfoSingleChoice)) as ControlPointDisplayInfoSingleChoice;
-
-  $pb.BuilderInfo get info_ => _i;
-
-  @$core.pragma('dart2js:noInline')
-  static ControlPointDisplayInfoSingleChoice create() => ControlPointDisplayInfoSingleChoice._();
-  ControlPointDisplayInfoSingleChoice createEmptyInstance() => create();
-  static $pb.PbList<ControlPointDisplayInfoSingleChoice> createRepeated() => $pb.PbList<ControlPointDisplayInfoSingleChoice>();
-  @$core.pragma('dart2js:noInline')
-  static ControlPointDisplayInfoSingleChoice getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<ControlPointDisplayInfoSingleChoice>(create);
-  static ControlPointDisplayInfoSingleChoice? _defaultInstance;
-
-  @$pb.TagNumber(1)
-  $core.String get question => $_getSZ(0);
-  @$pb.TagNumber(1)
-  set question($core.String v) { $_setString(0, v); }
-  @$pb.TagNumber(1)
-  $core.bool hasQuestion() => $_has(0);
-  @$pb.TagNumber(1)
-  void clearQuestion() => clearField(1);
-
-  @$pb.TagNumber(2)
-  NetImage get image => $_getN(1);
-  @$pb.TagNumber(2)
-  set image(NetImage v) { setField(2, v); }
-  @$pb.TagNumber(2)
-  $core.bool hasImage() => $_has(1);
-  @$pb.TagNumber(2)
-  void clearImage() => clearField(2);
-  @$pb.TagNumber(2)
-  NetImage ensureImage() => $_ensure(1);
-
-  @$pb.TagNumber(3)
-  $core.List<$core.String> get answer => $_getList(2);
-
-  @$pb.TagNumber(4)
-  $core.int get rightAnswerIndex => $_getIZ(3);
-  @$pb.TagNumber(4)
-  set rightAnswerIndex($core.int v) { $_setSignedInt32(3, v); }
-  @$pb.TagNumber(4)
-  $core.bool hasRightAnswerIndex() => $_has(3);
-  @$pb.TagNumber(4)
-  void clearRightAnswerIndex() => clearField(4);
-
-  @$pb.TagNumber(5)
-  $core.int get qbId => $_getIZ(4);
-  @$pb.TagNumber(5)
-  set qbId($core.int v) { $_setSignedInt32(4, v); }
-  @$pb.TagNumber(5)
-  $core.bool hasQbId() => $_has(4);
-  @$pb.TagNumber(5)
-  void clearQbId() => clearField(5);
-}
-
 class BinaryPart extends $pb.GeneratedMessage {
   factory BinaryPart({
     $core.String? ext,
@@ -1762,6 +1667,212 @@ class QrCodeInfo extends $pb.GeneratedMessage {
   void clearQrCode() => clearField(1);
 }
 
+class ControlPointInfo extends $pb.GeneratedMessage {
+  factory ControlPointInfo({
+    $1.Any? displayInfo,
+  }) {
+    final $result = create();
+    if (displayInfo != null) {
+      $result.displayInfo = displayInfo;
+    }
+    return $result;
+  }
+  ControlPointInfo._() : super();
+  factory ControlPointInfo.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r);
+  factory ControlPointInfo.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r);
+
+  static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'ControlPointInfo', package: const $pb.PackageName(_omitMessageNames ? '' : 'base.v1'), createEmptyInstance: create)
+    ..aOM<$1.Any>(1, _omitFieldNames ? '' : 'displayInfo', protoName: 'displayInfo', subBuilder: $1.Any.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')
+  ControlPointInfo clone() => ControlPointInfo()..mergeFromMessage(this);
+  @$core.Deprecated(
+  'Using this can add significant overhead to your binary. '
+  'Use [GeneratedMessageGenericExtensions.rebuild] instead. '
+  'Will be removed in next major version')
+  ControlPointInfo copyWith(void Function(ControlPointInfo) updates) => super.copyWith((message) => updates(message as ControlPointInfo)) as ControlPointInfo;
+
+  $pb.BuilderInfo get info_ => _i;
+
+  @$core.pragma('dart2js:noInline')
+  static ControlPointInfo create() => ControlPointInfo._();
+  ControlPointInfo createEmptyInstance() => create();
+  static $pb.PbList<ControlPointInfo> createRepeated() => $pb.PbList<ControlPointInfo>();
+  @$core.pragma('dart2js:noInline')
+  static ControlPointInfo getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<ControlPointInfo>(create);
+  static ControlPointInfo? _defaultInstance;
+
+  @$pb.TagNumber(1)
+  $1.Any get displayInfo => $_getN(0);
+  @$pb.TagNumber(1)
+  set displayInfo($1.Any v) { setField(1, v); }
+  @$pb.TagNumber(1)
+  $core.bool hasDisplayInfo() => $_has(0);
+  @$pb.TagNumber(1)
+  void clearDisplayInfo() => clearField(1);
+  @$pb.TagNumber(1)
+  $1.Any ensureDisplayInfo() => $_ensure(0);
+}
+
+/// 选择题类型
+class ControlPointDisplayInfoSingleChoice extends $pb.GeneratedMessage {
+  factory ControlPointDisplayInfoSingleChoice({
+    $core.String? question,
+    NetImage? image,
+    $core.Iterable<$core.String>? answer,
+    $core.int? rightAnswerIndex,
+    $core.int? qbId,
+  }) {
+    final $result = create();
+    if (question != null) {
+      $result.question = question;
+    }
+    if (image != null) {
+      $result.image = image;
+    }
+    if (answer != null) {
+      $result.answer.addAll(answer);
+    }
+    if (rightAnswerIndex != null) {
+      $result.rightAnswerIndex = rightAnswerIndex;
+    }
+    if (qbId != null) {
+      $result.qbId = qbId;
+    }
+    return $result;
+  }
+  ControlPointDisplayInfoSingleChoice._() : super();
+  factory ControlPointDisplayInfoSingleChoice.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r);
+  factory ControlPointDisplayInfoSingleChoice.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r);
+
+  static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'ControlPointDisplayInfoSingleChoice', package: const $pb.PackageName(_omitMessageNames ? '' : 'base.v1'), createEmptyInstance: create)
+    ..aOS(1, _omitFieldNames ? '' : 'question')
+    ..aOM<NetImage>(2, _omitFieldNames ? '' : 'image', subBuilder: NetImage.create)
+    ..pPS(3, _omitFieldNames ? '' : 'answer')
+    ..a<$core.int>(4, _omitFieldNames ? '' : 'rightAnswerIndex', $pb.PbFieldType.O3, protoName: 'rightAnswerIndex')
+    ..a<$core.int>(5, _omitFieldNames ? '' : 'qbId', $pb.PbFieldType.O3, protoName: 'qbId')
+    ..hasRequiredFields = false
+  ;
+
+  @$core.Deprecated(
+  'Using this can add significant overhead to your binary. '
+  'Use [GeneratedMessageGenericExtensions.deepCopy] instead. '
+  'Will be removed in next major version')
+  ControlPointDisplayInfoSingleChoice clone() => ControlPointDisplayInfoSingleChoice()..mergeFromMessage(this);
+  @$core.Deprecated(
+  'Using this can add significant overhead to your binary. '
+  'Use [GeneratedMessageGenericExtensions.rebuild] instead. '
+  'Will be removed in next major version')
+  ControlPointDisplayInfoSingleChoice copyWith(void Function(ControlPointDisplayInfoSingleChoice) updates) => super.copyWith((message) => updates(message as ControlPointDisplayInfoSingleChoice)) as ControlPointDisplayInfoSingleChoice;
+
+  $pb.BuilderInfo get info_ => _i;
+
+  @$core.pragma('dart2js:noInline')
+  static ControlPointDisplayInfoSingleChoice create() => ControlPointDisplayInfoSingleChoice._();
+  ControlPointDisplayInfoSingleChoice createEmptyInstance() => create();
+  static $pb.PbList<ControlPointDisplayInfoSingleChoice> createRepeated() => $pb.PbList<ControlPointDisplayInfoSingleChoice>();
+  @$core.pragma('dart2js:noInline')
+  static ControlPointDisplayInfoSingleChoice getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<ControlPointDisplayInfoSingleChoice>(create);
+  static ControlPointDisplayInfoSingleChoice? _defaultInstance;
+
+  @$pb.TagNumber(1)
+  $core.String get question => $_getSZ(0);
+  @$pb.TagNumber(1)
+  set question($core.String v) { $_setString(0, v); }
+  @$pb.TagNumber(1)
+  $core.bool hasQuestion() => $_has(0);
+  @$pb.TagNumber(1)
+  void clearQuestion() => clearField(1);
+
+  @$pb.TagNumber(2)
+  NetImage get image => $_getN(1);
+  @$pb.TagNumber(2)
+  set image(NetImage v) { setField(2, v); }
+  @$pb.TagNumber(2)
+  $core.bool hasImage() => $_has(1);
+  @$pb.TagNumber(2)
+  void clearImage() => clearField(2);
+  @$pb.TagNumber(2)
+  NetImage ensureImage() => $_ensure(1);
+
+  @$pb.TagNumber(3)
+  $core.List<$core.String> get answer => $_getList(2);
+
+  @$pb.TagNumber(4)
+  $core.int get rightAnswerIndex => $_getIZ(3);
+  @$pb.TagNumber(4)
+  set rightAnswerIndex($core.int v) { $_setSignedInt32(3, v); }
+  @$pb.TagNumber(4)
+  $core.bool hasRightAnswerIndex() => $_has(3);
+  @$pb.TagNumber(4)
+  void clearRightAnswerIndex() => clearField(4);
+
+  @$pb.TagNumber(5)
+  $core.int get qbId => $_getIZ(4);
+  @$pb.TagNumber(5)
+  set qbId($core.int v) { $_setSignedInt32(4, v); }
+  @$pb.TagNumber(5)
+  $core.bool hasQbId() => $_has(4);
+  @$pb.TagNumber(5)
+  void clearQbId() => clearField(5);
+}
+
+/// 拍照提示类型
+class ControlPointDisplayCapture extends $pb.GeneratedMessage {
+  factory ControlPointDisplayCapture({
+    $core.String? prompt,
+  }) {
+    final $result = create();
+    if (prompt != null) {
+      $result.prompt = prompt;
+    }
+    return $result;
+  }
+  ControlPointDisplayCapture._() : super();
+  factory ControlPointDisplayCapture.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r);
+  factory ControlPointDisplayCapture.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r);
+
+  static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'ControlPointDisplayCapture', package: const $pb.PackageName(_omitMessageNames ? '' : 'base.v1'), createEmptyInstance: create)
+    ..aOS(1, _omitFieldNames ? '' : 'prompt')
+    ..hasRequiredFields = false
+  ;
+
+  @$core.Deprecated(
+  'Using this can add significant overhead to your binary. '
+  'Use [GeneratedMessageGenericExtensions.deepCopy] instead. '
+  'Will be removed in next major version')
+  ControlPointDisplayCapture clone() => ControlPointDisplayCapture()..mergeFromMessage(this);
+  @$core.Deprecated(
+  'Using this can add significant overhead to your binary. '
+  'Use [GeneratedMessageGenericExtensions.rebuild] instead. '
+  'Will be removed in next major version')
+  ControlPointDisplayCapture copyWith(void Function(ControlPointDisplayCapture) updates) => super.copyWith((message) => updates(message as ControlPointDisplayCapture)) as ControlPointDisplayCapture;
+
+  $pb.BuilderInfo get info_ => _i;
+
+  @$core.pragma('dart2js:noInline')
+  static ControlPointDisplayCapture create() => ControlPointDisplayCapture._();
+  ControlPointDisplayCapture createEmptyInstance() => create();
+  static $pb.PbList<ControlPointDisplayCapture> createRepeated() => $pb.PbList<ControlPointDisplayCapture>();
+  @$core.pragma('dart2js:noInline')
+  static ControlPointDisplayCapture getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<ControlPointDisplayCapture>(create);
+  static ControlPointDisplayCapture? _defaultInstance;
+
+  @$pb.TagNumber(1)
+  $core.String get prompt => $_getSZ(0);
+  @$pb.TagNumber(1)
+  set prompt($core.String v) { $_setString(0, v); }
+  @$pb.TagNumber(1)
+  $core.bool hasPrompt() => $_has(0);
+  @$pb.TagNumber(1)
+  void clearPrompt() => clearField(1);
+}
+
 class ControlPoint extends $pb.GeneratedMessage {
   factory ControlPoint({
     $fixnum.Int64? id,

+ 58 - 32
app_business/lib/generated/base.pbjson.dart

@@ -340,6 +340,20 @@ final $typed_data.Uint8List gameArriveControlPointDescriptor = $convert.base64De
     'ChZHYW1lQXJyaXZlQ29udHJvbFBvaW50Eg4KAmlkGAEgASgDUgJpZBIOCgJzbhgCIAEoCVICc2'
     '4SGAoHb3JkZXJObxgDIAEoBVIHb3JkZXJObxIYCgd0b3RhbE5vGAQgASgFUgd0b3RhbE5v');
 
+@$core.Deprecated('Use activityIdRequestDescriptor instead')
+const ActivityIdRequest$json = {
+  '1': 'ActivityIdRequest',
+  '2': [
+    {'1': 'id', '3': 1, '4': 1, '5': 3, '10': 'id'},
+    {'1': 'matchType', '3': 2, '4': 1, '5': 5, '10': 'matchType'},
+  ],
+};
+
+/// Descriptor for `ActivityIdRequest`. Decode as a `google.protobuf.DescriptorProto`.
+final $typed_data.Uint8List activityIdRequestDescriptor = $convert.base64Decode(
+    'ChFBY3Rpdml0eUlkUmVxdWVzdBIOCgJpZBgBIAEoA1ICaWQSHAoJbWF0Y2hUeXBlGAIgASgFUg'
+    'ltYXRjaFR5cGU=');
+
 @$core.Deprecated('Use mapRouteDescriptor instead')
 const MapRoute$json = {
   '1': 'MapRoute',
@@ -497,38 +511,6 @@ final $typed_data.Uint8List positionDescriptor = $convert.base64Decode(
     'CghQb3NpdGlvbhIcCglsb25naXR1ZGUYASABKAFSCWxvbmdpdHVkZRIaCghsYXRpdHVkZRgCIA'
     'EoAVIIbGF0aXR1ZGUSGgoIYWx0aXR1ZGUYAyABKAFSCGFsdGl0dWRl');
 
-@$core.Deprecated('Use controlPointInfoDescriptor instead')
-const ControlPointInfo$json = {
-  '1': 'ControlPointInfo',
-  '2': [
-    {'1': 'displayInfo', '3': 1, '4': 1, '5': 11, '6': '.google.protobuf.Any', '10': 'displayInfo'},
-  ],
-};
-
-/// Descriptor for `ControlPointInfo`. Decode as a `google.protobuf.DescriptorProto`.
-final $typed_data.Uint8List controlPointInfoDescriptor = $convert.base64Decode(
-    'ChBDb250cm9sUG9pbnRJbmZvEjYKC2Rpc3BsYXlJbmZvGAEgASgLMhQuZ29vZ2xlLnByb3RvYn'
-    'VmLkFueVILZGlzcGxheUluZm8=');
-
-@$core.Deprecated('Use controlPointDisplayInfoSingleChoiceDescriptor instead')
-const ControlPointDisplayInfoSingleChoice$json = {
-  '1': 'ControlPointDisplayInfoSingleChoice',
-  '2': [
-    {'1': 'question', '3': 1, '4': 1, '5': 9, '10': 'question'},
-    {'1': 'image', '3': 2, '4': 1, '5': 11, '6': '.base.v1.NetImage', '10': 'image'},
-    {'1': 'answer', '3': 3, '4': 3, '5': 9, '10': 'answer'},
-    {'1': 'rightAnswerIndex', '3': 4, '4': 1, '5': 5, '10': 'rightAnswerIndex'},
-    {'1': 'qbId', '3': 5, '4': 1, '5': 5, '10': 'qbId'},
-  ],
-};
-
-/// Descriptor for `ControlPointDisplayInfoSingleChoice`. Decode as a `google.protobuf.DescriptorProto`.
-final $typed_data.Uint8List controlPointDisplayInfoSingleChoiceDescriptor = $convert.base64Decode(
-    'CiNDb250cm9sUG9pbnREaXNwbGF5SW5mb1NpbmdsZUNob2ljZRIaCghxdWVzdGlvbhgBIAEoCV'
-    'IIcXVlc3Rpb24SJwoFaW1hZ2UYAiABKAsyES5iYXNlLnYxLk5ldEltYWdlUgVpbWFnZRIWCgZh'
-    'bnN3ZXIYAyADKAlSBmFuc3dlchIqChByaWdodEFuc3dlckluZGV4GAQgASgFUhByaWdodEFuc3'
-    'dlckluZGV4EhIKBHFiSWQYBSABKAVSBHFiSWQ=');
-
 @$core.Deprecated('Use binaryPartDescriptor instead')
 const BinaryPart$json = {
   '1': 'BinaryPart',
@@ -615,6 +597,50 @@ const QrCodeInfo$json = {
 final $typed_data.Uint8List qrCodeInfoDescriptor = $convert.base64Decode(
     'CgpRckNvZGVJbmZvEhYKBnFyQ29kZRgBIAEoCVIGcXJDb2Rl');
 
+@$core.Deprecated('Use controlPointInfoDescriptor instead')
+const ControlPointInfo$json = {
+  '1': 'ControlPointInfo',
+  '2': [
+    {'1': 'displayInfo', '3': 1, '4': 1, '5': 11, '6': '.google.protobuf.Any', '10': 'displayInfo'},
+  ],
+};
+
+/// Descriptor for `ControlPointInfo`. Decode as a `google.protobuf.DescriptorProto`.
+final $typed_data.Uint8List controlPointInfoDescriptor = $convert.base64Decode(
+    'ChBDb250cm9sUG9pbnRJbmZvEjYKC2Rpc3BsYXlJbmZvGAEgASgLMhQuZ29vZ2xlLnByb3RvYn'
+    'VmLkFueVILZGlzcGxheUluZm8=');
+
+@$core.Deprecated('Use controlPointDisplayInfoSingleChoiceDescriptor instead')
+const ControlPointDisplayInfoSingleChoice$json = {
+  '1': 'ControlPointDisplayInfoSingleChoice',
+  '2': [
+    {'1': 'question', '3': 1, '4': 1, '5': 9, '10': 'question'},
+    {'1': 'image', '3': 2, '4': 1, '5': 11, '6': '.base.v1.NetImage', '10': 'image'},
+    {'1': 'answer', '3': 3, '4': 3, '5': 9, '10': 'answer'},
+    {'1': 'rightAnswerIndex', '3': 4, '4': 1, '5': 5, '10': 'rightAnswerIndex'},
+    {'1': 'qbId', '3': 5, '4': 1, '5': 5, '10': 'qbId'},
+  ],
+};
+
+/// Descriptor for `ControlPointDisplayInfoSingleChoice`. Decode as a `google.protobuf.DescriptorProto`.
+final $typed_data.Uint8List controlPointDisplayInfoSingleChoiceDescriptor = $convert.base64Decode(
+    'CiNDb250cm9sUG9pbnREaXNwbGF5SW5mb1NpbmdsZUNob2ljZRIaCghxdWVzdGlvbhgBIAEoCV'
+    'IIcXVlc3Rpb24SJwoFaW1hZ2UYAiABKAsyES5iYXNlLnYxLk5ldEltYWdlUgVpbWFnZRIWCgZh'
+    'bnN3ZXIYAyADKAlSBmFuc3dlchIqChByaWdodEFuc3dlckluZGV4GAQgASgFUhByaWdodEFuc3'
+    'dlckluZGV4EhIKBHFiSWQYBSABKAVSBHFiSWQ=');
+
+@$core.Deprecated('Use controlPointDisplayCaptureDescriptor instead')
+const ControlPointDisplayCapture$json = {
+  '1': 'ControlPointDisplayCapture',
+  '2': [
+    {'1': 'prompt', '3': 1, '4': 1, '5': 9, '10': 'prompt'},
+  ],
+};
+
+/// Descriptor for `ControlPointDisplayCapture`. Decode as a `google.protobuf.DescriptorProto`.
+final $typed_data.Uint8List controlPointDisplayCaptureDescriptor = $convert.base64Decode(
+    'ChpDb250cm9sUG9pbnREaXNwbGF5Q2FwdHVyZRIWCgZwcm9tcHQYASABKAlSBnByb21wdA==');
+
 @$core.Deprecated('Use controlPointDescriptor instead')
 const ControlPoint$json = {
   '1': 'ControlPoint',

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

@@ -701,6 +701,7 @@ class ToMatchRegusterEditRequest extends $pb.GeneratedMessage {
     $2.Timestamp? bShowTime,
     $2.Timestamp? eShowTime,
     $core.String? matchPasswd,
+    $core.bool? isAutoBegin,
   }) {
     final $result = create();
     if (id != null) {
@@ -730,6 +731,9 @@ class ToMatchRegusterEditRequest extends $pb.GeneratedMessage {
     if (matchPasswd != null) {
       $result.matchPasswd = matchPasswd;
     }
+    if (isAutoBegin != null) {
+      $result.isAutoBegin = isAutoBegin;
+    }
     return $result;
   }
   ToMatchRegusterEditRequest._() : super();
@@ -746,6 +750,7 @@ class ToMatchRegusterEditRequest extends $pb.GeneratedMessage {
     ..aOM<$2.Timestamp>(7, _omitFieldNames ? '' : 'bShowTime', protoName: 'bShowTime', subBuilder: $2.Timestamp.create)
     ..aOM<$2.Timestamp>(8, _omitFieldNames ? '' : 'eShowTime', protoName: 'eShowTime', subBuilder: $2.Timestamp.create)
     ..aOS(9, _omitFieldNames ? '' : 'MatchPasswd', protoName: 'MatchPasswd')
+    ..aOB(10, _omitFieldNames ? '' : 'isAutoBegin', protoName: 'isAutoBegin')
     ..hasRequiredFields = false
   ;
 
@@ -859,6 +864,15 @@ class ToMatchRegusterEditRequest extends $pb.GeneratedMessage {
   $core.bool hasMatchPasswd() => $_has(8);
   @$pb.TagNumber(9)
   void clearMatchPasswd() => clearField(9);
+
+  @$pb.TagNumber(10)
+  $core.bool get isAutoBegin => $_getBF(9);
+  @$pb.TagNumber(10)
+  set isAutoBegin($core.bool v) { $_setBool(9, v); }
+  @$pb.TagNumber(10)
+  $core.bool hasIsAutoBegin() => $_has(9);
+  @$pb.TagNumber(10)
+  void clearIsAutoBegin() => clearField(10);
 }
 
 class ToCourseListReply extends $pb.GeneratedMessage {
@@ -1488,6 +1502,7 @@ class ToMatchRegusterAddRequest extends $pb.GeneratedMessage {
     $2.Timestamp? bShowTime,
     $2.Timestamp? eShowTime,
     $core.String? matchPasswd,
+    $core.bool? isAutoBegin,
   }) {
     final $result = create();
     if (regName != null) {
@@ -1517,6 +1532,9 @@ class ToMatchRegusterAddRequest extends $pb.GeneratedMessage {
     if (matchPasswd != null) {
       $result.matchPasswd = matchPasswd;
     }
+    if (isAutoBegin != null) {
+      $result.isAutoBegin = isAutoBegin;
+    }
     return $result;
   }
   ToMatchRegusterAddRequest._() : super();
@@ -1533,6 +1551,7 @@ class ToMatchRegusterAddRequest extends $pb.GeneratedMessage {
     ..aOM<$2.Timestamp>(7, _omitFieldNames ? '' : 'bShowTime', protoName: 'bShowTime', subBuilder: $2.Timestamp.create)
     ..aOM<$2.Timestamp>(8, _omitFieldNames ? '' : 'eShowTime', protoName: 'eShowTime', subBuilder: $2.Timestamp.create)
     ..aOS(9, _omitFieldNames ? '' : 'MatchPasswd', protoName: 'MatchPasswd')
+    ..aOB(10, _omitFieldNames ? '' : 'isAutoBegin', protoName: 'isAutoBegin')
     ..hasRequiredFields = false
   ;
 
@@ -1645,6 +1664,15 @@ class ToMatchRegusterAddRequest extends $pb.GeneratedMessage {
   $core.bool hasMatchPasswd() => $_has(8);
   @$pb.TagNumber(9)
   void clearMatchPasswd() => clearField(9);
+
+  @$pb.TagNumber(10)
+  $core.bool get isAutoBegin => $_getBF(9);
+  @$pb.TagNumber(10)
+  set isAutoBegin($core.bool v) { $_setBool(9, v); }
+  @$pb.TagNumber(10)
+  $core.bool hasIsAutoBegin() => $_has(9);
+  @$pb.TagNumber(10)
+  void clearIsAutoBegin() => clearField(10);
 }
 
 

+ 4 - 2
app_business/lib/generated/track_offical.pbjson.dart

@@ -174,6 +174,7 @@ const ToMatchRegusterEditRequest$json = {
     {'1': 'bShowTime', '3': 7, '4': 1, '5': 11, '6': '.google.protobuf.Timestamp', '10': 'bShowTime'},
     {'1': 'eShowTime', '3': 8, '4': 1, '5': 11, '6': '.google.protobuf.Timestamp', '10': 'eShowTime'},
     {'1': 'MatchPasswd', '3': 9, '4': 1, '5': 9, '10': 'MatchPasswd'},
+    {'1': 'isAutoBegin', '3': 10, '4': 1, '5': 8, '10': 'isAutoBegin'},
   ],
 };
 
@@ -186,7 +187,7 @@ final $typed_data.Uint8List toMatchRegusterEditRequestDescriptor = $convert.base
     'c3dkGAYgASgJUgtxdWVyeVBhc3N3ZBI4CgliU2hvd1RpbWUYByABKAsyGi5nb29nbGUucHJvdG'
     '9idWYuVGltZXN0YW1wUgliU2hvd1RpbWUSOAoJZVNob3dUaW1lGAggASgLMhouZ29vZ2xlLnBy'
     'b3RvYnVmLlRpbWVzdGFtcFIJZVNob3dUaW1lEiAKC01hdGNoUGFzc3dkGAkgASgJUgtNYXRjaF'
-    'Bhc3N3ZA==');
+    'Bhc3N3ZBIgCgtpc0F1dG9CZWdpbhgKIAEoCFILaXNBdXRvQmVnaW4=');
 
 @$core.Deprecated('Use toCourseListReplyDescriptor instead')
 const ToCourseListReply$json = {
@@ -305,6 +306,7 @@ const ToMatchRegusterAddRequest$json = {
     {'1': 'bShowTime', '3': 7, '4': 1, '5': 11, '6': '.google.protobuf.Timestamp', '10': 'bShowTime'},
     {'1': 'eShowTime', '3': 8, '4': 1, '5': 11, '6': '.google.protobuf.Timestamp', '10': 'eShowTime'},
     {'1': 'MatchPasswd', '3': 9, '4': 1, '5': 9, '10': 'MatchPasswd'},
+    {'1': 'isAutoBegin', '3': 10, '4': 1, '5': 8, '10': 'isAutoBegin'},
   ],
 };
 
@@ -317,5 +319,5 @@ final $typed_data.Uint8List toMatchRegusterAddRequestDescriptor = $convert.base6
     'cnlQYXNzd2QYBiABKAlSC3F1ZXJ5UGFzc3dkEjgKCWJTaG93VGltZRgHIAEoCzIaLmdvb2dsZS'
     '5wcm90b2J1Zi5UaW1lc3RhbXBSCWJTaG93VGltZRI4CgllU2hvd1RpbWUYCCABKAsyGi5nb29n'
     'bGUucHJvdG9idWYuVGltZXN0YW1wUgllU2hvd1RpbWUSIAoLTWF0Y2hQYXNzd2QYCSABKAlSC0'
-    '1hdGNoUGFzc3dk');
+    '1hdGNoUGFzc3dkEiAKC2lzQXV0b0JlZ2luGAogASgIUgtpc0F1dG9CZWdpbg==');
 

+ 2 - 0
app_business/lib/service/api.dart

@@ -226,6 +226,7 @@ class ApiService extends IService {
       ..stopAt = event.eventStopAt.toPb()
       ..bShowTime = event.showStartAt.toPb()
       ..eShowTime = event.showStopAt.toPb()
+      ..isAutoBegin = event.isAutoBegin
       ..isQueryPwd = event.passwordQuery != null
       ..queryPasswd = event.passwordQuery ?? '');
   }
@@ -303,6 +304,7 @@ class EventRegisterInfo {
   var eventStartAt = DateTime.now();
   var showStopAt = DateTime.now();
   var eventStopAt = DateTime.now();
+  var isAutoBegin = false;
   String? passwordQuery;
   String? passwordEvent;
 }

+ 19 - 0
app_business/lib/view/home/dialog_event_register.dart

@@ -41,6 +41,7 @@ class RegisterDialogController extends GetxController {
   final selected = Rx<EventInfo?>(null);
   final hasPasswordQuery = false.obs;
   final hasPasswordEvent = false.obs;
+  final isAutoBegin = false.obs;
   var passwordQuery = '';
   var passwordEvent = '';
   late final int mapId;
@@ -91,6 +92,7 @@ class RegisterDialogController extends GetxController {
       hasPasswordQuery.value = args.old.passwordQuery != null;
       passwordEvent = args.old.passwordEvent ?? '';
       hasPasswordEvent.value = args.old.passwordEvent != null;
+      isAutoBegin.value = args.old.isAutoBegin;
     }
     super.onInit();
   }
@@ -187,6 +189,7 @@ class RegisterDialog extends GetView<RegisterDialogController> {
             // password('赛事密码', c.hasPasswordEvent, (v) {
             //   c.passwordEvent = v;
             // }),
+            autoBegin(c.isAutoBegin),
             const SizedBox(height: 21.34),
             SizedBox(
                 width: double.infinity,
@@ -233,6 +236,21 @@ class RegisterDialog extends GetView<RegisterDialogController> {
         ]));
   }
 
+  Widget autoBegin(
+    Rx<bool> b,
+  ) {
+    return SizedBox(
+        height: 80,
+        child: Row(mainAxisSize: MainAxisSize.min, children: [
+          Obx(() => Switch(
+              value: b.value,
+              onChanged: (v) {
+                b.value = v;
+              })),
+          const Text('自动开始'),
+        ]));
+  }
+
   void _onRegister() {
     final showDateStart = controller.showDateStart.value;
     final showDateEnd = controller.showDateEnd.value;
@@ -318,6 +336,7 @@ class RegisterDialog extends GetView<RegisterDialogController> {
           ..showStopAt = showStopAt
           ..eventStartAt = eventStartAt
           ..eventStopAt = eventStopAt
+          ..isAutoBegin = controller.isAutoBegin.value
           ..passwordQuery = controller.hasPasswordQuery.value
               ? controller.passwordQuery
               : null

+ 1 - 0
app_business/lib/view/home/event_manage/event_manage.dart

@@ -451,6 +451,7 @@ class EventTitle extends GetView<EventManagerController> {
                                     EventRegisterInfo()
                                       ..name = data.name
                                       ..showStartAt = data.showStartAt
+                                      ..isAutoBegin = data.isAutoBegin
                                       ..showStopAt = data.showEndAt
                                       ..eventStartAt = data.eventStartAt
                                       ..eventStopAt = data.eventEndAt);

+ 1 - 0
app_business/lib/view/home/event_manage/event_manage_controller.dart

@@ -14,6 +14,7 @@ class EventInManage {
   var isAllowEdit = true;
   var isAllowDel = true;
   var isAllowCheckSwitch = true;
+  var isAutoBegin = false;
   var isCheckEnable = true;
   var state = EventState.idle;
   var userList = <UserInManage>[];

+ 1 - 0
app_business/lib/view/home/field_control.dart

@@ -58,6 +58,7 @@ class FieldControlPageImpl extends FieldControlPage {
             ..regName = r.name
             ..startAt = r.eventStartAt.toPb()
             ..stopAt = r.eventStopAt.toPb()
+            ..isAutoBegin = r.isAutoBegin
             ..bShowTime = r.showStartAt.toPb()
             ..eShowTime = r.showStopAt.toPb()
             ..isQueryPwd = r.passwordQuery != null