大赛管理功能
This commit is contained in:
parent
8b23269aba
commit
2a0e126a7c
|
@ -114,6 +114,7 @@ public class RacePaperService {
|
|||
SeasonMenu.Builder sm = SeasonMenu.newBuilder();
|
||||
sm.setSeasonId(season.getId());
|
||||
sm.setSeasonName(season.getTerm());
|
||||
sm.setSeasonCode(season.getCode());
|
||||
if (StringUtils.isNotEmpty(season.getDetailHtmlContent())) {
|
||||
sm.setDetailHtmlContent(season.getDetailHtmlContent());
|
||||
}
|
||||
|
|
|
@ -1454,6 +1454,18 @@ public final class RacePaper {
|
|||
*/
|
||||
club.joylink.rtss.vo.race.RacePaper.RacePaperMenuVO.PaperMenuOrBuilder getPapersOrBuilder(
|
||||
int index);
|
||||
|
||||
/**
|
||||
* <code>string season_code = 5;</code>
|
||||
* @return The seasonCode.
|
||||
*/
|
||||
java.lang.String getSeasonCode();
|
||||
/**
|
||||
* <code>string season_code = 5;</code>
|
||||
* @return The bytes for seasonCode.
|
||||
*/
|
||||
com.google.protobuf.ByteString
|
||||
getSeasonCodeBytes();
|
||||
}
|
||||
/**
|
||||
* Protobuf type {@code race.RacePaperMenuVO.SeasonMenu}
|
||||
|
@ -1471,6 +1483,7 @@ public final class RacePaper {
|
|||
seasonName_ = "";
|
||||
detailHtmlContent_ = "";
|
||||
papers_ = java.util.Collections.emptyList();
|
||||
seasonCode_ = "";
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
|
@ -1623,6 +1636,45 @@ public final class RacePaper {
|
|||
return papers_.get(index);
|
||||
}
|
||||
|
||||
public static final int SEASON_CODE_FIELD_NUMBER = 5;
|
||||
@SuppressWarnings("serial")
|
||||
private volatile java.lang.Object seasonCode_ = "";
|
||||
/**
|
||||
* <code>string season_code = 5;</code>
|
||||
* @return The seasonCode.
|
||||
*/
|
||||
@java.lang.Override
|
||||
public java.lang.String getSeasonCode() {
|
||||
java.lang.Object ref = seasonCode_;
|
||||
if (ref instanceof java.lang.String) {
|
||||
return (java.lang.String) ref;
|
||||
} else {
|
||||
com.google.protobuf.ByteString bs =
|
||||
(com.google.protobuf.ByteString) ref;
|
||||
java.lang.String s = bs.toStringUtf8();
|
||||
seasonCode_ = s;
|
||||
return s;
|
||||
}
|
||||
}
|
||||
/**
|
||||
* <code>string season_code = 5;</code>
|
||||
* @return The bytes for seasonCode.
|
||||
*/
|
||||
@java.lang.Override
|
||||
public com.google.protobuf.ByteString
|
||||
getSeasonCodeBytes() {
|
||||
java.lang.Object ref = seasonCode_;
|
||||
if (ref instanceof java.lang.String) {
|
||||
com.google.protobuf.ByteString b =
|
||||
com.google.protobuf.ByteString.copyFromUtf8(
|
||||
(java.lang.String) ref);
|
||||
seasonCode_ = b;
|
||||
return b;
|
||||
} else {
|
||||
return (com.google.protobuf.ByteString) ref;
|
||||
}
|
||||
}
|
||||
|
||||
private byte memoizedIsInitialized = -1;
|
||||
@java.lang.Override
|
||||
public final boolean isInitialized() {
|
||||
|
@ -1649,6 +1701,9 @@ public final class RacePaper {
|
|||
for (int i = 0; i < papers_.size(); i++) {
|
||||
output.writeMessage(4, papers_.get(i));
|
||||
}
|
||||
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(seasonCode_)) {
|
||||
com.google.protobuf.GeneratedMessageV3.writeString(output, 5, seasonCode_);
|
||||
}
|
||||
getUnknownFields().writeTo(output);
|
||||
}
|
||||
|
||||
|
@ -1672,6 +1727,9 @@ public final class RacePaper {
|
|||
size += com.google.protobuf.CodedOutputStream
|
||||
.computeMessageSize(4, papers_.get(i));
|
||||
}
|
||||
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(seasonCode_)) {
|
||||
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, seasonCode_);
|
||||
}
|
||||
size += getUnknownFields().getSerializedSize();
|
||||
memoizedSize = size;
|
||||
return size;
|
||||
|
@ -1695,6 +1753,8 @@ public final class RacePaper {
|
|||
.equals(other.getDetailHtmlContent())) return false;
|
||||
if (!getPapersList()
|
||||
.equals(other.getPapersList())) return false;
|
||||
if (!getSeasonCode()
|
||||
.equals(other.getSeasonCode())) return false;
|
||||
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
|
||||
return true;
|
||||
}
|
||||
|
@ -1717,6 +1777,8 @@ public final class RacePaper {
|
|||
hash = (37 * hash) + PAPERS_FIELD_NUMBER;
|
||||
hash = (53 * hash) + getPapersList().hashCode();
|
||||
}
|
||||
hash = (37 * hash) + SEASON_CODE_FIELD_NUMBER;
|
||||
hash = (53 * hash) + getSeasonCode().hashCode();
|
||||
hash = (29 * hash) + getUnknownFields().hashCode();
|
||||
memoizedHashCode = hash;
|
||||
return hash;
|
||||
|
@ -1858,6 +1920,7 @@ public final class RacePaper {
|
|||
papersBuilder_.clear();
|
||||
}
|
||||
bitField0_ = (bitField0_ & ~0x00000008);
|
||||
seasonCode_ = "";
|
||||
return this;
|
||||
}
|
||||
|
||||
|
@ -1913,6 +1976,9 @@ public final class RacePaper {
|
|||
if (((from_bitField0_ & 0x00000004) != 0)) {
|
||||
result.detailHtmlContent_ = detailHtmlContent_;
|
||||
}
|
||||
if (((from_bitField0_ & 0x00000010) != 0)) {
|
||||
result.seasonCode_ = seasonCode_;
|
||||
}
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
|
@ -1966,6 +2032,11 @@ public final class RacePaper {
|
|||
}
|
||||
}
|
||||
}
|
||||
if (!other.getSeasonCode().isEmpty()) {
|
||||
seasonCode_ = other.seasonCode_;
|
||||
bitField0_ |= 0x00000010;
|
||||
onChanged();
|
||||
}
|
||||
this.mergeUnknownFields(other.getUnknownFields());
|
||||
onChanged();
|
||||
return this;
|
||||
|
@ -2020,6 +2091,11 @@ public final class RacePaper {
|
|||
}
|
||||
break;
|
||||
} // case 34
|
||||
case 42: {
|
||||
seasonCode_ = input.readStringRequireUtf8();
|
||||
bitField0_ |= 0x00000010;
|
||||
break;
|
||||
} // case 42
|
||||
default: {
|
||||
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
|
||||
done = true; // was an endgroup tag
|
||||
|
@ -2452,6 +2528,78 @@ public final class RacePaper {
|
|||
}
|
||||
return papersBuilder_;
|
||||
}
|
||||
|
||||
private java.lang.Object seasonCode_ = "";
|
||||
/**
|
||||
* <code>string season_code = 5;</code>
|
||||
* @return The seasonCode.
|
||||
*/
|
||||
public java.lang.String getSeasonCode() {
|
||||
java.lang.Object ref = seasonCode_;
|
||||
if (!(ref instanceof java.lang.String)) {
|
||||
com.google.protobuf.ByteString bs =
|
||||
(com.google.protobuf.ByteString) ref;
|
||||
java.lang.String s = bs.toStringUtf8();
|
||||
seasonCode_ = s;
|
||||
return s;
|
||||
} else {
|
||||
return (java.lang.String) ref;
|
||||
}
|
||||
}
|
||||
/**
|
||||
* <code>string season_code = 5;</code>
|
||||
* @return The bytes for seasonCode.
|
||||
*/
|
||||
public com.google.protobuf.ByteString
|
||||
getSeasonCodeBytes() {
|
||||
java.lang.Object ref = seasonCode_;
|
||||
if (ref instanceof String) {
|
||||
com.google.protobuf.ByteString b =
|
||||
com.google.protobuf.ByteString.copyFromUtf8(
|
||||
(java.lang.String) ref);
|
||||
seasonCode_ = b;
|
||||
return b;
|
||||
} else {
|
||||
return (com.google.protobuf.ByteString) ref;
|
||||
}
|
||||
}
|
||||
/**
|
||||
* <code>string season_code = 5;</code>
|
||||
* @param value The seasonCode to set.
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder setSeasonCode(
|
||||
java.lang.String value) {
|
||||
if (value == null) { throw new NullPointerException(); }
|
||||
seasonCode_ = value;
|
||||
bitField0_ |= 0x00000010;
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>string season_code = 5;</code>
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder clearSeasonCode() {
|
||||
seasonCode_ = getDefaultInstance().getSeasonCode();
|
||||
bitField0_ = (bitField0_ & ~0x00000010);
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>string season_code = 5;</code>
|
||||
* @param value The bytes for seasonCode to set.
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder setSeasonCodeBytes(
|
||||
com.google.protobuf.ByteString value) {
|
||||
if (value == null) { throw new NullPointerException(); }
|
||||
checkByteStringIsUtf8(value);
|
||||
seasonCode_ = value;
|
||||
bitField0_ |= 0x00000010;
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
@java.lang.Override
|
||||
public final Builder setUnknownFields(
|
||||
final com.google.protobuf.UnknownFieldSet unknownFields) {
|
||||
|
@ -9358,29 +9506,29 @@ public final class RacePaper {
|
|||
"desc\030\003 \001(\t\022\021\n\tseason_id\030\005 \001(\003\022\023\n\013season_" +
|
||||
"name\030\006 \001(\t\022)\n\013modify_info\030\010 \001(\0132\024.common" +
|
||||
".ModifyInfoVO\022%\n\005group\030\t \001(\0162\026.race.Race" +
|
||||
"Season.Group\"\355\001\n\017RacePaperMenuVO\022.\n\004menu" +
|
||||
"Season.Group\"\202\002\n\017RacePaperMenuVO\022.\n\004menu" +
|
||||
"\030\001 \003(\0132 .race.RacePaperMenuVO.SeasonMenu" +
|
||||
"\032\202\001\n\nSeasonMenu\022\021\n\tseason_id\030\001 \001(\003\022\023\n\013se" +
|
||||
"\032\227\001\n\nSeasonMenu\022\021\n\tseason_id\030\001 \001(\003\022\023\n\013se" +
|
||||
"ason_name\030\002 \001(\t\022\033\n\023detail_html_content\030\003" +
|
||||
" \001(\t\022/\n\006papers\030\004 \003(\0132\037.race.RacePaperMen" +
|
||||
"uVO.PaperMenu\032%\n\tPaperMenu\022\n\n\002id\030\001 \001(\003\022\014" +
|
||||
"\n\004name\030\002 \001(\t\"\320\001\n\021RacePaperDetailVO\022\n\n\002id" +
|
||||
"\030\001 \001(\003\022\014\n\004name\030\002 \001(\t\022\014\n\004desc\030\003 \001(\t\022*\n\tmo" +
|
||||
"dule_vo\030\004 \001(\0132\027.race.RacePaperModuleVO\022\021" +
|
||||
"\n\tseason_id\030\005 \001(\003\022\023\n\013season_name\030\006 \001(\t\022\024" +
|
||||
"\n\014support_copy\030\007 \001(\010\022)\n\013modify_info\030\010 \001(" +
|
||||
"\0132\024.common.ModifyInfoVO\"B\n\021RacePaperCrea" +
|
||||
"teVO\022\014\n\004name\030\001 \001(\t\022\014\n\004desc\030\002 \001(\t\022\021\n\tseas" +
|
||||
"on_id\030\003 \001(\003\"\275\002\n\021RacePaperModuleVO\0224\n\007mod" +
|
||||
"ules\030\001 \003(\0132#.race.RacePaperModuleVO.Pape" +
|
||||
"rModule\032\232\001\n\013PaperModule\022\023\n\013module_name\030\001" +
|
||||
" \001(\t\022\020\n\010duration\030\002 \001(\005\022,\n\005group\030\003 \003(\0132\035." +
|
||||
"race.RacePaperModuleVO.Group\022\034\n\024module_s" +
|
||||
"core_rule_id\030\004 \001(\003\022\030\n\020custom_module_id\030\005" +
|
||||
" \001(\005\032U\n\005Group\022\020\n\010task_ids\030\001 \003(\003\022,\n\005group" +
|
||||
"\030\002 \003(\0132\035.race.RacePaperModuleVO.Group\022\014\n" +
|
||||
"\004name\030\003 \001(\tB\033\n\031club.joylink.rtss.vo.race" +
|
||||
"b\006proto3"
|
||||
"uVO.PaperMenu\022\023\n\013season_code\030\005 \001(\t\032%\n\tPa" +
|
||||
"perMenu\022\n\n\002id\030\001 \001(\003\022\014\n\004name\030\002 \001(\t\"\320\001\n\021Ra" +
|
||||
"cePaperDetailVO\022\n\n\002id\030\001 \001(\003\022\014\n\004name\030\002 \001(" +
|
||||
"\t\022\014\n\004desc\030\003 \001(\t\022*\n\tmodule_vo\030\004 \001(\0132\027.rac" +
|
||||
"e.RacePaperModuleVO\022\021\n\tseason_id\030\005 \001(\003\022\023" +
|
||||
"\n\013season_name\030\006 \001(\t\022\024\n\014support_copy\030\007 \001(" +
|
||||
"\010\022)\n\013modify_info\030\010 \001(\0132\024.common.ModifyIn" +
|
||||
"foVO\"B\n\021RacePaperCreateVO\022\014\n\004name\030\001 \001(\t\022" +
|
||||
"\014\n\004desc\030\002 \001(\t\022\021\n\tseason_id\030\003 \001(\003\"\275\002\n\021Rac" +
|
||||
"ePaperModuleVO\0224\n\007modules\030\001 \003(\0132#.race.R" +
|
||||
"acePaperModuleVO.PaperModule\032\232\001\n\013PaperMo" +
|
||||
"dule\022\023\n\013module_name\030\001 \001(\t\022\020\n\010duration\030\002 " +
|
||||
"\001(\005\022,\n\005group\030\003 \003(\0132\035.race.RacePaperModul" +
|
||||
"eVO.Group\022\034\n\024module_score_rule_id\030\004 \001(\003\022" +
|
||||
"\030\n\020custom_module_id\030\005 \001(\005\032U\n\005Group\022\020\n\010ta" +
|
||||
"sk_ids\030\001 \003(\003\022,\n\005group\030\002 \003(\0132\035.race.RaceP" +
|
||||
"aperModuleVO.Group\022\014\n\004name\030\003 \001(\tB\033\n\031club" +
|
||||
".joylink.rtss.vo.raceb\006proto3"
|
||||
};
|
||||
descriptor = com.google.protobuf.Descriptors.FileDescriptor
|
||||
.internalBuildGeneratedFileFrom(descriptorData,
|
||||
|
@ -9405,7 +9553,7 @@ public final class RacePaper {
|
|||
internal_static_race_RacePaperMenuVO_SeasonMenu_fieldAccessorTable = new
|
||||
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
|
||||
internal_static_race_RacePaperMenuVO_SeasonMenu_descriptor,
|
||||
new java.lang.String[] { "SeasonId", "SeasonName", "DetailHtmlContent", "Papers", });
|
||||
new java.lang.String[] { "SeasonId", "SeasonName", "DetailHtmlContent", "Papers", "SeasonCode", });
|
||||
internal_static_race_RacePaperMenuVO_PaperMenu_descriptor =
|
||||
internal_static_race_RacePaperMenuVO_descriptor.getNestedTypes().get(1);
|
||||
internal_static_race_RacePaperMenuVO_PaperMenu_fieldAccessorTable = new
|
||||
|
|
Loading…
Reference in New Issue