更新代码
This commit is contained in:
@@ -7,7 +7,6 @@ import (
|
||||
"strconv"
|
||||
"strings"
|
||||
|
||||
"server/models"
|
||||
"server/pkg/jwtutil"
|
||||
"server/services"
|
||||
|
||||
@@ -27,11 +26,6 @@ type BackendOaDocumentController struct {
|
||||
beego.Controller
|
||||
}
|
||||
|
||||
// Prepare 所有接口执行前确保文档相关表存在。
|
||||
func (c *BackendOaDocumentController) Prepare() {
|
||||
_ = models.EnsureOaDocumentTables()
|
||||
}
|
||||
|
||||
func (c *BackendOaDocumentController) oaDocClaims() (*jwtutil.Claims, error) {
|
||||
auth := c.Ctx.Request.Header.Get("Authorization")
|
||||
if auth == "" {
|
||||
|
||||
Reference in New Issue
Block a user