-
Notifications
You must be signed in to change notification settings - Fork 0
/
user_types.go
35 lines (31 loc) · 1 KB
/
user_types.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
// Code generated by goagen v1.3.0, DO NOT EDIT.
//
// API "celler": Application User Types
//
// Command:
// $ goagen
// --design=github.com/ReSTARTR/goa-gorm-sample/design
// --out=$(GOPATH)/src/github.com/ReSTARTR/goa-gorm-sample
// --version=v1.3.0
package app
// userPayload user type.
type userPayload struct {
Description *string `form:"description,omitempty" json:"description,omitempty" xml:"description,omitempty"`
Title *string `form:"title,omitempty" json:"title,omitempty" xml:"title,omitempty"`
}
// Publicize creates UserPayload from userPayload
func (ut *userPayload) Publicize() *UserPayload {
var pub UserPayload
if ut.Description != nil {
pub.Description = ut.Description
}
if ut.Title != nil {
pub.Title = ut.Title
}
return &pub
}
// UserPayload user type.
type UserPayload struct {
Description *string `form:"description,omitempty" json:"description,omitempty" xml:"description,omitempty"`
Title *string `form:"title,omitempty" json:"title,omitempty" xml:"title,omitempty"`
}