Inserted web templates, readme, license. Updated logo and favicon

This commit is contained in:
2019-07-06 15:55:06 +08:00
parent d606cc129b
commit 31796678ae
54 changed files with 1329 additions and 51 deletions

View File

@@ -11,12 +11,14 @@ import (
"strconv"
)
// TextTemplate is the persistent object within Postgres
type TextTemplate struct {
gorm.Model
Name string
TemplateStr string
}
// TextTemplateJson is the temporary object for JSON data passing
type TextTemplateJson struct {
Id int `json:"id"`
Name string `json:"name"`
@@ -238,3 +240,4 @@ func textTemplateToJson(textTemplate TextTemplate) TextTemplateJson {
result.CreateDate = textTemplate.CreatedAt
return result
}