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.
27 lines
536 B
27 lines
536 B
package service |
|
|
|
import ( |
|
"context" |
|
"encoding/json" |
|
"testing" |
|
|
|
"go-common/app/interface/main/space/model" |
|
|
|
. "github.com/smartystreets/goconvey/convey" |
|
) |
|
|
|
func TestService_AppIndex(t *testing.T) { |
|
Convey("test app acc info", t, WithService(func(s *Service) { |
|
arg := &model.AppIndexArg{ |
|
Vmid: 15555180, |
|
Mid: 0, |
|
Platform: "ios", |
|
Qn: 16, |
|
Device: _devicePad, |
|
} |
|
data, err := s.AppIndex(context.Background(), arg) |
|
So(err, ShouldBeNil) |
|
str, _ := json.Marshal(data) |
|
Println(string(str)) |
|
})) |
|
}
|
|
|