|
1 |
| -// Code generated by go-swagger; DO NOT EDIT. |
2 |
| - |
3 | 1 | package models
|
4 | 2 |
|
| 3 | +import "github.com/go-openapi/strfmt" |
| 4 | + |
5 | 5 | // This file was generated by the swagger tool.
|
6 | 6 | // Editing this file might prove futile when you re-run the swagger generate command
|
7 | 7 |
|
8 |
| -import ( |
9 |
| - strfmt "github.com/go-openapi/strfmt" |
10 |
| - |
11 |
| - "github.com/go-openapi/errors" |
12 |
| - "github.com/go-openapi/swag" |
13 |
| -) |
| 8 | +/*AccessToken access token |
14 | 9 |
|
15 |
| -// AccessToken access token |
16 |
| -// swagger:model accessToken |
| 10 | +swagger:model accessToken |
| 11 | +*/ |
17 | 12 | type AccessToken struct {
|
18 | 13 |
|
19 |
| - // access token |
| 14 | + /* access token |
| 15 | + */ |
20 | 16 | AccessToken string `json:"access_token,omitempty"`
|
21 | 17 |
|
22 |
| - // created at |
| 18 | + /* created at |
| 19 | + */ |
23 | 20 | CreatedAt string `json:"created_at,omitempty"`
|
24 | 21 |
|
25 |
| - // id |
| 22 | + /* id |
| 23 | + */ |
26 | 24 | ID string `json:"id,omitempty"`
|
27 | 25 |
|
28 |
| - // user email |
| 26 | + /* user email |
| 27 | + */ |
29 | 28 | UserEmail string `json:"user_email,omitempty"`
|
30 | 29 |
|
31 |
| - // user id |
| 30 | + /* user id |
| 31 | + */ |
32 | 32 | UserID string `json:"user_id,omitempty"`
|
33 | 33 | }
|
34 | 34 |
|
35 | 35 | // Validate validates this access token
|
36 | 36 | func (m *AccessToken) Validate(formats strfmt.Registry) error {
|
37 |
| - var res []error |
38 |
| - |
39 |
| - if len(res) > 0 { |
40 |
| - return errors.CompositeValidationError(res...) |
41 |
| - } |
42 |
| - return nil |
43 |
| -} |
44 |
| - |
45 |
| -// MarshalBinary interface implementation |
46 |
| -func (m *AccessToken) MarshalBinary() ([]byte, error) { |
47 |
| - if m == nil { |
48 |
| - return nil, nil |
49 |
| - } |
50 |
| - return swag.WriteJSON(m) |
51 |
| -} |
52 |
| - |
53 |
| -// UnmarshalBinary interface implementation |
54 |
| -func (m *AccessToken) UnmarshalBinary(b []byte) error { |
55 |
| - var res AccessToken |
56 |
| - if err := swag.ReadJSON(b, &res); err != nil { |
57 |
| - return err |
58 |
| - } |
59 |
| - *m = res |
60 | 37 | return nil
|
61 | 38 | }
|
0 commit comments