forked from ebhomengo/niki
feat: add kind box app's domain structure
This commit is contained in:
parent
b9db2926c1
commit
a0f28a10d4
|
|
@ -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,
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue