Add tool dir.
This commit is contained in:
parent
aed1ee2001
commit
c5de9ce9eb
@ -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"
|
||||
"tank/code/result"
|
||||
"tank/code/util"
|
||||
"tank/code/tool/util"
|
||||
"time"
|
||||
)
|
||||
|
||||
|
@ -5,7 +5,7 @@ import (
|
||||
"tank/code/config"
|
||||
"tank/code/logger"
|
||||
"tank/code/result"
|
||||
"tank/code/util"
|
||||
"tank/code/tool/util"
|
||||
)
|
||||
|
||||
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)
|
||||
|
4
code/cache/cache.go
vendored
4
code/cache/cache.go
vendored
@ -5,7 +5,7 @@ import (
|
||||
"fmt"
|
||||
"sort"
|
||||
"sync"
|
||||
"tank/code/util"
|
||||
"tank/code/tool/util"
|
||||
"time"
|
||||
)
|
||||
|
||||
@ -388,7 +388,7 @@ func (table *CacheTable) MostAccessed(count int64) []*CacheItem {
|
||||
|
||||
// 打印日志
|
||||
func (table *CacheTable) log(format string, v ...interface{}) {
|
||||
//全局日志记录
|
||||
//TODO: 全局日志记录
|
||||
//LOGGER.Info(format, v...)
|
||||
}
|
||||
|
||||
|
@ -4,7 +4,7 @@ import (
|
||||
"github.com/json-iterator/go"
|
||||
"io/ioutil"
|
||||
"tank/code/logger"
|
||||
"tank/code/util"
|
||||
"tank/code/tool/util"
|
||||
"time"
|
||||
"unsafe"
|
||||
)
|
||||
|
@ -1,7 +1,7 @@
|
||||
package code
|
||||
|
||||
import (
|
||||
"tank/code/util"
|
||||
"tank/code/tool/util"
|
||||
"time"
|
||||
)
|
||||
|
||||
|
@ -8,7 +8,7 @@ import (
|
||||
"regexp"
|
||||
"strings"
|
||||
"tank/code/result"
|
||||
"tank/code/util"
|
||||
"tank/code/tool/util"
|
||||
)
|
||||
|
||||
/**
|
||||
|
@ -10,7 +10,7 @@ import (
|
||||
"tank/code/dav"
|
||||
"tank/code/dav/xml"
|
||||
"tank/code/result"
|
||||
"tank/code/util"
|
||||
"tank/code/tool/util"
|
||||
)
|
||||
|
||||
/**
|
||||
|
@ -12,7 +12,7 @@ import (
|
||||
"strconv"
|
||||
"strings"
|
||||
"tank/code/result"
|
||||
"tank/code/util"
|
||||
"tank/code/tool/util"
|
||||
"time"
|
||||
)
|
||||
|
||||
|
@ -4,7 +4,7 @@ import (
|
||||
"encoding/json"
|
||||
"net/http"
|
||||
"tank/code/config"
|
||||
"tank/code/util"
|
||||
"tank/code/tool/util"
|
||||
"time"
|
||||
)
|
||||
|
||||
|
@ -6,7 +6,7 @@ import (
|
||||
"github.com/nu7hatch/gouuid"
|
||||
"os"
|
||||
"path/filepath"
|
||||
"tank/code/util"
|
||||
"tank/code/tool/util"
|
||||
"time"
|
||||
)
|
||||
|
||||
|
@ -9,7 +9,7 @@ import (
|
||||
"path/filepath"
|
||||
"strconv"
|
||||
"strings"
|
||||
"tank/code/util"
|
||||
"tank/code/tool/util"
|
||||
)
|
||||
|
||||
//@Service
|
||||
|
@ -13,7 +13,7 @@ import (
|
||||
"strconv"
|
||||
"tank/code/config"
|
||||
"tank/code/result"
|
||||
"tank/code/util"
|
||||
"tank/code/tool/util"
|
||||
"time"
|
||||
)
|
||||
|
||||
|
@ -6,7 +6,7 @@ import (
|
||||
"os"
|
||||
"runtime"
|
||||
"sync"
|
||||
"tank/code/util"
|
||||
"tank/code/tool/util"
|
||||
"time"
|
||||
)
|
||||
|
||||
|
@ -6,7 +6,7 @@ import (
|
||||
"os"
|
||||
"tank/code/config"
|
||||
"tank/code/result"
|
||||
"tank/code/util"
|
||||
"tank/code/tool/util"
|
||||
"time"
|
||||
)
|
||||
|
||||
|
@ -3,7 +3,7 @@ package code
|
||||
import (
|
||||
"fmt"
|
||||
"tank/code/config"
|
||||
"tank/code/util"
|
||||
"tank/code/tool/util"
|
||||
)
|
||||
|
||||
const (
|
||||
|
@ -8,7 +8,7 @@ import (
|
||||
"strings"
|
||||
"tank/code/download"
|
||||
"tank/code/result"
|
||||
"tank/code/util"
|
||||
"tank/code/tool/util"
|
||||
)
|
||||
|
||||
/**
|
||||
|
@ -3,7 +3,7 @@ package code
|
||||
import (
|
||||
"net/http"
|
||||
"tank/code/result"
|
||||
"tank/code/util"
|
||||
"tank/code/tool/util"
|
||||
)
|
||||
|
||||
type PreferenceController struct {
|
||||
|
@ -10,7 +10,7 @@ import (
|
||||
"tank/code/config"
|
||||
"tank/code/logger"
|
||||
"tank/code/result"
|
||||
"tank/code/util"
|
||||
"tank/code/tool/util"
|
||||
"time"
|
||||
)
|
||||
|
||||
|
@ -6,8 +6,7 @@ import (
|
||||
"strconv"
|
||||
"tank/code/config"
|
||||
"tank/code/result"
|
||||
"tank/code/util"
|
||||
|
||||
"tank/code/tool/util"
|
||||
"time"
|
||||
)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user