mirror of
https://github.com/APIParkLab/APIPark.git
synced 2026-06-14 20:41:15 +08:00
29 lines
385 B
Go
29 lines
385 B
Go
package tag
|
|
|
|
import (
|
|
"time"
|
|
|
|
"github.com/APIParkLab/APIPark/stores/tag"
|
|
)
|
|
|
|
type Tag struct {
|
|
Id string
|
|
Name string
|
|
CreateTime time.Time
|
|
UpdateTime time.Time
|
|
}
|
|
|
|
func FromEntity(e *tag.Tag) *Tag {
|
|
return &Tag{
|
|
Id: e.UUID,
|
|
Name: e.Name,
|
|
CreateTime: e.CreateAt,
|
|
UpdateTime: e.UpdateAt,
|
|
}
|
|
}
|
|
|
|
type CreateTag struct {
|
|
Id string
|
|
Name string
|
|
}
|