1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- package appeal
- import (
- "context"
- "go-common/app/interface/main/creative/conf"
- "go-common/app/interface/main/creative/dao/account"
- "go-common/app/interface/main/creative/dao/appeal"
- "go-common/app/interface/main/creative/dao/archive"
- "go-common/app/interface/main/creative/dao/tag"
- "go-common/app/interface/main/creative/service"
- )
- //Service struct
- type Service struct {
- c *conf.Config
- ap *appeal.Dao
- arc *archive.Dao
- acc *account.Dao
- tag *tag.Dao
- appealTag int64
- }
- //New get service
- func New(c *conf.Config, rpcdaos *service.RPCDaos) *Service {
- s := &Service{
- c: c,
- ap: appeal.New(c),
- arc: rpcdaos.Arc,
- acc: rpcdaos.Acc,
- tag: tag.New(c),
- appealTag: c.AppealTag,
- }
- return s
- }
- // Ping service
- func (s *Service) Ping(c context.Context) (err error) {
- return
- }
- // Close dao
- func (s *Service) Close() {
- }
|