You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
514 B
29 lines
514 B
package domain |
|
|
|
import ( |
|
"go-common/app/interface/main/app-resource/conf" |
|
"go-common/app/interface/main/app-resource/model/domain" |
|
) |
|
|
|
// Service domain service. |
|
type Service struct { |
|
c *conf.Config |
|
domains []string |
|
} |
|
|
|
// New new domain service. |
|
func New(c *conf.Config) (s *Service) { |
|
s = &Service{ |
|
c: c, |
|
} |
|
return |
|
} |
|
|
|
// Domain get domain all |
|
func (s *Service) Domain() (res *domain.Domain) { |
|
res = &domain.Domain{ |
|
Domains: s.c.Domain.Addr, |
|
ImageDomains: s.c.Domain.ImageAddr, |
|
} |
|
return |
|
}
|
|
|