This repository has been archived by the owner on May 16, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
24 changed files
with
580 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
create table bug_reports | ||
( | ||
uuid varchar(36) not null primary key, | ||
created timestamptz not null, | ||
operator_uuid varchar(36) not null, | ||
email varchar not null, | ||
center_uuid varchar not null, | ||
center_name varchar not null, | ||
center_address varchar not null, | ||
subject text not null, | ||
message text | ||
); | ||
|
||
alter table operators | ||
add email varchar, | ||
add bug_reports_receiver varchar; | ||
|
||
alter table centers | ||
add email varchar; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
create table system_settings | ||
( | ||
config_key varchar not null primary key, | ||
config_value text | ||
); | ||
|
||
INSERT INTO public.system_settings (config_key, config_value) VALUES ('reports.email.default', '[email protected]'); | ||
INSERT INTO public.system_settings (config_key, config_value) VALUES ('reports.email.subject', 'Meldungen zur Ihren Teststellen'); | ||
INSERT INTO public.system_settings (config_key, config_value) VALUES ('reports.email.template', 'Guten Tag,<br> | ||
<br> | ||
für Ihre Teststellen wurden folgende Fehler gemeldet.<br> | ||
<br> | ||
{{range $center, $reports := .Centers}}Meldungen für die Teststelle {{(index $reports 0).CenterName}} ({{(index $reports 0).CenterAddress}})<br> | ||
<ul> | ||
{{range $reportUUID, $report := $reports}} | ||
<li>{{$report.Subject}} {{if $report.Message}}(Hinweis: {{$report.Message}}){{end}} (Gemeldet am {{$report.Created}}){{end}}</li> | ||
</ul> | ||
<br> | ||
{{end}} | ||
<br> | ||
Viele Grüße<br> | ||
Ihr Schnelltestportal.de Team'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
package model | ||
|
||
type CreateBugReportRequestDTO struct { | ||
Subject string `json:"subject" validate:"required,max=160"` | ||
Message *string `json:"message" validate:"omitempty,max=160"` | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
package domain | ||
|
||
import "time" | ||
|
||
const ( | ||
ReportReceiverCenter = "center" | ||
ReportReceiverOperator = "operator" | ||
) | ||
|
||
type BugReport struct { | ||
UUID string `gorm:"primaryKey"` | ||
Created time.Time | ||
Email string | ||
OperatorUUID string | ||
Operator Operator | ||
CenterUUID string | ||
CenterName string | ||
CenterAddress string | ||
Subject string | ||
Message *string | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,12 @@ | ||
package domain | ||
|
||
type Operator struct { | ||
UUID string `gorm:"primaryKey"` | ||
Subject *string | ||
OperatorNumber *string | ||
Name string | ||
Logo *string | ||
MarkerIcon *string | ||
UUID string `gorm:"primaryKey"` | ||
Subject *string | ||
OperatorNumber *string | ||
Name string | ||
Logo *string | ||
MarkerIcon *string | ||
Email *string | ||
BugReportsReceiver *string | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
package domain | ||
|
||
type SystemSetting struct { | ||
ConfigKey string | ||
ConfigValue *string | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.