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.

34 lines
971 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/api/v1/ClientPage"
  9. )
  10. type (
  11. IClient interface {
  12. ClientGetHomeworkList(ctx context.Context) (homeworkList []ClientPage.GetHomeworkListRse, err error)
  13. GetHomeworkQuestion(ctx context.Context, groupId int) (questions []ClientPage.GetHomeworkQuestionRes, err error)
  14. CommitHomework(ctx context.Context, req ClientPage.CommitHomeworkReq, jwcode int) (err error)
  15. }
  16. )
  17. var (
  18. localClient IClient
  19. )
  20. func Client() IClient {
  21. if localClient == nil {
  22. panic("implement not found for interface IClient, forgot register?")
  23. }
  24. return localClient
  25. }
  26. func RegisterClient(i IClient) {
  27. localClient = i
  28. }