mirror of
https://github.com/cuigh/swirl
synced 2025-01-02 17:16:37 +00:00
36 lines
1.2 KiB
Go
36 lines
1.2 KiB
Go
package model
|
|
|
|
import "time"
|
|
|
|
type Archive 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 ArchiveListArgs struct {
|
|
Name string `query:"name"`
|
|
PageIndex int `query:"page"`
|
|
PageSize int `query:"size"`
|
|
}
|
|
|
|
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 {
|
|
Name string `query:"name"`
|
|
PageIndex int `query:"page"`
|
|
PageSize int `query:"size"`
|
|
}
|