-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
VX-77 VX-78 VX-79 Add service restful api and testing #114
Conversation
Codecov Report
@@ Coverage Diff @@
## develop #114 +/- ##
===========================================
+ Coverage 72.77% 74.84% +2.06%
===========================================
Files 35 41 +6
Lines 1620 2071 +451
===========================================
+ Hits 1179 1550 +371
- Misses 379 446 +67
- Partials 62 75 +13
Continue to review full report at Codecov.
|
767b521
to
ffa846f
Compare
src/service/service.go
Outdated
} | ||
|
||
func CheckServiceParameter(sp *serviceprovider.Container, service *entity.Service) error { | ||
session := sp.Mongo.NewSession() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove session
src/service/service.go
Outdated
} | ||
|
||
func CreateService(sp *serviceprovider.Container, service *entity.Service) error { | ||
session := sp.Mongo.NewSession() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove session
想一下service 的物件有需要存到db嗎? |
src/server/handler_service_test.go
Outdated
"github.com/linkernetworks/mongo" | ||
"github.com/linkernetworks/vortex/src/config" | ||
"github.com/linkernetworks/vortex/src/entity" | ||
s "github.com/linkernetworks/vortex/src/service" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
svc "github.com/linkernetworks/vortex/src/service"
VX-77 VX-78 VX-79 Add service restful api and testing Former-commit-id: 3d1c945efa325509fc94c3859405b69456e2e48e [formerly e87be4c] Former-commit-id: 51e42c7051c82a15d9ba098538c2a8502868f1ef
VX-77 VX-78 VX-79 Add service restful api and testing
No description provided.