commit
b35dad2dcb
@ -1,4 +1,4 @@
|
|||||||
module github.com/opentdp/wechat-rest
|
module wechat-rest
|
||||||
|
|
||||||
go 1.21
|
go 1.21
|
||||||
|
|
||||||
|
@ -4,7 +4,8 @@ import (
|
|||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"github.com/gin-gonic/gin"
|
"github.com/gin-gonic/gin"
|
||||||
"github.com/opentdp/wechat-rest/args"
|
|
||||||
|
"wechat-rest/args"
|
||||||
)
|
)
|
||||||
|
|
||||||
func AuthGuard(c *gin.Context) {
|
func AuthGuard(c *gin.Context) {
|
||||||
|
@ -3,9 +3,9 @@ package httpd
|
|||||||
import (
|
import (
|
||||||
"github.com/opentdp/go-helper/httpd"
|
"github.com/opentdp/go-helper/httpd"
|
||||||
|
|
||||||
"github.com/opentdp/wechat-rest/args"
|
"wechat-rest/args"
|
||||||
"github.com/opentdp/wechat-rest/httpd/midware"
|
"wechat-rest/httpd/midware"
|
||||||
"github.com/opentdp/wechat-rest/httpd/wcfrest"
|
"wechat-rest/httpd/wcfrest"
|
||||||
)
|
)
|
||||||
|
|
||||||
// @title Wechat Rest API
|
// @title Wechat Rest API
|
||||||
|
@ -7,9 +7,9 @@ import (
|
|||||||
"github.com/opentdp/go-helper/logman"
|
"github.com/opentdp/go-helper/logman"
|
||||||
"github.com/opentdp/go-helper/request"
|
"github.com/opentdp/go-helper/request"
|
||||||
"github.com/opentdp/go-helper/strutil"
|
"github.com/opentdp/go-helper/strutil"
|
||||||
|
|
||||||
"github.com/opentdp/wechat-rest/args"
|
|
||||||
"github.com/opentdp/wechat-rest/wcferry"
|
"github.com/opentdp/wechat-rest/wcferry"
|
||||||
|
|
||||||
|
"wechat-rest/args"
|
||||||
)
|
)
|
||||||
|
|
||||||
var wc *wcferry.Client
|
var wc *wcferry.Client
|
||||||
|
@ -3,8 +3,8 @@ package main
|
|||||||
import (
|
import (
|
||||||
"embed"
|
"embed"
|
||||||
|
|
||||||
"github.com/opentdp/wechat-rest/args"
|
"wechat-rest/args"
|
||||||
"github.com/opentdp/wechat-rest/httpd"
|
"wechat-rest/httpd"
|
||||||
)
|
)
|
||||||
|
|
||||||
//go:embed public
|
//go:embed public
|
||||||
|
Loading…
Reference in New Issue
Block a user