mirror of
https://github.com/Floriansylvain/RenewCMS.git
synced 2026-08-19 11:43:22 +02:00
refac: renamed 'GoCMS' -> 'RenewCMS'
This commit is contained in:
+1
-1
@@ -3,7 +3,7 @@ HOST=example.com
|
||||
PORT=8080
|
||||
JWT_SECRET=abc123
|
||||
CORS_ALLOWED_ORIGINS=*
|
||||
DB_FILE=./gocms.db
|
||||
DB_FILE=./renewcms.db
|
||||
DOCKER_DB_FOLDER=./data
|
||||
SMTP_EMAIL=a@b.c
|
||||
SMTP_PASSWORD=12341234
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
# GoCMS
|
||||
# RenewCMS
|
||||
|
||||
## 🚧 This project is under development !
|
||||
|
||||
@@ -46,7 +46,7 @@ of course required, but not necessarily via the `.env` file.
|
||||
| PORT | int | port the API will use | required |
|
||||
| JWT_SECRET | string | secret for the jwt auth | required |
|
||||
| CORS_ALLOWED_ORIGINS | string | allowed origins for CORS | required, semicolon separated list |
|
||||
| DB_FILE | string | path to the sqlite db file | required, can be at the root but name still required (e.g. `./gocms.db`) ; have to end up with `.db` |
|
||||
| DB_FILE | string | path to the sqlite db file | required, can be at the root but name still required (e.g. `./RenewCMS.db`) ; have to end up with `.db` |
|
||||
| DOCKER_DB_FOLDER | string | path to the sqlite db file's folder | required with docker, this will basically be the host machine folder (e.g. `./data`) that contains the sqlite db file |
|
||||
| SMTP_EMAIL | string | sender email | required |
|
||||
| SMTP_PASSWORD | string | smtp account password | required |
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
package gateways
|
||||
|
||||
import (
|
||||
entity "GoCMS/adapters/secondary/gateways/models"
|
||||
domain "GoCMS/domain/article"
|
||||
"GoCMS/domain/gateways"
|
||||
entity "RenewCMS/adapters/secondary/gateways/models"
|
||||
domain "RenewCMS/domain/article"
|
||||
"RenewCMS/domain/gateways"
|
||||
|
||||
"gorm.io/gorm"
|
||||
)
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
package gateways
|
||||
|
||||
import (
|
||||
entity "GoCMS/adapters/secondary/gateways/models"
|
||||
"GoCMS/domain/gateways"
|
||||
domain "GoCMS/domain/image"
|
||||
entity "RenewCMS/adapters/secondary/gateways/models"
|
||||
"RenewCMS/domain/gateways"
|
||||
domain "RenewCMS/domain/image"
|
||||
"errors"
|
||||
"github.com/google/uuid"
|
||||
"gorm.io/gorm"
|
||||
|
||||
@@ -2,11 +2,11 @@
|
||||
<html lang="en">
|
||||
<body>
|
||||
<h1>
|
||||
<img src="{{.Host}}/static/gocms-favicon-128.png" alt="G" style="width: 2.5rem"/>
|
||||
GoCMS
|
||||
<img src="{{.Host}}/static/renewcms-favicon-64.png" alt="G" style="width: 2.5rem"/>
|
||||
RenewCMS
|
||||
</h1>
|
||||
<main>
|
||||
<p>You or someone tried to create a GoCMS admin account with this e-mail address. If you are not responsible for
|
||||
<p>You or someone tried to create a RenewCMS admin account with this e-mail address. If you are not responsible for
|
||||
this, please do not validate the account creation.</p>
|
||||
<p><b>If you want to validate the account creation, please <a
|
||||
href="{{.Host}}/register/validate?c={{.VerificationCode}}" target="_blank">click HERE</a>.</b>
|
||||
|
||||
@@ -2,11 +2,11 @@
|
||||
<html lang="en">
|
||||
<body>
|
||||
<h1>
|
||||
<img src="{{.Host}}/static/gocms-favicon-128.png" alt="G" style="width: 2.5rem"/>
|
||||
GoCMS
|
||||
<img src="{{.Host}}/static/renewcms-favicon-64.png" alt="G" style="width: 2.5rem"/>
|
||||
RenewCMS
|
||||
</h1>
|
||||
<main>
|
||||
<p>You or someone tried to create reset your GoCMS account with this e-mail address. If you are not responsible for
|
||||
<p>You or someone tried to create reset your RenewCMS account with this e-mail address. If you are not responsible for
|
||||
this, please do not validate the password reset.</p>
|
||||
<p><b>If you want to reset your password, please <a
|
||||
href="{{.Host}}/register/reset/validate?c={{.VerificationCode}}&email={{.Email}}" target="_blank">click HERE</a>.</b>
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package gateways
|
||||
|
||||
import (
|
||||
"GoCMS/domain/gateways"
|
||||
"RenewCMS/domain/gateways"
|
||||
"bytes"
|
||||
"embed"
|
||||
"html/template"
|
||||
@@ -44,12 +44,12 @@ func (m MailRepository) Send(receiverAddress string, templateName string, data a
|
||||
|
||||
msg := gomail.NewMessage()
|
||||
msg.SetHeaders(map[string][]string{
|
||||
"From": {"GoCMS <" + from + ">"},
|
||||
"From": {"RenewCMS <" + from + ">"},
|
||||
"To": {receiverAddress},
|
||||
"MIME-version": {"1.0"},
|
||||
"Content-Type": {"text/html"},
|
||||
"charset": {"UTF-8"},
|
||||
"Subject": {"GoCMS | Action required"},
|
||||
"Subject": {"RenewCMS | Action required"},
|
||||
})
|
||||
msg.SetBody("text/html", body.String())
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package gateways
|
||||
|
||||
import (
|
||||
"GoCMS/domain/gateways"
|
||||
"RenewCMS/domain/gateways"
|
||||
"bytes"
|
||||
"embed"
|
||||
"html/template"
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
package gateways
|
||||
|
||||
import (
|
||||
entity "GoCMS/adapters/secondary/gateways/models"
|
||||
"GoCMS/domain/gateways"
|
||||
"GoCMS/domain/user"
|
||||
domain "GoCMS/domain/user"
|
||||
entity "RenewCMS/adapters/secondary/gateways/models"
|
||||
"RenewCMS/domain/gateways"
|
||||
"RenewCMS/domain/user"
|
||||
domain "RenewCMS/domain/user"
|
||||
"golang.org/x/crypto/bcrypt"
|
||||
"gorm.io/gorm"
|
||||
)
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<title>GoCMS | Create article</title>
|
||||
<title>RenewCMS | Create article</title>
|
||||
{{.Head}}
|
||||
<style>
|
||||
form {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<title>GoCMS | Article edition</title>
|
||||
<title>RenewCMS | Article edition</title>
|
||||
{{.Head}}
|
||||
</head>
|
||||
<body class="text-dark vh-100 d-flex flex-column">
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<title>GoCMS | Articles</title>
|
||||
<title>RenewCMS | Articles</title>
|
||||
{{.Head}}
|
||||
|
||||
<style>
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
<nav class="navbar navbar-expand-lg bg-body-tertiary">
|
||||
<div class="container">
|
||||
<div class="d-flex gap-2 justify-content-center align-items-center">
|
||||
<img src="/static/gocms-favicon-128.png" alt="Logo" style="width: 2.5rem"/>
|
||||
<a class="navbar-brand h1 my-auto" href="https://github.com/Floriansylvain/GoCMS" target="_blank">
|
||||
GoCMS
|
||||
<img src="/static/renewcms-favicon-64.png" alt="Logo" style="width: 2.5rem"/>
|
||||
<a class="navbar-brand h1 my-auto" href="https://github.com/Floriansylvain/RenewCMS" target="_blank">
|
||||
RenewCMS
|
||||
</a>
|
||||
</div>
|
||||
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNav"
|
||||
|
||||
@@ -1,14 +1,14 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<title>GoCMS | Home</title>
|
||||
<title>RenewCMS | Home</title>
|
||||
{{.Head}}
|
||||
</head>
|
||||
<body class="text-dark">
|
||||
{{.Navbar}}
|
||||
<div class="container mt-3 text-black-50">
|
||||
<h1>Home</h1>
|
||||
<p>Welcome on GoCMS !</p>
|
||||
<p>Welcome on RenewCMS !</p>
|
||||
<a href="/article">
|
||||
<button class="btn btn-outline-primary">Articles »</button>
|
||||
</a>
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<title>GoCMS | Home</title>
|
||||
<title>RenewCMS | Home</title>
|
||||
{{.Head}}
|
||||
</head>
|
||||
<body class="text-dark">
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<title>GoCMS | Login</title>
|
||||
<title>RenewCMS | Login</title>
|
||||
{{.Head}}
|
||||
|
||||
<style>
|
||||
@@ -14,7 +14,7 @@
|
||||
<div class="container">
|
||||
<div class="d-flex flex-column m-auto form-container">
|
||||
<div>
|
||||
<h1>GoCMS</h1>
|
||||
<h1>RenewCMS</h1>
|
||||
<h2>Login</h2>
|
||||
</div>
|
||||
<form action="login" method="POST" class="mt-5" id="loginForm">
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<title>GoCMS | Password reset</title>
|
||||
<title>RenewCMS | Password reset</title>
|
||||
{{.Head}}
|
||||
|
||||
<style>
|
||||
@@ -14,7 +14,7 @@
|
||||
<div class="container">
|
||||
<div class="d-flex flex-column m-auto form-container">
|
||||
<div>
|
||||
<h1>GoCMS</h1>
|
||||
<h1>RenewCMS</h1>
|
||||
<h2>Admin account password reset</h2>
|
||||
</div>
|
||||
<form action="request" method="POST" class="mt-5" id="registerForm">
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<title>GoCMS | Password reset</title>
|
||||
<title>RenewCMS | Password reset</title>
|
||||
{{.Head}}
|
||||
|
||||
<style>
|
||||
@@ -14,7 +14,7 @@
|
||||
<div class="container">
|
||||
<div class="d-flex flex-column m-auto form-container">
|
||||
<div>
|
||||
<h1>GoCMS</h1>
|
||||
<h1>RenewCMS</h1>
|
||||
<h2>Admin account password reset</h2>
|
||||
</div>
|
||||
<form action="validate" method="POST" class="mt-5" id="registerForm">
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<title>GoCMS | Setup</title>
|
||||
<title>RenewCMS | Setup</title>
|
||||
{{.Head}}
|
||||
|
||||
<style>
|
||||
@@ -14,7 +14,7 @@
|
||||
<div class="container">
|
||||
<div class="d-flex flex-column m-auto form-container">
|
||||
<div>
|
||||
<h1>GoCMS</h1>
|
||||
<h1>RenewCMS</h1>
|
||||
<h2>Admin account creation</h2>
|
||||
</div>
|
||||
<form action="register" method="POST" class="mt-5" id="registerForm">
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<title>GoCMS | Setup</title>
|
||||
<title>RenewCMS | Setup</title>
|
||||
{{.Head}}
|
||||
|
||||
<style>
|
||||
@@ -14,7 +14,7 @@
|
||||
<div class="container">
|
||||
<div class="d-flex flex-column m-auto form-container">
|
||||
<div>
|
||||
<h1>GoCMS</h1>
|
||||
<h1>RenewCMS</h1>
|
||||
<h2>Verify your email</h2>
|
||||
</div>
|
||||
<p>An e-mail with the validation link was sent to the address you just registered.</p>
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<title>GoCMS | Setup</title>
|
||||
<title>RenewCMS | Setup</title>
|
||||
{{.Head}}
|
||||
|
||||
<style>
|
||||
@@ -14,7 +14,7 @@
|
||||
<div class="container">
|
||||
<div class="d-flex flex-column gap-5 m-auto form-container">
|
||||
<div>
|
||||
<h1>GoCMS</h1>
|
||||
<h1>RenewCMS</h1>
|
||||
<h2>E-mail verification</h2>
|
||||
</div>
|
||||
{{ if .PageError.IsError }}
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
package article
|
||||
|
||||
import (
|
||||
"GoCMS/api"
|
||||
"GoCMS/api/controllers/auth"
|
||||
"GoCMS/domain/article"
|
||||
"GoCMS/useCases"
|
||||
"RenewCMS/api"
|
||||
"RenewCMS/api/controllers/auth"
|
||||
"RenewCMS/domain/article"
|
||||
"RenewCMS/useCases"
|
||||
"encoding/json"
|
||||
"net/http"
|
||||
"strconv"
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
package auth
|
||||
|
||||
import (
|
||||
"GoCMS/api"
|
||||
"GoCMS/domain/user"
|
||||
"GoCMS/useCases"
|
||||
"RenewCMS/api"
|
||||
"RenewCMS/domain/user"
|
||||
"RenewCMS/useCases"
|
||||
"encoding/json"
|
||||
"net/http"
|
||||
"os"
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package image
|
||||
|
||||
import (
|
||||
"GoCMS/api"
|
||||
"RenewCMS/api"
|
||||
"encoding/json"
|
||||
"net/http"
|
||||
"strconv"
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
package pages
|
||||
|
||||
import (
|
||||
"GoCMS/api"
|
||||
"GoCMS/useCases"
|
||||
"RenewCMS/api"
|
||||
"RenewCMS/useCases"
|
||||
"html/template"
|
||||
"net/http"
|
||||
"regexp"
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
package pages
|
||||
|
||||
import (
|
||||
"GoCMS/api"
|
||||
"GoCMS/api/controllers/article"
|
||||
"RenewCMS/api"
|
||||
"RenewCMS/api/controllers/article"
|
||||
"fmt"
|
||||
"net/http"
|
||||
"strconv"
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
package pages
|
||||
|
||||
import (
|
||||
"GoCMS/api"
|
||||
"GoCMS/domain/article"
|
||||
"RenewCMS/api"
|
||||
"RenewCMS/domain/article"
|
||||
"html/template"
|
||||
"net/http"
|
||||
"os"
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package pages
|
||||
|
||||
import (
|
||||
"GoCMS/api"
|
||||
"RenewCMS/api"
|
||||
"errors"
|
||||
"net/http"
|
||||
"strconv"
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package pages
|
||||
|
||||
import (
|
||||
"GoCMS/api"
|
||||
"RenewCMS/api"
|
||||
"html/template"
|
||||
"net/http"
|
||||
)
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package pages
|
||||
|
||||
import (
|
||||
"GoCMS/api"
|
||||
"RenewCMS/api"
|
||||
"html/template"
|
||||
"net/http"
|
||||
)
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package pages
|
||||
|
||||
import (
|
||||
"GoCMS/api"
|
||||
"RenewCMS/api"
|
||||
"html/template"
|
||||
"net/http"
|
||||
"os"
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
package pages
|
||||
|
||||
import (
|
||||
"GoCMS/api"
|
||||
"GoCMS/api/controllers/auth"
|
||||
"RenewCMS/api"
|
||||
"RenewCMS/api/controllers/auth"
|
||||
"net/http"
|
||||
"net/url"
|
||||
)
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
package pages
|
||||
|
||||
import (
|
||||
"GoCMS/api"
|
||||
"GoCMS/api/controllers/auth"
|
||||
"GoCMS/api/controllers/image"
|
||||
"RenewCMS/api"
|
||||
"RenewCMS/api/controllers/auth"
|
||||
"RenewCMS/api/controllers/image"
|
||||
"html/template"
|
||||
"net/http"
|
||||
"os"
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package pages
|
||||
|
||||
import (
|
||||
"GoCMS/api"
|
||||
"RenewCMS/api"
|
||||
"net/http"
|
||||
"os"
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package pages
|
||||
|
||||
import (
|
||||
"GoCMS/api"
|
||||
"RenewCMS/api"
|
||||
"net/http"
|
||||
|
||||
"golang.org/x/crypto/bcrypt"
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
package pages
|
||||
|
||||
import (
|
||||
"GoCMS/api"
|
||||
"GoCMS/api/controllers/auth"
|
||||
"RenewCMS/api"
|
||||
"RenewCMS/api/controllers/auth"
|
||||
"net/http"
|
||||
"os"
|
||||
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
package pages
|
||||
|
||||
import (
|
||||
"GoCMS/api"
|
||||
"GoCMS/api/controllers/auth"
|
||||
"RenewCMS/api"
|
||||
"RenewCMS/api/controllers/auth"
|
||||
"log"
|
||||
"net/http"
|
||||
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
package pages
|
||||
|
||||
import (
|
||||
"GoCMS/api"
|
||||
"GoCMS/api/controllers/auth"
|
||||
"RenewCMS/api"
|
||||
"RenewCMS/api/controllers/auth"
|
||||
"net/http"
|
||||
"time"
|
||||
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
package api
|
||||
|
||||
import (
|
||||
"GoCMS/adapters/secondary/gateways"
|
||||
"GoCMS/adapters/secondary/gateways/models"
|
||||
domainGateways "GoCMS/domain/gateways"
|
||||
"GoCMS/useCases"
|
||||
"RenewCMS/adapters/secondary/gateways"
|
||||
"RenewCMS/adapters/secondary/gateways/models"
|
||||
domainGateways "RenewCMS/domain/gateways"
|
||||
"RenewCMS/useCases"
|
||||
"os"
|
||||
"path/filepath"
|
||||
|
||||
|
||||
Vendored
BIN
Binary file not shown.
|
Before Width: | Height: | Size: 19 KiB After Width: | Height: | Size: 15 KiB |
Vendored
BIN
Binary file not shown.
|
Before Width: | Height: | Size: 1.8 KiB |
Vendored
BIN
Binary file not shown.
|
After Width: | Height: | Size: 472 B |
+1
-1
@@ -7,6 +7,6 @@ services:
|
||||
- ${DOCKER_DB_FOLDER}:/app/db/
|
||||
environment:
|
||||
- PORT=8080
|
||||
- DB_FILE=/app/db/gocms.db
|
||||
- DB_FILE=/app/db/RenewCMS.db
|
||||
env_file:
|
||||
- ./.env
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
package article
|
||||
|
||||
import (
|
||||
entity "GoCMS/adapters/secondary/gateways/models"
|
||||
domain "GoCMS/domain/image"
|
||||
entity "RenewCMS/adapters/secondary/gateways/models"
|
||||
domain "RenewCMS/domain/image"
|
||||
"time"
|
||||
)
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package gateways
|
||||
|
||||
import (
|
||||
"GoCMS/domain/article"
|
||||
"RenewCMS/domain/article"
|
||||
)
|
||||
|
||||
type IArticleRepository interface {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package gateways
|
||||
|
||||
import (
|
||||
"GoCMS/domain/image"
|
||||
"RenewCMS/domain/image"
|
||||
"mime/multipart"
|
||||
)
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
package gateways
|
||||
|
||||
import "GoCMS/domain/user"
|
||||
import "RenewCMS/domain/user"
|
||||
|
||||
type IUserRepository interface {
|
||||
Get(id uint32) (user.User, error)
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
package main
|
||||
|
||||
import "GoCMS/main/server"
|
||||
import "RenewCMS/main/server"
|
||||
|
||||
func main() {
|
||||
router := server.InitServer()
|
||||
|
||||
+3
-3
@@ -1,9 +1,9 @@
|
||||
package route
|
||||
|
||||
import (
|
||||
"GoCMS/api/controllers/article"
|
||||
"GoCMS/api/controllers/auth"
|
||||
"GoCMS/api/controllers/pages"
|
||||
"RenewCMS/api/controllers/article"
|
||||
"RenewCMS/api/controllers/auth"
|
||||
"RenewCMS/api/controllers/pages"
|
||||
"encoding/json"
|
||||
"net/http"
|
||||
"os"
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
package server
|
||||
|
||||
import (
|
||||
"GoCMS/api"
|
||||
"GoCMS/main/route"
|
||||
"RenewCMS/api"
|
||||
"RenewCMS/main/route"
|
||||
"fmt"
|
||||
"github.com/go-chi/chi/v5"
|
||||
"github.com/joho/godotenv"
|
||||
|
||||
+1
-1
@@ -2,7 +2,7 @@
|
||||
|
||||
OUTPUT_DIR=./bin
|
||||
GO_FILE_PATH="./main/main.go"
|
||||
PROGRAM_NAME=GoCMS
|
||||
PROGRAM_NAME=RenewCMS
|
||||
|
||||
platforms=("windows/amd64" "windows/arm64" "linux/amd64" "linux/arm64" "darwin/amd64" "darwin/arm64")
|
||||
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
package useCases
|
||||
|
||||
import (
|
||||
"GoCMS/domain/article"
|
||||
"GoCMS/domain/gateways"
|
||||
"RenewCMS/domain/article"
|
||||
"RenewCMS/domain/gateways"
|
||||
)
|
||||
|
||||
type CreateArticleUseCase struct {
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
package useCases
|
||||
|
||||
import (
|
||||
"GoCMS/domain/gateways"
|
||||
"GoCMS/domain/image"
|
||||
"RenewCMS/domain/gateways"
|
||||
"RenewCMS/domain/image"
|
||||
"mime/multipart"
|
||||
)
|
||||
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
package useCases
|
||||
|
||||
import (
|
||||
"GoCMS/domain/gateways"
|
||||
"GoCMS/domain/user"
|
||||
"RenewCMS/domain/gateways"
|
||||
"RenewCMS/domain/user"
|
||||
)
|
||||
|
||||
type CreateUserUseCase struct {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package useCases
|
||||
|
||||
import (
|
||||
"GoCMS/domain/gateways"
|
||||
"RenewCMS/domain/gateways"
|
||||
)
|
||||
|
||||
type DeleteArticleUseCase struct {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package useCases
|
||||
|
||||
import (
|
||||
"GoCMS/domain/gateways"
|
||||
"RenewCMS/domain/gateways"
|
||||
)
|
||||
|
||||
type DeleteImageUseCase struct {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package useCases
|
||||
|
||||
import (
|
||||
"GoCMS/domain/gateways"
|
||||
"RenewCMS/domain/gateways"
|
||||
)
|
||||
|
||||
type DeleteUserUseCase struct {
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
package useCases
|
||||
|
||||
import (
|
||||
"GoCMS/domain/article"
|
||||
"GoCMS/domain/gateways"
|
||||
"RenewCMS/domain/article"
|
||||
"RenewCMS/domain/gateways"
|
||||
)
|
||||
|
||||
type GetArticleUseCase struct {
|
||||
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
package useCases
|
||||
|
||||
import (
|
||||
"GoCMS/domain/gateways"
|
||||
"RenewCMS/domain/gateways"
|
||||
)
|
||||
|
||||
type GetPageUseCase struct {
|
||||
|
||||
+2
-2
@@ -1,8 +1,8 @@
|
||||
package useCases
|
||||
|
||||
import (
|
||||
"GoCMS/domain/gateways"
|
||||
"GoCMS/domain/user"
|
||||
"RenewCMS/domain/gateways"
|
||||
"RenewCMS/domain/user"
|
||||
)
|
||||
|
||||
type GetUserUseCase struct {
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
package useCases
|
||||
|
||||
import (
|
||||
"GoCMS/domain/article"
|
||||
"GoCMS/domain/gateways"
|
||||
"RenewCMS/domain/article"
|
||||
"RenewCMS/domain/gateways"
|
||||
)
|
||||
|
||||
type ListArticlesUseCase struct {
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
package useCases
|
||||
|
||||
import (
|
||||
"GoCMS/domain/gateways"
|
||||
"GoCMS/domain/user"
|
||||
"RenewCMS/domain/gateways"
|
||||
"RenewCMS/domain/user"
|
||||
)
|
||||
|
||||
type ListUsersUseCase struct {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package useCases
|
||||
|
||||
import (
|
||||
"GoCMS/domain/gateways"
|
||||
"RenewCMS/domain/gateways"
|
||||
)
|
||||
|
||||
type SendMailUseCase struct {
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
package useCases
|
||||
|
||||
import (
|
||||
"GoCMS/domain/article"
|
||||
"GoCMS/domain/gateways"
|
||||
"RenewCMS/domain/article"
|
||||
"RenewCMS/domain/gateways"
|
||||
)
|
||||
|
||||
type UpdateArticleUseCase struct {
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
package useCases
|
||||
|
||||
import (
|
||||
"GoCMS/domain/gateways"
|
||||
"GoCMS/domain/user"
|
||||
"RenewCMS/domain/gateways"
|
||||
"RenewCMS/domain/user"
|
||||
)
|
||||
|
||||
type UpdateUserUseCase struct {
|
||||
|
||||
Reference in New Issue
Block a user