feat:优化项目信息

This commit is contained in:
henry
2022-02-15 17:19:23 +08:00
parent cbc0ad1a41
commit dcb5948e91
45 changed files with 852 additions and 100 deletions

View File

@ -140,6 +140,13 @@ func registerAPI(app *gin.Engine) {
technologyV1.POST("/product", _api.Product)
technologyV1.POST("/product/detail", _api.ProductDetail)
}
// Payment 支付管理
paymentV1 := v1.Group("/payment")
{
_api := new(api2.Payment)
paymentV1.POST("/launch", _api.Launch)
paymentV1.POST("/callback", _api.Callback)
}
}
// registerAdminAPI 注册API
@ -405,6 +412,13 @@ func registerAdminAPI(app *gin.Engine) {
activity.POST("/apply/handle", _api.ApplyHandle)
activity.POST("/apply/delete", _api.ApplyDelete)
}
// Order 订单管理
order := v1.Group("/order")
{
_api := new(api1.Order)
order.POST("", _api.Instance)
order.POST("/detail", _api.Detail)
}
// Logs 日志管理
log := v1.Group("/log")
{
@ -424,9 +438,11 @@ func registerEnterpriseAPI(app *gin.Engine) {
apiPrefix + "/v1/account/login",
apiPrefix + "/v1/account/register",
apiPrefix + "/v1/account/authorize",
apiPrefix + "/v1/account/logout",
apiPrefix + "/v1/account/reset/password",
apiPrefix + "/v1/sms/captcha",
apiPrefix + "/v1/sms/captcha/validate",
apiPrefix + "/v1/payment/callback",
}...)))
v1.Use(NeedAuthIdentity())
@ -448,6 +464,7 @@ func registerEnterpriseAPI(app *gin.Engine) {
smsV1.POST("/captcha", _api.Captcha)
smsV1.POST("/captcha/validate", _api.CaptchaValidate)
}
// Account 账号管理
accountV1 := v1.Group("/account")
{