parent
6cac6cdd93
commit
ab6b9d6bc7
@ -0,0 +1,18 @@
|
|||||||
|
package controller
|
||||||
|
|
||||||
|
import (
|
||||||
|
"github.com/gin-gonic/gin"
|
||||||
|
"github.com/taoshihan1991/imaptool/models"
|
||||||
|
"log"
|
||||||
|
)
|
||||||
|
|
||||||
|
func GetVisitor(c *gin.Context) {
|
||||||
|
visitorId:=c.Query("visitorId")
|
||||||
|
vistor:=models.FindVisitorByVistorId(visitorId)
|
||||||
|
log.Println(visitorId)
|
||||||
|
c.JSON(200, gin.H{
|
||||||
|
"code": 200,
|
||||||
|
"msg": "ok",
|
||||||
|
"result":vistor,
|
||||||
|
})
|
||||||
|
}
|
Loading…
Reference in new issue