Compare commits

...

22 Commits

Author SHA1 Message Date
hossein 6cea941f48 Merge pull request 'add structure of agentapp to niki project' (#246) from add-agent-domain into develop
Reviewed-on: ebhomengo/niki#246
2026-03-25 07:07:58 +00:00
hossein f772613aaf Merge branch 'develop' into add-agent-domain 2026-03-25 07:07:31 +00:00
hossein 5e36546e05 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>
2026-03-25 07:04:37 +00:00
hossein c0d2a89aba Merge branch 'develop' into feature/kindbox-app 2026-03-25 07:02:13 +00:00
hossein 71f0e342e4 Merge pull request 'Add staffapp' (#244) from feature/staffapp into develop
Reviewed-on: ebhomengo/niki#244
Reviewed-by: hossein <h.nazari1990@gmail.com>
2026-03-25 07:01:58 +00:00
hossein d13931a503 Merge branch 'develop' into feature/staffapp 2026-03-25 07:00:22 +00:00
hossein 5faeecfd66 Merge pull request 'feat: add-auth-domain (#221)' (#243) from mehrdadbiukian/issue221-add-auth-domain into develop
Reviewed-on: ebhomengo/niki#243
Reviewed-by: hossein <h.nazari1990@gmail.com>
2026-03-25 07:00:08 +00:00
hossein f8f5c07bf0 Merge branch 'develop' into mehrdadbiukian/issue221-add-auth-domain 2026-03-25 06:59:38 +00:00
hossein bc6f5727e1 Merge pull request 'feat: add product domain' (#242) from feature/ISSUE-224-product-app into develop
Reviewed-on: ebhomengo/niki#242
Reviewed-by: hossein <h.nazari1990@gmail.com>
2026-03-25 06:59:26 +00:00
hossein 302539360d Merge branch 'develop' into feature/ISSUE-224-product-app 2026-03-25 06:59:03 +00:00
hossein 6d23bcf268 Merge pull request 'feat: add purchase domain structure' (#235) from feature/purchase-app into develop
Reviewed-on: ebhomengo/niki#235
Reviewed-by: hossein <h.nazari1990@gmail.com>
2026-03-25 06:58:13 +00:00
hossein 5d91cd9947 Merge branch 'develop' into feature/purchase-app 2026-03-25 06:57:02 +00:00
hossein f35e96a786 Merge pull request 'Add patient domain structure' (#233) from feature/patientapp into develop
Reviewed-on: ebhomengo/niki#233
Reviewed-by: hossein <h.nazari1990@gmail.com>
2026-03-25 06:56:53 +00:00
hossein 98a911f0b1 Merge branch 'develop' into feature/patientapp 2026-03-25 06:56:38 +00:00
hossein ad7a9e20bc Merge pull request 'issue232-add-payment-domain' (#240) from mahsaaghagolzadeh/issue232-add-payment-domain into develop
Reviewed-on: ebhomengo/niki#240
Reviewed-by: hossein <h.nazari1990@gmail.com>
2026-03-25 06:56:19 +00:00
Rasa 864a2c5128 Add staffapp 2026-03-24 21:51:14 -07:00
mehrdadbn9 f94d16b523 add-auth-domain (#221) 2026-03-25 00:07:07 +03:30
amir-ys 97a8ad78a6 feat: add product domain structure 2026-03-24 14:28:29 +03:30
fardin 0ab459495f add structure of agentapp to niki project 2026-03-22 01:58:57 -04:00
Sahar Mokarrami e72b78701a feat: add purchase domain structure 2026-03-21 23:35:39 +03:30
Mohammad Amin e244f78364 Add patient domain structure 2026-03-21 20:24:41 +03:30
mahsa-fox 490ccb93a1 issue232-add-payment-domain 2026-03-16 15:22:43 +03:30
74 changed files with 431 additions and 0 deletions

7
agentapp/app.go Normal file
View File

@ -0,0 +1,7 @@
package agentapp
type Application struct {
config Config
}
func Setup() {}

7
agentapp/config.go Normal file
View File

@ -0,0 +1,7 @@
package agentapp
type Config struct {
// database config
// httpserver config
//...
}

View File

@ -0,0 +1 @@
package http

View File

@ -0,0 +1,14 @@
package http
type Server struct {
// httpServer
// handler
}
func New() Server {
return Server{}
}
func (s Server) Serve() {}
func (s Server) RegisterRoutes() {}

View File

@ -0,0 +1 @@
package repository

View File

@ -0,0 +1,5 @@
package service
type Agent struct {
ID uint
}

View File

@ -0,0 +1 @@
package service

View File

@ -0,0 +1,8 @@
package service
type Service struct {
}
func New() Service {
return Service{}
}

View File

@ -0,0 +1 @@
package service

8
authapp/app.go Normal file
View File

@ -0,0 +1,8 @@
package authapp
import "net/http"
type Application struct {
Config Config
HTTPServer *http.Server
}

11
authapp/config.go Normal file
View File

@ -0,0 +1,11 @@
package authapp
type Config struct {
// HTTP server config
// Database config
// Logger config
// Service config
}

View File

@ -0,0 +1,17 @@
package http
import (
"net/http"
"github.com/labstack/echo/v4"
)
type Handler struct{}
func NewHandler() *Handler {
return &Handler{}
}
func (h Handler) HealthCheck(c echo.Context) error {
return c.JSON(http.StatusOK, map[string]string{"status": "ok"})
}

View File

@ -0,0 +1 @@
package http

View File

@ -0,0 +1,23 @@
package http
import httpserver "git.gocasts.ir/ebhomengo/niki/delivery/http_server"
type Server struct {
HTTPServer *httpserver.Server
Handler *Handler
}
func NewServer(httpserver *httpserver.Server) *Server {
return &Server{
HTTPServer: httpserver,
Handler: NewHandler(),
}
}
func (s *Server) Serve() {
}
func (s *Server) Stop() {}
func (s *Server) RegisterRoutes() {}

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

View File

@ -0,0 +1 @@
package service

1
authapp/service/param.go Normal file
View File

@ -0,0 +1 @@
package service

View File

@ -0,0 +1 @@
package service

View File

@ -0,0 +1 @@
package service

View File

View File

View File

1
patientapp/app.go Normal file
View File

@ -0,0 +1 @@
package patientapp

View File

View File

1
paymentapp/app.go Normal file
View File

@ -0,0 +1 @@
package paymentapp

1
paymentapp/config.go Normal file
View File

@ -0,0 +1 @@
package paymentapp

View File

@ -0,0 +1,15 @@
package http
type Handler struct {
}
func NewHandler(userService UserService) *Handler {
return &Handler{
}
}
func (h *Handler) HealthCheck(w http.ResponseWriter, r *http.Request) {
w.Write([]byte("OK"))
}

View File

@ -0,0 +1,5 @@
package http
func (s *Server) registerRoutes() {
s.httpServer.GET("/health", s.handler.HealthCheck)
}

View File

@ -0,0 +1,22 @@
package http
type Server struct {
httpServer *httpserver.Server
handler *Handler
}
func NewServer(httpServer *httpserver.Server, handler *Handler) *Server {
return &Server{
httpServer: httpServer,
handler: handler,
}
}
func (s *Server) Serve() error {
s.registerRoutes()
return s.httpServer.Start()
}
func (s *Server) Stop() error {
return s.httpServer.Stop()
}

View File

@ -0,0 +1 @@
package service

View File

@ -0,0 +1 @@
package service

View File

@ -0,0 +1 @@
package service

View File

@ -0,0 +1 @@
package service

8
productapp/app.go Normal file
View File

@ -0,0 +1,8 @@
package productapp
import "net/http"
type Application struct {
Config Config
HTTPServer *http.Server
}

4
productapp/config.go Normal file
View File

@ -0,0 +1,4 @@
package productapp
type Config struct {
}

View File

@ -0,0 +1,17 @@
package http
import (
"net/http"
"github.com/labstack/echo/v4"
)
type Handler struct{}
func NewHandler() *Handler {
return &Handler{}
}
func (h Handler) HealthCheck(c echo.Context) error {
return c.JSON(http.StatusOK, map[string]string{"status": "ok"})
}

View File

@ -0,0 +1 @@
package http

View File

@ -0,0 +1,23 @@
package http
import httpserver "git.gocasts.ir/ebhomengo/niki/delivery/http_server"
type Server struct {
HTTPServer *httpserver.Server
Handler *Handler
}
func NewServer(httpserver *httpserver.Server) *Server {
return &Server{
HTTPServer: httpserver,
Handler: NewHandler(),
}
}
func (s *Server) Serve() {
}
func (s *Server) Stop() {}
func (s *Server) RegisterRoutes() {}

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

View File

@ -0,0 +1 @@
package service

View File

@ -0,0 +1 @@
package service

View File

@ -0,0 +1 @@
package service

View File

@ -0,0 +1 @@
package service

1
purchaseapp/app.go Normal file
View File

@ -0,0 +1 @@
package purchaseapp

4
purchaseapp/config.go Normal file
View File

@ -0,0 +1,4 @@
package purchaseapp
type Config struct {
}

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 good!")
}

View File

@ -0,0 +1,8 @@
package invoice
type Handler struct {
}
func New() *Handler {
return &Handler{}
}

View File

@ -0,0 +1,7 @@
package invoice
import "github.com/labstack/echo/v4"
func (h Handler) SetRoutes(e *echo.Echo) {
}

View File

@ -0,0 +1,7 @@
package order
type Handler struct{}
func New() *Handler {
return &Handler{}
}

View File

@ -0,0 +1,7 @@
package order
import "github.com/labstack/echo/v4"
func (h Handler) SetRoutes(e *echo.Echo) {
}

View File

@ -0,0 +1,33 @@
package http
import (
httpserver "git.gocasts.ir/ebhomengo/niki/delivery/http_server"
"git.gocasts.ir/ebhomengo/niki/purchaseapp/delivery/http/invoice"
"git.gocasts.ir/ebhomengo/niki/purchaseapp/delivery/http/order"
)
type Server struct {
HTTPServer *httpserver.Server
OrderHandler *order.Handler
InvoiceHandler *invoice.Handler
}
func New(httpserver *httpserver.Server) *Server {
return &Server{
HTTPServer: httpserver,
OrderHandler: order.New(),
InvoiceHandler: invoice.New(),
}
}
func (s *Server) Serve() {
s.RegisterRoutes()
}
func (s *Server) Stop() {}
func (s *Server) RegisterRoutes() {
s.HTTPServer.Router.GET("/purchase/health-check", s.healthCheck)
s.OrderHandler.SetRoutes(s.HTTPServer.Router)
s.InvoiceHandler.SetRoutes(s.HTTPServer.Router)
}

View File

@ -0,0 +1,4 @@
package entity
type Invoice struct {
}

View File

@ -0,0 +1,4 @@
package entity
type Order struct {
}

View File

@ -0,0 +1 @@
package mysql

View File

@ -0,0 +1 @@
package invoice

View File

@ -0,0 +1,4 @@
package invoice
type Service struct {
}

View File

@ -0,0 +1 @@
package invoice

View File

@ -0,0 +1 @@
package order

View File

@ -0,0 +1,4 @@
package order
type Service struct {
}

View File

@ -0,0 +1 @@
package order

8
staffapp/app.go Normal file
View File

@ -0,0 +1,8 @@
package staffapp
import "net/http"
type Application struct {
Config Config
HTTPServer *http.Server
}

15
staffapp/cmd/main.go Normal file
View File

@ -0,0 +1,15 @@
package main
import (
"fmt"
"log"
"net/http"
)
func main() {
fmt.Println(" Staffapp Server Starting...")
http.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) {
fmt.Fprintf(w, "Staffapp OK!")
})
log.Fatal(http.ListenAndServe(":8080", nil))
}

11
staffapp/config.go Normal file
View File

@ -0,0 +1,11 @@
package staffapp
type Config struct {
// HTTP server config
// Database config
// Logger config
// Service config
}

View File

@ -0,0 +1,17 @@
package http
import (
"net/http"
"github.com/labstack/echo/v4"
)
type Handler struct{}
func NewHandler() *Handler {
return &Handler{}
}
func (h Handler) HealthCheck(c echo.Context) error {
return c.JSON(http.StatusOK, map[string]string{"status": "ok"})
}

View File

@ -0,0 +1 @@
package http

View File

@ -0,0 +1,23 @@
package http
import httpserver "git.gocasts.ir/ebhomengo/niki/delivery/http_server"
type Server struct {
HTTPServer *httpserver.Server
Handler *Handler
}
func NewServer(httpserver *httpserver.Server) *Server {
return &Server{
HTTPServer: httpserver,
Handler: NewHandler(),
}
}
func (s *Server) Serve() {
}
func (s *Server) Stop() {}
func (s *Server) RegisterRoutes() {}

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

View File

@ -0,0 +1 @@
package service

View File

@ -0,0 +1 @@
package service

View File

@ -0,0 +1 @@
package service

View File

@ -0,0 +1 @@
package service