chore!(all): attempt to update beego to v2

BREAKING CHANGE: beego has update to v2, and this version of mindoc IS
NOT TESTED AND STABLE!!!
This commit is contained in:
roberChen
2021-03-23 21:55:50 +08:00
parent 79f70d830d
commit 90c1329de2
56 changed files with 1021 additions and 766 deletions

View File

@@ -17,7 +17,7 @@ import (
"regexp"
"strconv"
"strings"
"github.com/astaxie/beego"
"github.com/beego/beego/v2/adapter/logs"
)
var (
@@ -229,7 +229,6 @@ func (c *SMTPClient) SendTLS(m Mail, message bytes.Buffer) error {
return err
}
ct, err = smtp.NewClient(conn, c.host)
if err != nil {
log.Println(err)
@@ -247,8 +246,8 @@ func (c *SMTPClient) SendTLS(m Mail, message bytes.Buffer) error {
//}
fmt.Println(c.smtpAuth)
if ok,s := ct.Extension("AUTH"); ok {
beego.Info(s)
if ok, s := ct.Extension("AUTH"); ok {
logs.Info(s)
// Auth
if err = ct.Auth(c.smtpAuth); err != nil {
log.Println("Auth Error:",