test calc

This commit is contained in:
jiangyong27 2025-03-27 14:37:17 +08:00
parent 1f56a9fbec
commit bf4de8a8d8
1 changed files with 1 additions and 0 deletions

View File

@ -80,6 +80,7 @@ func (c *Calculator) List(ctx *gin.Context) {
// Delete 删除指定的计算项
func (c *Calculator) Test(ctx *gin.Context) {
var req api.TestCalculatorReq
session.CheckParamError(ctx.ShouldBindJSON(&req))
sess := ctx.Keys[session.ContextSession].(*session.AdminSession)
data := service.NewCalculator().Test(sess, &req)
ctx.JSON(http.StatusOK, session.NewRsp(data))