9 changed files with 121 additions and 7 deletions
-
4api/v1/couponusers/couponUsers.go
-
3internal/cmd/cmd.go
-
3internal/consts/consts.go
-
45internal/controller/couponusers/couponUsers.go
-
52internal/logic/couponusers/couponUsers.go
-
1internal/logic/logic.go
-
10internal/logic/middleware/interceptor.go
-
2internal/service/couponusers.go
-
8internal/service/middleware.go
@ -0,0 +1,10 @@ |
|||
package middleware |
|||
|
|||
import ( |
|||
"github.com/gogf/gf/v2/net/ghttp" |
|||
) |
|||
|
|||
func MiddlewareCORS(r *ghttp.Request) { |
|||
r.Response.CORSDefault() |
|||
r.Middleware.Next() |
|||
} |
@ -0,0 +1,8 @@ |
|||
// ================================================================================
|
|||
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
|
|||
// You can delete these comments if you wish manually maintain this interface file.
|
|||
// ================================================================================
|
|||
|
|||
package service |
|||
|
|||
type () |
Write
Preview
Loading…
Cancel
Save
Reference in new issue