mirror of
https://gitee.com/dromara/electron-egg.git
synced 2026-05-20 03:48:09 +08:00
24 lines
314 B
Go
24 lines
314 B
Go
package api
|
|
|
|
import (
|
|
"ee-go/eruntime"
|
|
"ee-go/eserver"
|
|
"net/http"
|
|
|
|
"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)
|
|
|
|
eruntime.Close()
|
|
}
|