任务rpc
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.

30 lines
468 B

2 years ago
2 years ago
2 years ago
2 years ago
  1. package taskrpc
  2. import (
  3. "testing"
  4. )
  5. func Test_DoTask(t *testing.T) {
  6. dbname := "shop"
  7. siteid := "1198881"
  8. userid := "532"
  9. task_type := "vip"
  10. list, err := DoTask(dbname,siteid,userid,task_type)
  11. t.Log(list)
  12. t.Log(err)
  13. }
  14. func Test_DoCycleTask(t *testing.T) {
  15. dbname := "shop"
  16. siteid := "1198881"
  17. userid := "19"
  18. task_id := "43"
  19. task_category := "normal"
  20. list, err := DoCycleTask(dbname,siteid,userid,task_id,task_category)
  21. t.Log(list)
  22. t.Log(err)
  23. }