可测试debug方案

This commit is contained in:
eson 2023-06-06 12:24:19 +08:00
parent 25418e7be5
commit 834a560451
2 changed files with 8 additions and 0 deletions

View File

@ -0,0 +1,7 @@
package main
import "testing"
func TestMain(t *testing.T) {
main()
}

View File

@ -34,6 +34,7 @@ func (l *GetTypeLogic) GetType(req *types.Request) (resp *types.Response) {
logx.Error(err)
return
}
resp.SetStatus(basic.StatusOK, "success", data)
return resp