forked from ebhomengo/niki
Merge pull request 'feature/kindbox-app' (#245) from feature/kindbox-app into develop
Reviewed-on: ebhomengo/niki#245 Reviewed-by: hossein <h.nazari1990@gmail.com>
This commit is contained in:
commit
5e36546e05
|
|
@ -0,0 +1,5 @@
|
|||
package main
|
||||
|
||||
func main() {
|
||||
panic("NOT IMPLEMENTED")
|
||||
}
|
||||
|
|
@ -0,0 +1,10 @@
|
|||
package http
|
||||
|
||||
import (
|
||||
"github.com/labstack/echo/v4"
|
||||
"net/http"
|
||||
)
|
||||
|
||||
func (s Server) healthCheck(c echo.Context) error {
|
||||
return c.JSON(http.StatusOK, "Everything is ok (kind box app)")
|
||||
}
|
||||
|
|
@ -0,0 +1,15 @@
|
|||
package http
|
||||
|
||||
import (
|
||||
httpserver "git.gocasts.ir/ebhomengo/niki/delivery/http_server"
|
||||
)
|
||||
|
||||
type Server struct {
|
||||
HTTPServer *httpserver.Server
|
||||
}
|
||||
|
||||
func New(httpserver *httpserver.Server) *Server {
|
||||
return &Server{
|
||||
HTTPServer: httpserver,
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
package entity
|
||||
|
||||
// KindBox /* Not Implemented */
|
||||
type KindBox struct{}
|
||||
|
|
@ -0,0 +1,13 @@
|
|||
package database
|
||||
|
||||
import "git.gocasts.ir/ebhomengo/niki/repository/mysql"
|
||||
|
||||
type DB struct {
|
||||
conn *mysql.DB
|
||||
}
|
||||
|
||||
func New(conn *mysql.DB) *DB {
|
||||
return &DB{
|
||||
conn: conn,
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1 @@
|
|||
package service
|
||||
Loading…
Reference in New Issue