Explorar el Código

feat: 请求体限制

zhangxinlei1996 hace 1 año
padre
commit
a31797948d
Se han modificado 1 ficheros con 4 adiciones y 1 borrados
  1. 4 1
      api/application.api

+ 4 - 1
api/application.api

@@ -182,7 +182,10 @@ type (
 
 	}
 )
-
+@server (
+	// 定义一个请求体限制在 100MB 以内的请求,goctl >= 1.5.0 版本支持 (默认1mb)
+	maxBytes: 104857600
+)
 service crmApplication {
 	@doc "添加线索"
 	@handler clueAdd