sys_post.go 1.0 KB

12345678910111213141516171819202122232425262728293031323334
  1. // ================================================================================
  2. // Code generated 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. "github.com/tiger1103/gfast/v3/api/v1/system"
  9. "github.com/tiger1103/gfast/v3/internal/app/system/model/entity"
  10. )
  11. type ISysPost interface {
  12. List(ctx context.Context, req *system.PostSearchReq) (res *system.PostSearchRes, err error)
  13. Add(ctx context.Context, req *system.PostAddReq) (err error)
  14. Edit(ctx context.Context, req *system.PostEditReq) (err error)
  15. Delete(ctx context.Context, ids []int) (err error)
  16. GetUsedPost(ctx context.Context) (list []*entity.SysPost, err error)
  17. }
  18. var localSysPost ISysPost
  19. func SysPost() ISysPost {
  20. if localSysPost == nil {
  21. panic("implement not found for interface ISysPost, forgot register?")
  22. }
  23. return localSysPost
  24. }
  25. func RegisterSysPost(i ISysPost) {
  26. localSysPost = i
  27. }