mirror of
https://gitee.com/dromara/electron-egg.git
synced 2026-05-18 13:28:12 +08:00
23 lines
305 B
Go
23 lines
305 B
Go
package api
|
|
|
|
import (
|
|
"net/http"
|
|
|
|
"ee-go/eapp"
|
|
"ee-go/eserver"
|
|
|
|
"github.com/gin-gonic/gin"
|
|
)
|
|
|
|
func GetName(ctx *gin.Context) {
|
|
ret := eserver.NewJson()
|
|
defer ctx.JSON(http.StatusOK, ret)
|
|
}
|
|
|
|
func Exit(ctx *gin.Context) {
|
|
ret := eserver.NewJson()
|
|
defer ctx.JSON(http.StatusOK, ret)
|
|
|
|
eapp.Close()
|
|
}
|