This repository has been archived by the owner on Feb 21, 2022. It is now read-only.
/
request.go
74 lines (62 loc) · 1.79 KB
/
request.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
// Code generated by entc, DO NOT EDIT.
package http
import (
"github.com/google/uuid"
collar "github.com/masseelch/elk/internal/simple/ent/collar"
)
// Payload of a ent.Category create request.
type CategoryCreateRequest struct {
Name *string `json:"name"`
Pets []string `json:"pets"`
}
// Payload of a ent.Category update request.
type CategoryUpdateRequest struct {
Name *string `json:"name"`
Pets []string `json:"pets"`
}
// Payload of a ent.Collar create request.
type CollarCreateRequest struct {
Color *collar.Color `json:"color"`
Pet *string `json:"pet"`
}
// Payload of a ent.Collar update request.
type CollarUpdateRequest struct {
Color *collar.Color `json:"color"`
Pet *string `json:"pet"`
}
// Payload of a ent.Media create request.
type MediaCreateRequest struct {
}
// Payload of a ent.Media update request.
type MediaUpdateRequest struct {
}
// Payload of a ent.Owner create request.
type OwnerCreateRequest struct {
Name *string `json:"name"`
Age *int `json:"age"`
Pets []string `json:"pets"`
}
// Payload of a ent.Owner update request.
type OwnerUpdateRequest struct {
Name *string `json:"name"`
Age *int `json:"age"`
Pets []string `json:"pets"`
}
// Payload of a ent.Pet create request.
type PetCreateRequest struct {
Name *string `json:"name"`
Age *int `json:"age"`
Collar *int `json:"collar"`
Categories []uint64 `json:"categories"`
Owner *uuid.UUID `json:"owner"`
Friends []string `json:"friends"`
}
// Payload of a ent.Pet update request.
type PetUpdateRequest struct {
Name *string `json:"name"`
Age *int `json:"age"`
Collar *int `json:"collar"`
Categories []uint64 `json:"categories"`
Owner *uuid.UUID `json:"owner"`
Friends []string `json:"friends"`
}