getleadtup.go 626 B

123456789101112131415161718192021222324252627282930313233
  1. package main
  2. import "surdeus.su/core/cli/mtool"
  3. import "surdeus.su/core/amo"
  4. import "surdeus.su/core/ss/urlenc"
  5. type LeadTupleGetter struct{}
  6. func (l LeadTupleGetter) GetValues(
  7. c *amo.Client,
  8. opts ...urlenc.Builder,
  9. ) (
  10. []amo.LeadTuple,
  11. amo.NextFunc[[]amo.LeadTuple],
  12. error,
  13. ) {
  14. return c.GetLeadTuples(opts...)
  15. }
  16. func (l LeadTupleGetter) GetNameMul() string {
  17. return "lead tuples"
  18. }
  19. func (l LeadTupleGetter) GetFuncName() string {
  20. return "amo.GetLeadTuples"
  21. }
  22. var getLeadTuple = mtool.T("get-lead-tuples").Func(func(
  23. flags *mtool.Flags,
  24. ){
  25. RunGetter(LeadTupleGetter{}, flags)
  26. }).Usage(
  27. "[id1 id2 ... idN]",
  28. )