feat: add template data annotations and update styles for email templates

This commit is contained in:
RecordingTheSmile
2025-10-26 19:06:39 +08:00
parent ea929bd034
commit 70ff7ca806
3 changed files with 10 additions and 7 deletions
@@ -1,3 +1,4 @@
{{- /*gotype: likedream-goframe/internal/service/email.BaseTemplateData*/ -}}
{{define "layout"}} {{define "layout"}}
<!DOCTYPE html> <!DOCTYPE html>
<html> <html>
@@ -1,13 +1,15 @@
{{- /*gotype: likedream-goframe/internal/service/email.SignupTemplateData*/ -}}
{{template "layout" .}} {{template "layout" .}}
{{define "extra-styles"}} {{define "extra-styles"}}
<style> <style>
.feature-list { .feature-list {
background: linear-gradient(135deg, #f8faff 0%, #f1f5f9 100%); background: linear-gradient(90deg, #f5f7fa 0%, #c3cfe2 100%);
border-radius: 12px; border-radius: 8px;
padding: 25px; padding: 20px 24px;
margin: 25px 0;
border-left: 4px solid #667eea; border-left: 4px solid #667eea;
margin: 24px 0;
} }
.feature-list ul { .feature-list ul {
@@ -16,9 +18,8 @@
} }
.feature-list li { .feature-list li {
padding: 8px 0;
position: relative; position: relative;
padding-left: 30px; padding: 8px 0 8px 30px;
font-size: 15px; font-size: 15px;
} }
@@ -1,3 +1,4 @@
{{- /*gotype:likedream-goframe/internal/service/email.TaskNotificationTemplateData*/ -}}
{{template "layout" .}} {{template "layout" .}}
{{define "extra-styles"}} {{define "extra-styles"}}