2025-06-20 17:13:51 +08:00
|
|
|
package admin
|
2026-01-28 23:28:25 +08:00
|
|
|
|
|
|
|
|
import (
|
|
|
|
|
"blazing/common/utils"
|
|
|
|
|
"blazing/cool"
|
|
|
|
|
"context"
|
|
|
|
|
|
|
|
|
|
"github.com/gogf/gf/v2/frame/g"
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
type CurVersionReq struct {
|
|
|
|
|
g.Meta `path:"/version" method:"POST"`
|
|
|
|
|
Authorization string `json:"Authorization" in:"header"`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Logout BaseCommLogout 方法
|
|
|
|
|
func (c *BaseCommController) Version(ctx context.Context, req *CurVersionReq) (res *cool.BaseRes, err error) {
|
|
|
|
|
filename, _ := utils.GetLatestLogicFile("public")
|
|
|
|
|
res = cool.Ok(filename)
|
|
|
|
|
return
|
|
|
|
|
}
|