feat:完善项目
This commit is contained in:
@ -5,7 +5,6 @@ import (
|
||||
"ArmedPolice/serve/logger"
|
||||
"ArmedPolice/utils"
|
||||
"errors"
|
||||
"fmt"
|
||||
"net/http"
|
||||
|
||||
"github.com/gin-gonic/gin/binding"
|
||||
@ -26,12 +25,6 @@ type response struct {
|
||||
|
||||
type ApiHandle func(c *gin.Context, syslog ...bool) interface{}
|
||||
|
||||
func (c ApiHandle) SysLog() {
|
||||
fmt.Println(123)
|
||||
//service.Publish(config.EventForSysLogProduce, _session.Community, _session.UID, _session.Name, mode, event, content,
|
||||
// c.Get("params"), c.ClientIP())
|
||||
}
|
||||
|
||||
func getSession() ApiHandle {
|
||||
return func(c *gin.Context, log ...bool) interface{} {
|
||||
value, _ := c.Get(config.TokenForSession)
|
||||
|
Reference in New Issue
Block a user