MCPcopy Index your code
hub / github.com/TruthHun/DocHub / installSys

Function installSys

models/Install.go:40–81  ·  view source on GitHub ↗

安装系统初始数据

()

Source from the content-addressed store, hash-verified

38
39//安装系统初始数据
40func installSys() {
41 var sys = Sys{
42 Id: 1,
43 TplEmailReg: `<style type="text/css">
44 p{text-indent: 2em;}
45 </style>
46 <div><strong>尊敬的用户</strong></div>
47 <p>您好,非常感谢您对DocHub文库(<a href="https://github.com/TruthHun/DocHub" target="_blank" title="DocHub文库">DocHub</a>)的关注和热爱</p>
48 <p>您本次申请注册成为DocHub文库会员的邮箱验证码是: <strong style="font-size: 30px;color: red;">{code}</strong></p>
49 <p>如果非您本人操作,请忽略该邮件。</p>`,
50 TplEmailFindPwd: `<style type="text/css">
51 p{text-indent: 2em;}
52 </style>
53 <div><strong>尊敬的用户</strong></div>
54 <p>您好,非常感谢您对DocHub文库(<a href="https://github.com/TruthHun/DocHub" target="_blank" title="DocHub文库">DocHub</a>)的关注和热爱</p>
55 <p>您本次申请找回密码的邮箱验证码是: <strong style="font-size: 30px;color: red;">{code}</strong></p>
56 <p>如果非您本人操作,请忽略该邮件。</p>`,
57 Trends: "1,2,3,4,5",
58 Site: "DocHub(多哈)文库",
59 Reward: 5,
60 Sign: 5,
61 Question: "DocHub文库的中文名是什么?",
62 Answer: "多哈",
63 ListRows: 10,
64 TimeExpireHotspot: 604800,
65 TimeExpireRelate: 604800,
66 MaxFile: 52428800, //50M
67 CoinReg: 10, //注册奖励金币
68 MobileOn: true,
69 ReportReasons: `1:垃圾广告
702:淫秽色情
713:虚假中奖
724:敏感信息
735:人身攻击
746:骚扰他人`, //举报原因
75 Watermark: "DocHub", //文档水印
76 StoreType: string(StoreOss),
77 CheckRegEmail: true,
78 AllowRepeatedDoc: false,
79 }
80 orm.NewOrm().ReadOrCreate(&sys, "Id")
81}
82
83//安装友链初始数据
84func installFriendlinks() {

Callers 1

installFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected