Initial commit

This commit is contained in:
Donny
2019-04-22 20:46:32 +08:00
commit 49ab8aadd1
25441 changed files with 4055000 additions and 0 deletions

View File

@@ -0,0 +1,29 @@
package dao
import (
"testing"
"go-common/app/admin/ep/melloi/model"
. "github.com/smartystreets/goconvey/convey"
)
var (
oa = model.OrderAdmin{
UserName: "hujianping",
}
)
func Test_OrderAdmin(t *testing.T) {
Convey("test AddOrderAdmin", t, func() {
err := d.AddOrderAdmin(&oa)
So(err, ShouldBeNil)
})
Convey("test QueryOrderAdmin", t, func() {
var admin *model.OrderAdmin
admin, _ = d.QueryOrderAdmin(oa.UserName)
So(admin, ShouldNotBeNil)
})
}