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.
44 lines
901 B
44 lines
901 B
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() { |
|
}
|
|
|