可测试debug方案
This commit is contained in:
parent
25418e7be5
commit
834a560451
7
home-user-auth/home-user-auth_test.go
Normal file
7
home-user-auth/home-user-auth_test.go
Normal file
|
@ -0,0 +1,7 @@
|
|||
package main
|
||||
|
||||
import "testing"
|
||||
|
||||
func TestMain(t *testing.T) {
|
||||
main()
|
||||
}
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user