package test

import (
	"{{.ProjectName}}/gen/go/service"
	"fusen-basic/utils/log"
	"testing"
)

// 只需要填写参数
func init() {
	{{.RequestVar}} = &service.{{.RequestStruct}}{}
}

func Test{{.MethodName}}HTTP(t *testing.T) {
	// 构建请求体
	resp, err := {{.MethodName}}Http(nil)
	if err != nil {
		t.Error(err)
	}
	log.Println(resp)
}

func Test{{.MethodName}}RPC(t *testing.T) {
	resp, err := {{.MethodName}}RPC()
	if err != nil {
		t.Error(err)
	}
	log.Println(resp)
}