bee icon indicating copy to clipboard operation
bee copied to clipboard

Bee is a tool for helping develop with beego app framework.

Results 117 bee issues
Sort by recently updated
recently updated
newest added

运行bee run -gendoc=true无法生成commentsRouter_controllers.go文件,导致调用接口报404

question

```golang nsv1 := beego.NewNamespace("/v1", beego.NSNamespace("/user", beego.NSInclude( &c_v1.UserController{}, ), ) nsv2 := beego.NewNamespace("/v2", beego.NSNamespace("/user", beego.NSInclude( &c_v2.UserController{}, ), ) beego.AddNamespace(nsv1, nsv2) ``` ===========english=========== I encountered problems. In bee 1.9.1, the URL address...

// @router [Get,Post] swagger文件的同一个path下,不同的method下会产生相同的operationID [https://github.com/beego/bee/blob/develop/generate/swaggergen/g_docs.go#L571](url)

mac OS 12.4 go version go1.18.3 darwin/amd64 bee api my_api // 创建项目 bee run // 运行项目, 我在goland里把代码运行起来, 之前的报错都处理了,正常运行后, 访问 http://localhost:8080, 404找不到页面 ![image](https://user-images.githubusercontent.com/47842816/179942071-745fe0f7-10d4-4fdc-8533-35a3d9a293fd.png) 还有 go get github.com/beego/bee/v2 这个命令用不了, go install 也不行

#830 Just migrate the code from the @Success section into the @Failure section.

View description at https://github.com/beego/bee/issues/300#issuecomment-901393918 Failture responses also need to provide the returned struct.

Hi, Is there a way to use a model representation on Failure annotations? The documentation states only _Status Code_ and _Error Message_. I tried to force the generation using schema...

bug

swagger 自动化文档,如何切换v1,v2不同版本请求接口

执行安装命令 go get -u github.com/beego/bee/v2 安装成功无报错但是就是找不到执行命令在哪?? $GOPATH/bin 里面没有 我也没设置GOBIN ![image](https://user-images.githubusercontent.com/92565207/159151295-5d9f2df3-411a-40a4-aff7-11c5e2b00836.png) $ go env set GO111MODULE=on set GOARCH=amd64 set GOBIN= set GOCACHE=C:\Users\XXX\AppData\Local\go-build set GOENV=C:\Users\XXX\AppData\Roaming\go\env set GOEXE=.exe set GOEXPERIMENT= set GOFLAGS= set...

有时项目需要一些公共库给不同的项目使用, 如Models,但是如果这些公共库,不在当前项目的目录下时,生成文档时,会报Cannot find the object错误,生成的文档也找不到有关Models的说明。所以我对cmd\commands\generate\generate.go 文件里的GenerateCode方法做了处理。 代码示例: case "docs": f, err := os.Open(currpath + "\\docs.conf") if err == nil { rd := bufio.NewReader(f) for { line, err := rd.ReadString('\n') line...