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.

32 lines
768 B

  1. // ================================================================================
  2. // Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
  3. // You can delete these comments if you wish manually maintain this interface file.
  4. // ================================================================================
  5. package service
  6. import (
  7. "context"
  8. "link_homework/internal/model/entity"
  9. )
  10. type (
  11. IArticle interface {
  12. GetArticleList(ctx context.Context, name string) (articleList []*entity.FxArticle, err error)
  13. }
  14. )
  15. var (
  16. localArticle IArticle
  17. )
  18. func Article() IArticle {
  19. if localArticle == nil {
  20. panic("implement not found for interface IArticle, forgot register?")
  21. }
  22. return localArticle
  23. }
  24. func RegisterArticle(i IArticle) {
  25. localArticle = i
  26. }