reply_test.go 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. package model
  2. // type replyCommon struct {
  3. // Message string `json:"message"`
  4. // Code int `json:"code"`
  5. // Data interface{} `json:"data"`
  6. // }
  7. // func createReply(data interface{}) *replyCommon {
  8. // return &replyCommon{
  9. // Message: "",
  10. // Code: 0,
  11. // Data: data,
  12. // }
  13. // }
  14. // func printReply(data interface{}) {
  15. // var r = createReply(data)
  16. // var result, _ = json.MarshalIndent(r, "", " ")
  17. // fmt.Printf(string(result) + "\n")
  18. // }
  19. // var now = xtime.Time(time.Now().Unix())
  20. // func TestMcnGetMcnFansReply(t *testing.T) {
  21. // var reply = McnGetMcnFansReply{Result: []*McnGetMcnFansInfo{
  22. // {
  23. // FansOverview: &dtmdl.DmConMcnFansD{LogDate: now},
  24. // FansSex: &dtmdl.DmConMcnFansSexW{LogDate: now},
  25. // FansAge: &dtmdl.DmConMcnFansAgeW{LogDate: now},
  26. // FansPlayWay: &dtmdl.DmConMcnFansPlayWayW{LogDate: now},
  27. // FansArea: []*dtmdl.DmConMcnFansAreaW{{LogDate: now}},
  28. // FansType: []*dtmdl.DmConMcnFansTypeW{{LogDate: now}},
  29. // FansTag: []*dtmdl.DmConMcnFansTagW{{LogDate: now}},
  30. // },
  31. // }}
  32. // printReply(&reply)
  33. // }