2017-09-26 12:50:09 +00:00
|
|
|
package model
|
|
|
|
|
|
|
|
import "time"
|
|
|
|
|
|
|
|
type Archive struct {
|
2017-11-14 08:05:46 +00:00
|
|
|
ID string `bson:"_id" json:"id,omitempty" bind:"id=path"`
|
2017-09-26 12:50:09 +00:00
|
|
|
Name string `bson:"name" json:"name,omitempty"`
|
2017-11-14 08:05:46 +00:00
|
|
|
Content string `bson:"content" json:"content,omitempty" bind:"content=form,content=file"`
|
2017-09-26 12:50:09 +00:00
|
|
|
CreatedBy string `bson:"created_by" json:"created_by,omitempty"`
|
|
|
|
CreatedAt time.Time `bson:"created_at" json:"created_at,omitempty"`
|
|
|
|
UpdatedBy string `bson:"updated_by" json:"updated_by,omitempty"`
|
|
|
|
UpdatedAt time.Time `bson:"updated_at" json:"updated_at,omitempty"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type ArchiveListArgs struct {
|
2017-11-08 10:36:13 +00:00
|
|
|
Name string `bind:"name"`
|
|
|
|
PageIndex int `bind:"page"`
|
|
|
|
PageSize int `bind:"size"`
|
2017-09-26 12:50:09 +00:00
|
|
|
}
|
2017-10-09 13:02:41 +00:00
|
|
|
|
2018-04-16 09:21:20 +00:00
|
|
|
type Stack struct {
|
|
|
|
Name string `bson:"_id" json:"name,omitempty"`
|
|
|
|
Content string `bson:"content" json:"content,omitempty" bind:"content=form,content=file"`
|
|
|
|
CreatedBy string `bson:"created_by" json:"created_by,omitempty"`
|
|
|
|
CreatedAt time.Time `bson:"created_at" json:"created_at,omitempty"`
|
|
|
|
UpdatedBy string `bson:"updated_by" json:"updated_by,omitempty"`
|
|
|
|
UpdatedAt time.Time `bson:"updated_at" json:"updated_at,omitempty"`
|
|
|
|
Services []string `bson:"-" json:"services,omitempty"`
|
|
|
|
Internal bool `bson:"-" json:"internal"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type StackListArgs struct {
|
|
|
|
Name string `bind:"name"`
|
|
|
|
Filter string `bind:"filter"`
|
|
|
|
}
|
|
|
|
|
2017-10-09 13:02:41 +00:00
|
|
|
type Template struct {
|
|
|
|
ID string `bson:"_id" json:"id,omitempty"`
|
|
|
|
Name string `bson:"name" json:"name,omitempty"`
|
|
|
|
Content string `bson:"content" json:"content,omitempty"`
|
|
|
|
CreatedBy string `bson:"created_by" json:"created_by,omitempty"`
|
|
|
|
CreatedAt time.Time `bson:"created_at" json:"created_at,omitempty"`
|
|
|
|
UpdatedBy string `bson:"updated_by" json:"updated_by,omitempty"`
|
|
|
|
UpdatedAt time.Time `bson:"updated_at" json:"updated_at,omitempty"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type TemplateListArgs struct {
|
2017-11-08 10:36:13 +00:00
|
|
|
Name string `bind:"name"`
|
|
|
|
PageIndex int `bind:"page"`
|
|
|
|
PageSize int `bind:"size"`
|
2017-10-09 13:02:41 +00:00
|
|
|
}
|