Skip to content

Commit

Permalink
保存
Browse files Browse the repository at this point in the history
  • Loading branch information
张奇峰 committed Mar 31, 2022
1 parent ae17cad commit b2a2714
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/http/validator/api/home/news.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,16 @@ import (
"github.com/gin-gonic/gin"
"goskeleton/app/global/consts"
"goskeleton/app/http/controller/api"
common_data_type "goskeleton/app/http/validator/common/data_type"
"goskeleton/app/http/validator/core/data_transfer"
"goskeleton/app/utils/response"
)

// 门户类前端接口模拟一个获取新闻的参数验证器

type News struct {
Artitle
//NewsType string `form:"newsType" json:"newsType" binding:"required,min=1"` // 验证规则:必填,最小长度为1
//common_data_type.Page
NewsType string `form:"newsType" json:"newsType" binding:"required,min=1"` // 验证规则:必填,最小长度为1
common_data_type.Page
}

func (n News) CheckParams(context *gin.Context) {
Expand Down

0 comments on commit b2a2714

Please sign in to comment.