feat: add kind box app's domain structure

This commit is contained in:
Mobin Alizadeh 2026-03-22 01:28:39 +03:30
parent b9db2926c1
commit a0f28a10d4
5 changed files with 47 additions and 0 deletions

5
kindbox-app/cmd/main.go Normal file
View File

@ -0,0 +1,5 @@
package main
func main() {
panic("NOT IMPLEMENTED")
}

View File

@ -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)")
}

View File

@ -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,
}
}

View File

@ -0,0 +1,4 @@
package entity
// KindBox /* Not Implemented */
type KindBox struct{}

View File

@ -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,
}
}