19 lines
337 B
Go
19 lines
337 B
Go
package handler
|
|
|
|
import (
|
|
"ckwk/internal/conf"
|
|
"ckwk/internal/dto"
|
|
|
|
"github.com/gin-gonic/gin"
|
|
)
|
|
|
|
func Version(ctx *gin.Context) {
|
|
ctx.JSON(200, dto.Success(map[string]string{
|
|
"Version": conf.Version,
|
|
"BuildAt": conf.BuildAt,
|
|
"GitAuthor": conf.GitAuthor,
|
|
"GitEmail": conf.GitEmail,
|
|
"GitCommit": conf.GitCommit,
|
|
}))
|
|
}
|