17 lines
308 B
Go
17 lines
308 B
Go
package dddexample
|
|
|
|
import (
|
|
"dddexample/normal/controller"
|
|
"dddexample/pkg/interfaces"
|
|
"github.com/gin-gonic/gin"
|
|
)
|
|
|
|
func main() {
|
|
//使用默认gin路由
|
|
r := gin.Default()
|
|
|
|
r.POST("test1", controller.Transfer) //详情,微信购买
|
|
r.POST("test2", interfaces.Transfer) //详情,微信购买
|
|
|
|
}
|