go-common/app/job/main/up/cmd/mail-template.toml

76 lines
2.1 KiB
TOML
Raw Normal View History

2019-04-22 10:49:16 +00:00
[MailTemplateConf]
SignTmplTitle = """[签约Up即将到期]{{Now.Format "2006-01-02"}}"""
SignTmplContent = """
<html>
<body>
<h4><a href="http://up-profit.bilibili.co/allowance/#/contract-manage/all-contracts">upCRM-</a></h4>
<table border="1">
<tr>
<td>id</td>
<td></td>
<td>uid</td>
<td></td>
</tr>
{{range .}}
<tr>
<td>{{.ID}}</td>
<td>{{.Name}}</td>
<td>{{.Mid}}</td>
<td>{{.EndDate.Time.Format "2006-01-02"}}</td>
</tr>
{{end}}
</table>
</body>
</html>
"""
PayTmplTitle = """"[Up]{{Now.Format "2006-01-02"}}"""
PayTmplContent = """
<html>
<body>
<h4>,<a href="http://up-profit.bilibili.co/allowance/#/contract-manage/all-contracts">upCRM-</a></h4>
<table border=1>
<tr>
<td>id</td>
<td></td>
<td>uid</td>
<td></td>
<td></td>
</tr>
{{range .}}
<tr>
<td>{{.SignID}}</td>
<td>{{.Name}}</td>
<td>{{.Mid}}</td>
<td>{{.DueDate.Time.Format "2006-01-02"}}</td>
<td>{{printf "%.2f" .GetPayValue}}</td>
</tr>
{{end}}
</table>
</body>
</html>"""
TaskTmplTitle = """[签约Up任务还未完成]{{Now.Format "2006-01-02"}}"""
TaskTmplContent = """
<html>
<body>
up<a href="http://up-profit.bilibili.co/allowance/#/contract-manage/all-contracts">upCRM-</a>
<table border=1>
<tr>
<td>id</td>
<td></td>
<td>uid</td>
<td></td>
<td></td>
</tr>
{{range .}}
<tr>
<td>{{.SignID}}</td>
<td>{{.Name}}</td>
<td>{{.Mid}}</td>
<td>{{(.EndDate.Time.AddDate 0 0 -1).Format "2006-01-02"}}</td>
<td>{{(printf "%s投稿 %d/%d" .TypeDesc .TaskCounter .TaskCondition)}}</td>
</tr>
{{end}}
</table>
</body>
</html>"""