splash.go 651 B

123456789101112131415161718192021222324252627282930
  1. package v1
  2. import (
  3. "context"
  4. v1pb "go-common/app/admin/live/live-admin/api/http/v1"
  5. "go-common/app/admin/live/live-admin/conf"
  6. )
  7. // SplashService struct
  8. type SplashService struct {
  9. conf *conf.Config
  10. // optionally add other properties here, such as dao
  11. // dao *dao.Dao
  12. }
  13. //NewSplashService init
  14. func NewSplashService(c *conf.Config) (s *SplashService) {
  15. s = &SplashService{
  16. conf: c,
  17. }
  18. return s
  19. }
  20. // GetInfo implementation
  21. // 获取有效闪屏配置
  22. // `method:"GET" internal:"true" `
  23. func (s *SplashService) GetInfo(ctx context.Context, req *v1pb.GetInfoReq) (resp *v1pb.GetInfoResp, err error) {
  24. resp = &v1pb.GetInfoResp{}
  25. return
  26. }