protobuf-platform 1.0.33 → 1.0.35

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/game/game.proto CHANGED
@@ -26,23 +26,23 @@ message CategoryItem {
26
26
  }
27
27
  //Category CRUD | Requests
28
28
  message CategoryRequest {
29
- //oneof request {
30
- // string title = 1;
31
- // MetaDataFile metadata = 2;
32
- // string slug = 3;
33
- // int32 category_id = 4;
34
- //}
35
- //int32 id = 5;
36
- //optional string description = 6;
37
- //optional int32 is_active = 7;
38
- //optional File file = 8;
39
29
  oneof request {
40
- string one = 1;
41
- string two = 4;
42
- string three = 2;
43
- string four = 3;
30
+ CategoryItemRequest category_data = 1;
31
+ File file = 2;
44
32
  }
45
33
  }
34
+ message File {
35
+ bytes media = 2;
36
+ }
37
+ message CategoryItemRequest {
38
+ int32 id = 1;
39
+ optional string title = 2;
40
+ optional string slug = 3;
41
+ optional string description = 4;
42
+ optional int32 is_active = 5;
43
+ optional string file_name = 6;
44
+ optional string file_type = 7;
45
+ }
46
46
  message GetCategoryRequest {
47
47
  int32 id = 1;
48
48
  }
@@ -61,11 +61,4 @@ message CategoryListResponse {
61
61
  }
62
62
  message CategoryStatusResponse {
63
63
  string status = 1;
64
- }
65
- message MetaDataFile {
66
- string name = 1;
67
- string type = 2;
68
- }
69
- message File {
70
- bytes content = 1;
71
64
  }