added
domain
This commit is contained in:
parent
3a0d5cb590
commit
aaa506f240
27
proxy/domain/domain_service.go
Normal file
27
proxy/domain/domain_service.go
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
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) {
|
||||||
|
|
||||||
|
|
||||||
|
}
|
1
proxy/domain/domain_service_test.go
Normal file
1
proxy/domain/domain_service_test.go
Normal file
@ -0,0 +1 @@
|
|||||||
|
package domain
|
Loading…
x
Reference in New Issue
Block a user