| 12345678910111213141516171819202122232425262728293031 |
- package test
- import (
- "fmt"
- "git.rtzhtech.cn/iss/public-lib/dto"
- "git.rtzhtech.cn/iss/public-lib/logic"
- "testing"
- )
- func newLinkEventReq() *dto.GetLinkEventReq {
- req := &dto.GetLinkEventReq{}
- req.Page = 1
- req.Limit = 3
- //req.SrcAppId = []int32{1, 123}
- req.StartTime = "2022-08-01 00:01:01"
- req.EndTime = "2022-08-01 23:59:59"
- return req
- }
- func TestGetLinkEvent(t *testing.T) {
- l := logic.NewLinkEventLogic()
- out, err := l.GetLinkEvent(newLinkEventReq())
- if err != nil {
- t.Errorf("TestPage:%v\n", err)
- }
- fmt.Printf("total:%d\n", out.Total)
- for _, v := range out.List {
- fmt.Println(v)
- }
- }
|