tracking files

This commit is contained in:
matina 2026-03-22 20:15:11 -07:00
commit 31484c09b9
10 changed files with 52 additions and 0 deletions

5
config.go Normal file
View File

@ -0,0 +1,5 @@
package donateapp
type Config struct{
}

View File

@ -0,0 +1,8 @@
package donate_server
type Handler struct {
}
func NewHandler() Handler {
return Handler{}
}

View File

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

View File

@ -0,0 +1,16 @@
package donate_server
import (
httpserver "git.gocasts.ir/ebhomengo/niki/delivery/http_server"
"github.com/labstack/echo/v4"
)
type Server struct {
Server httpserver.Server
Handler Handler
Router *echo.Echo
}
func (s Server) Start() {
s.Handler.RegisterRoutes(s.Router)
}

1
entity/donate.go Normal file
View File

@ -0,0 +1 @@
package entity

1
param/param.go Normal file
View File

@ -0,0 +1 @@
package param

View File

@ -0,0 +1,11 @@
-- +migrate Up
CREATE TABLE `donates` (
`id` bigint UNSIGNED NOT NULL AUTO_INCREMENT,
`created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
`updated_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (`id`) USING BTREE,
UNIQUE INDEX `id`(`id` ASC) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 84 CHARACTER SET = utf8mb3 COLLATE = utf8mb3_persian_ci ROW_FORMAT = Dynamic;
-- +migrate Down
DROP TABLE IF EXISTS `donates`;

1
repository/mysql/db.go Normal file
View File

@ -0,0 +1 @@
package mysql

1
service/service.go Normal file
View File

@ -0,0 +1 @@
package service

1
validator/validator.go Normal file
View File

@ -0,0 +1 @@
package validator