logic_test.go 272 B

1234567891011121314
  1. package user
  2. import (
  3. "context"
  4. "fmt"
  5. "testing"
  6. "git.i2edu.net/i2/i2-bill-api/internal/logic/auth"
  7. )
  8. func TestCreateJWT(t *testing.T) {
  9. l := auth.NewLoginByWeixinLogic(context.TODO(), ctx)
  10. fmt.Println(l.CreateJWT(1624415746, c.JwtAuth.AccessSecret, nil, 1000))
  11. }