@ -6,7 +6,8 @@ import (
"regexp"
"strconv"
"tank/code/result"
"tank/code/util"
"tank/code/tool/util"
"time"
)
@ -4,7 +4,7 @@ import (
"fmt"
"net/http"
@ -5,7 +5,7 @@ import (
"tank/code/config"
"tank/code/logger"
type IBean interface {
@ -46,6 +46,7 @@ func (this *Bean) PanicError(err error) {
//能找到一个user就找到一个
func (this *Bean) findUser(writer http.ResponseWriter, request *http.Request) *User {
//验证用户是否已经登录。
//登录身份有效期以数据库中记录的为准
sessionId := util.GetSessionUuidFromRequest(request, config.COOKIE_AUTH_KEY)
"sort"
"sync"
@ -388,7 +388,7 @@ func (table *CacheTable) MostAccessed(count int64) []*CacheItem {
// 打印日志
func (table *CacheTable) log(format string, v ...interface{}) {
//全局日志记录
//TODO: 全局日志记录
//LOGGER.Info(format, v...)
}
"github.com/json-iterator/go"
"io/ioutil"
"unsafe"
@ -1,7 +1,7 @@
package code
import (
@ -8,7 +8,7 @@ import (
"strings"
/**
@ -10,7 +10,7 @@ import (
"tank/code/dav"
"tank/code/dav/xml"
@ -12,7 +12,7 @@ import (
"encoding/json"
@ -6,7 +6,7 @@ import (
"github.com/nu7hatch/gouuid"
"os"
"path/filepath"
@ -9,7 +9,7 @@ import (
//@Service
@ -13,7 +13,7 @@ import (
"runtime"
@ -3,7 +3,7 @@ package code
const (
"tank/code/download"
type PreferenceController struct {
@ -6,8 +6,7 @@ import (