This repository has been archived by the owner on Feb 5, 2024. It is now read-only.
/
openpitrix_modify_app_request.go
79 lines (59 loc) · 1.85 KB
/
openpitrix_modify_app_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
75
76
77
78
79
// Code generated by go-swagger; DO NOT EDIT.
package models
// This file was generated by the swagger tool.
// Editing this file might prove futile when you re-run the swagger generate command
import (
strfmt "github.com/go-openapi/strfmt"
"github.com/go-openapi/errors"
"github.com/go-openapi/swag"
)
// OpenpitrixModifyAppRequest openpitrix modify app request
// swagger:model openpitrixModifyAppRequest
type OpenpitrixModifyAppRequest struct {
// abstraction of app
Abstraction string `json:"abstraction,omitempty"`
// required, id of app to modify
AppID string `json:"app_id,omitempty"`
// category id of the app
CategoryID string `json:"category_id,omitempty"`
// description of the app
Description string `json:"description,omitempty"`
// home page of the app
Home string `json:"home,omitempty"`
// key words of the app
Keywords string `json:"keywords,omitempty"`
// maintainers who maintainer the app
Maintainers string `json:"maintainers,omitempty"`
// name of the app
Name string `json:"name,omitempty"`
// instructions of the app
Readme string `json:"readme,omitempty"`
// sources of app
Sources string `json:"sources,omitempty"`
// tos of app
Tos string `json:"tos,omitempty"`
}
// Validate validates this openpitrix modify app request
func (m *OpenpitrixModifyAppRequest) Validate(formats strfmt.Registry) error {
var res []error
if len(res) > 0 {
return errors.CompositeValidationError(res...)
}
return nil
}
// MarshalBinary interface implementation
func (m *OpenpitrixModifyAppRequest) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
return swag.WriteJSON(m)
}
// UnmarshalBinary interface implementation
func (m *OpenpitrixModifyAppRequest) UnmarshalBinary(b []byte) error {
var res OpenpitrixModifyAppRequest
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
*m = res
return nil
}