|
@@ -34,6 +34,7 @@ func CollectRoute(r *gin.Engine) *gin.Engine {
|
|
user.GET("infoSender/:userId", controller.GetStatisticsInfoForAdmin)
|
|
user.GET("infoSender/:userId", controller.GetStatisticsInfoForAdmin)
|
|
user.GET("infoReceiver/:userId", controller.GetStatisticsInfoForUser)
|
|
user.GET("infoReceiver/:userId", controller.GetStatisticsInfoForUser)
|
|
user.GET("isJoinedCompany/:userId", controller.IsJoinedCompany)
|
|
user.GET("isJoinedCompany/:userId", controller.IsJoinedCompany)
|
|
|
|
+ user.GET("companyInfo/:userId", controller.GetCompanyOfUser)
|
|
}
|
|
}
|
|
|
|
|
|
company := r.Group("/api/v-go/company")
|
|
company := r.Group("/api/v-go/company")
|
|
@@ -48,6 +49,7 @@ func CollectRoute(r *gin.Engine) *gin.Engine {
|
|
company.PUT("applyRequest/reject/:userId", controller.RejectJoinCompany)
|
|
company.PUT("applyRequest/reject/:userId", controller.RejectJoinCompany)
|
|
company.GET("applyRequest/lists/:companyId", controller.GetJoinCompanyRequests)
|
|
company.GET("applyRequest/lists/:companyId", controller.GetJoinCompanyRequests)
|
|
company.DELETE("member/delete/:userId", controller.DelCompanyMember)
|
|
company.DELETE("member/delete/:userId", controller.DelCompanyMember)
|
|
|
|
+ company.GET("members/:companyId", controller.GetCompanyMembers)
|
|
}
|
|
}
|
|
file := r.Group("files")
|
|
file := r.Group("files")
|
|
{
|
|
{
|