company.go 371 字节
package domain

type Company struct {
	Id    int64  `json:"id"`
	Name  string `json:"name"`
	Phone string `json:"phone"`
}

type CompanyRepository interface {
	Save(dm *Company) (*Company, error)
	Remove(dm *Company) (*Company, error)
	FindOne(queryOptions map[string]interface{}) (*Company, error)
	Find(queryOptions map[string]interface{}) (int64, []*Company, error)
}