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.

25 lines
459 B

package sys
import (
"context"
"shop-api/initialize/api"
"github.com/gin-gonic/gin"
"google.golang.org/protobuf/types/known/emptypb"
"shop-api/global"
"shop-api/model/response"
)
func Test(c *gin.Context) {
ping, err := api.NewGreeterClient(global.PAY_CONN).Ping(context.Background(), &emptypb.Empty{})
if err != nil {
response.FailWithMessage(err.Error(), c)
return
}
response.OkWithData(ping.Message, c)
}
func Test2(c *gin.Context) {
}