package domain import ( "encoding/json" "loafle.com/overflow/commons_go/model/timestamp" ) type Domain struct { Id json.Number `json:"id,Number,omitempty"` Name string `json:"name,omitempty"` CreateDate timestamp.Timestamp `json:"createDate,omitempty"` } type DomainService struct { } func NewDomainService() *DomainService { return &DomainService{} } func (d *DomainService)Create(dm *Domain) (string, error) { return "", nil }