functest_test.go 463 B

12345678910111213141516171819202122232425
  1. package postgre
  2. import (
  3. "git.beswell.com/gframe/application"
  4. "sportfitness/base/assembly/base/repository"
  5. "testing"
  6. )
  7. func init() {
  8. application.NewDefault()
  9. repository.Init()
  10. Init()
  11. }
  12. func TestAdd(t *testing.T) {
  13. err := FuncTest{}.TestAdd(1, "{\"user_name\":\"王一\", \"usercode\": \"wang1\", \"shopid\": 1}", "XX")
  14. println(err)
  15. }
  16. func TestQuery1(t *testing.T) {
  17. err := FuncTest{}.TestQuery1(1, "{\"user_name\": \"王\"}", "XX")
  18. println(err)
  19. }