parent
81bd2da001
commit
4e20d93f98
@ -1,12 +1,23 @@
|
||||
package ai_layout
|
||||
import(
|
||||
"github.com/gin-gonic/gin"
|
||||
// "goskeleton/app/utils/response"
|
||||
// "goskeleton/app/http/controller/web"
|
||||
// "goskeleton/app/http/validator/core/data_transfer"
|
||||
// "goskeleton/app/global/consts"
|
||||
"goskeleton/app/utils/response"
|
||||
"goskeleton/app/http/controller/web"
|
||||
"goskeleton/app/http/validator/core/data_transfer"
|
||||
"goskeleton/app/global/consts"
|
||||
)
|
||||
type LayoutGenerate struct {
|
||||
DocContent string `form:"doc_content" json:"doc_content" binging:"required"`
|
||||
}
|
||||
func (s LayoutGenerate) CheckParams(context *gin.Context) {
|
||||
func (l LayoutGenerate) CheckParams(context *gin.Context) {
|
||||
if err:=context.ShouldBind(&l);err!=nil{
|
||||
response.ValidatorError(context,err)
|
||||
return
|
||||
}
|
||||
extraAddBindDataContext := data_transfer.DataAddContext(l, consts.ValidatorPrefix, context)
|
||||
if extraAddBindDataContext == nil {
|
||||
response.ErrorSystem(context, "LayoutGenerate表单参数验证器json化失败", "")
|
||||
return
|
||||
}
|
||||
(&web.LayoutGenerate{}).LayoutGenerate(extraAddBindDataContext)
|
||||
}
|
@ -0,0 +1,4 @@
|
||||
请将以下文章进行重新排版,使其格式更加美观且井然有序,同时保留文章的所有原始内容和文字,不要对内容进行任何修改。
|
||||
请你调整标题样式,将所有标题改为清晰的分级结构。文章标题使用#,一级标题使用##,以此类推。
|
||||
正文部分的段落需适当分段,避免过长或过短。 请确保整体排版整洁、易于阅读。
|
||||
不要对文章的原始内容进行修改。只返回重新排版后的内容,不要返回其他的额外内容。
|
Loading…
Reference in new issue