diff --git a/api/v1/timeline_pb2.py b/api/v1/timeline_pb2.py index 79234bb..5d227ad 100644 --- a/api/v1/timeline_pb2.py +++ b/api/v1/timeline_pb2.py @@ -24,7 +24,7 @@ -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x15\x61pi/v1/timeline.proto\x12\x06\x61pi.v1\"\x1c\n\x0cHelloRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\" \n\rHelloResponse\x12\x0f\n\x07message\x18\x01 \x01(\t\"$\n\x16SubjectCollectResponse\x12\n\n\x02ok\x18\x01 \x01(\x08\"%\n\x17SubjectProgressResponse\x12\n\n\x02ok\x18\x01 \x01(\x08\"$\n\x16\x45pisodeCollectResponse\x12\n\n\x02ok\x18\x01 \x01(\x08\"\x9c\x01\n\x07Subject\x12\n\n\x02id\x18\x01 \x01(\r\x12\x10\n\x04type\x18\x02 \x01(\rB\x02\x18\x01\x12\x10\n\x04name\x18\x03 \x01(\tB\x02\x18\x01\x12\x13\n\x07name_cn\x18\x04 \x01(\tB\x02\x18\x01\x12\x11\n\x05image\x18\x05 \x01(\tB\x02\x18\x01\x12\x12\n\x06series\x18\x06 \x01(\x08\x42\x02\x18\x01\x12\x12\n\nvols_total\x18\x07 \x01(\r\x12\x11\n\teps_total\x18\x08 \x01(\r\"`\n\x07\x45pisode\x12\n\n\x02id\x18\x01 \x01(\r\x12\x10\n\x04type\x18\x02 \x01(\rB\x02\x18\x01\x12\x10\n\x04name\x18\x03 \x01(\tB\x02\x18\x01\x12\x13\n\x07name_cn\x18\x04 \x01(\tB\x02\x18\x01\x12\x10\n\x04sort\x18\x05 \x01(\x01\x42\x02\x18\x01\"\x94\x01\n\x15SubjectCollectRequest\x12\x0f\n\x07user_id\x18\x01 \x01(\x04\x12 \n\x07subject\x18\x02 \x01(\x0b\x32\x0f.api.v1.Subject\x12\x12\n\ncollection\x18\x03 \x01(\r\x12\x0f\n\x07\x63omment\x18\x04 \x01(\t\x12\x0c\n\x04rate\x18\x05 \x01(\r\x12\x15\n\rcollection_id\x18\x06 \x01(\x04\"i\n\x15\x45pisodeCollectRequest\x12\x0f\n\x07user_id\x18\x01 \x01(\x04\x12\x1d\n\x04last\x18\x02 \x01(\x0b\x32\x0f.api.v1.Episode\x12 \n\x07subject\x18\x03 \x01(\x0b\x32\x0f.api.v1.Subject\"t\n\x16SubjectProgressRequest\x12\x0f\n\x07user_id\x18\x01 \x01(\x04\x12 \n\x07subject\x18\x02 \x01(\x0b\x32\x0f.api.v1.Subject\x12\x12\n\neps_update\x18\x03 \x01(\r\x12\x13\n\x0bvols_update\x18\x04 \x01(\r2\xc5\x02\n\x0fTimeLineService\x12\x36\n\x05Hello\x12\x14.api.v1.HelloRequest\x1a\x15.api.v1.HelloResponse\"\x00\x12Q\n\x0eSubjectCollect\x12\x1d.api.v1.SubjectCollectRequest\x1a\x1e.api.v1.SubjectCollectResponse\"\x00\x12T\n\x0fSubjectProgress\x12\x1e.api.v1.SubjectProgressRequest\x1a\x1f.api.v1.SubjectProgressResponse\"\x00\x12Q\n\x0e\x45pisodeCollect\x12\x1d.api.v1.EpisodeCollectRequest\x1a\x1e.api.v1.EpisodeCollectResponse\"\x00\x42\x1fZ\x1dgithub.com/bangumi/server/apib\x06proto3') +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x15\x61pi/v1/timeline.proto\x12\x06\x61pi.v1\"\x1c\n\x0cHelloRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\" \n\rHelloResponse\x12\x0f\n\x07message\x18\x01 \x01(\t\"$\n\x16SubjectCollectResponse\x12\n\n\x02ok\x18\x01 \x01(\x08\"%\n\x17SubjectProgressResponse\x12\n\n\x02ok\x18\x01 \x01(\x08\"$\n\x16\x45pisodeCollectResponse\x12\n\n\x02ok\x18\x01 \x01(\x08\"P\n\x07Subject\x12\n\n\x02id\x18\x01 \x01(\r\x12\x0c\n\x04type\x18\x02 \x01(\r\x12\x12\n\nvols_total\x18\x07 \x01(\r\x12\x11\n\teps_total\x18\x08 \x01(\rJ\x04\x08\x03\x10\x07\"\x1b\n\x07\x45pisode\x12\n\n\x02id\x18\x01 \x01(\rJ\x04\x08\x02\x10\x06\"\x94\x01\n\x15SubjectCollectRequest\x12\x0f\n\x07user_id\x18\x01 \x01(\x04\x12 \n\x07subject\x18\x02 \x01(\x0b\x32\x0f.api.v1.Subject\x12\x12\n\ncollection\x18\x03 \x01(\r\x12\x0f\n\x07\x63omment\x18\x04 \x01(\t\x12\x0c\n\x04rate\x18\x05 \x01(\r\x12\x15\n\rcollection_id\x18\x06 \x01(\x04\"i\n\x15\x45pisodeCollectRequest\x12\x0f\n\x07user_id\x18\x01 \x01(\x04\x12\x1d\n\x04last\x18\x02 \x01(\x0b\x32\x0f.api.v1.Episode\x12 \n\x07subject\x18\x03 \x01(\x0b\x32\x0f.api.v1.Subject\"t\n\x16SubjectProgressRequest\x12\x0f\n\x07user_id\x18\x01 \x01(\x04\x12 \n\x07subject\x18\x02 \x01(\x0b\x32\x0f.api.v1.Subject\x12\x12\n\neps_update\x18\x03 \x01(\r\x12\x13\n\x0bvols_update\x18\x04 \x01(\r2\xc5\x02\n\x0fTimeLineService\x12\x36\n\x05Hello\x12\x14.api.v1.HelloRequest\x1a\x15.api.v1.HelloResponse\"\x00\x12Q\n\x0eSubjectCollect\x12\x1d.api.v1.SubjectCollectRequest\x1a\x1e.api.v1.SubjectCollectResponse\"\x00\x12T\n\x0fSubjectProgress\x12\x1e.api.v1.SubjectProgressRequest\x1a\x1f.api.v1.SubjectProgressResponse\"\x00\x12Q\n\x0e\x45pisodeCollect\x12\x1d.api.v1.EpisodeCollectRequest\x1a\x1e.api.v1.EpisodeCollectResponse\"\x00\x42\x1fZ\x1dgithub.com/bangumi/server/apib\x06proto3') _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) @@ -32,24 +32,6 @@ if not _descriptor._USE_C_DESCRIPTORS: _globals['DESCRIPTOR']._loaded_options = None _globals['DESCRIPTOR']._serialized_options = b'Z\035github.com/bangumi/server/api' - _globals['_SUBJECT'].fields_by_name['type']._loaded_options = None - _globals['_SUBJECT'].fields_by_name['type']._serialized_options = b'\030\001' - _globals['_SUBJECT'].fields_by_name['name']._loaded_options = None - _globals['_SUBJECT'].fields_by_name['name']._serialized_options = b'\030\001' - _globals['_SUBJECT'].fields_by_name['name_cn']._loaded_options = None - _globals['_SUBJECT'].fields_by_name['name_cn']._serialized_options = b'\030\001' - _globals['_SUBJECT'].fields_by_name['image']._loaded_options = None - _globals['_SUBJECT'].fields_by_name['image']._serialized_options = b'\030\001' - _globals['_SUBJECT'].fields_by_name['series']._loaded_options = None - _globals['_SUBJECT'].fields_by_name['series']._serialized_options = b'\030\001' - _globals['_EPISODE'].fields_by_name['type']._loaded_options = None - _globals['_EPISODE'].fields_by_name['type']._serialized_options = b'\030\001' - _globals['_EPISODE'].fields_by_name['name']._loaded_options = None - _globals['_EPISODE'].fields_by_name['name']._serialized_options = b'\030\001' - _globals['_EPISODE'].fields_by_name['name_cn']._loaded_options = None - _globals['_EPISODE'].fields_by_name['name_cn']._serialized_options = b'\030\001' - _globals['_EPISODE'].fields_by_name['sort']._loaded_options = None - _globals['_EPISODE'].fields_by_name['sort']._serialized_options = b'\030\001' _globals['_HELLOREQUEST']._serialized_start=33 _globals['_HELLOREQUEST']._serialized_end=61 _globals['_HELLORESPONSE']._serialized_start=63 @@ -60,16 +42,16 @@ _globals['_SUBJECTPROGRESSRESPONSE']._serialized_end=172 _globals['_EPISODECOLLECTRESPONSE']._serialized_start=174 _globals['_EPISODECOLLECTRESPONSE']._serialized_end=210 - _globals['_SUBJECT']._serialized_start=213 - _globals['_SUBJECT']._serialized_end=369 - _globals['_EPISODE']._serialized_start=371 - _globals['_EPISODE']._serialized_end=467 - _globals['_SUBJECTCOLLECTREQUEST']._serialized_start=470 - _globals['_SUBJECTCOLLECTREQUEST']._serialized_end=618 - _globals['_EPISODECOLLECTREQUEST']._serialized_start=620 - _globals['_EPISODECOLLECTREQUEST']._serialized_end=725 - _globals['_SUBJECTPROGRESSREQUEST']._serialized_start=727 - _globals['_SUBJECTPROGRESSREQUEST']._serialized_end=843 - _globals['_TIMELINESERVICE']._serialized_start=846 - _globals['_TIMELINESERVICE']._serialized_end=1171 + _globals['_SUBJECT']._serialized_start=212 + _globals['_SUBJECT']._serialized_end=292 + _globals['_EPISODE']._serialized_start=294 + _globals['_EPISODE']._serialized_end=321 + _globals['_SUBJECTCOLLECTREQUEST']._serialized_start=324 + _globals['_SUBJECTCOLLECTREQUEST']._serialized_end=472 + _globals['_EPISODECOLLECTREQUEST']._serialized_start=474 + _globals['_EPISODECOLLECTREQUEST']._serialized_end=579 + _globals['_SUBJECTPROGRESSREQUEST']._serialized_start=581 + _globals['_SUBJECTPROGRESSREQUEST']._serialized_end=697 + _globals['_TIMELINESERVICE']._serialized_start=700 + _globals['_TIMELINESERVICE']._serialized_end=1025 # @@protoc_insertion_point(module_scope) diff --git a/api/v1/timeline_pb2.pyi b/api/v1/timeline_pb2.pyi index 3427306..baf4d0c 100644 --- a/api/v1/timeline_pb2.pyi +++ b/api/v1/timeline_pb2.pyi @@ -35,38 +35,22 @@ class EpisodeCollectResponse(_message.Message): def __init__(self, ok: bool = ...) -> None: ... class Subject(_message.Message): - __slots__ = ("id", "type", "name", "name_cn", "image", "series", "vols_total", "eps_total") + __slots__ = ("id", "type", "vols_total", "eps_total") ID_FIELD_NUMBER: _ClassVar[int] TYPE_FIELD_NUMBER: _ClassVar[int] - NAME_FIELD_NUMBER: _ClassVar[int] - NAME_CN_FIELD_NUMBER: _ClassVar[int] - IMAGE_FIELD_NUMBER: _ClassVar[int] - SERIES_FIELD_NUMBER: _ClassVar[int] VOLS_TOTAL_FIELD_NUMBER: _ClassVar[int] EPS_TOTAL_FIELD_NUMBER: _ClassVar[int] id: int type: int - name: str - name_cn: str - image: str - series: bool vols_total: int eps_total: int - def __init__(self, id: _Optional[int] = ..., type: _Optional[int] = ..., name: _Optional[str] = ..., name_cn: _Optional[str] = ..., image: _Optional[str] = ..., series: bool = ..., vols_total: _Optional[int] = ..., eps_total: _Optional[int] = ...) -> None: ... + def __init__(self, id: _Optional[int] = ..., type: _Optional[int] = ..., vols_total: _Optional[int] = ..., eps_total: _Optional[int] = ...) -> None: ... class Episode(_message.Message): - __slots__ = ("id", "type", "name", "name_cn", "sort") + __slots__ = ("id",) ID_FIELD_NUMBER: _ClassVar[int] - TYPE_FIELD_NUMBER: _ClassVar[int] - NAME_FIELD_NUMBER: _ClassVar[int] - NAME_CN_FIELD_NUMBER: _ClassVar[int] - SORT_FIELD_NUMBER: _ClassVar[int] id: int - type: int - name: str - name_cn: str - sort: float - def __init__(self, id: _Optional[int] = ..., type: _Optional[int] = ..., name: _Optional[str] = ..., name_cn: _Optional[str] = ..., sort: _Optional[float] = ...) -> None: ... + def __init__(self, id: _Optional[int] = ...) -> None: ... class SubjectCollectRequest(_message.Message): __slots__ = ("user_id", "subject", "collection", "comment", "rate", "collection_id") diff --git a/proto b/proto index 1818d37..7475c4b 160000 --- a/proto +++ b/proto @@ -1 +1 @@ -Subproject commit 1818d37157ba0fd274d95792d08f8734897f684d +Subproject commit 7475c4b237d2541de47d726ded88560405f17013