Add tool dir.

This commit is contained in:
zicla 2019-04-26 03:08:22 +08:00
parent aed1ee2001
commit c5de9ce9eb
28 changed files with 23 additions and 22 deletions

View File

@ -6,7 +6,8 @@ import (
"regexp"
"strconv"
"tank/code/result"
"tank/code/util"
"tank/code/tool/util"
"time"
)

View File

@ -4,7 +4,7 @@ import (
"fmt"
"net/http"
"tank/code/result"
"tank/code/util"
"tank/code/tool/util"
"time"
)

View File

@ -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
View File

@ -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...)
}

View File

@ -4,7 +4,7 @@ import (
"github.com/json-iterator/go"
"io/ioutil"
"tank/code/logger"
"tank/code/util"
"tank/code/tool/util"
"time"
"unsafe"
)

View File

@ -1,7 +1,7 @@
package code
import (
"tank/code/util"
"tank/code/tool/util"
"time"
)

View File

@ -8,7 +8,7 @@ import (
"regexp"
"strings"
"tank/code/result"
"tank/code/util"
"tank/code/tool/util"
)
/**

View File

@ -10,7 +10,7 @@ import (
"tank/code/dav"
"tank/code/dav/xml"
"tank/code/result"
"tank/code/util"
"tank/code/tool/util"
)
/**

View File

@ -12,7 +12,7 @@ import (
"strconv"
"strings"
"tank/code/result"
"tank/code/util"
"tank/code/tool/util"
"time"
)

View File

@ -4,7 +4,7 @@ import (
"encoding/json"
"net/http"
"tank/code/config"
"tank/code/util"
"tank/code/tool/util"
"time"
)

View File

@ -6,7 +6,7 @@ import (
"github.com/nu7hatch/gouuid"
"os"
"path/filepath"
"tank/code/util"
"tank/code/tool/util"
"time"
)

View File

@ -9,7 +9,7 @@ import (
"path/filepath"
"strconv"
"strings"
"tank/code/util"
"tank/code/tool/util"
)
//@Service

View File

@ -13,7 +13,7 @@ import (
"strconv"
"tank/code/config"
"tank/code/result"
"tank/code/util"
"tank/code/tool/util"
"time"
)

View File

@ -6,7 +6,7 @@ import (
"os"
"runtime"
"sync"
"tank/code/util"
"tank/code/tool/util"
"time"
)

View File

@ -6,7 +6,7 @@ import (
"os"
"tank/code/config"
"tank/code/result"
"tank/code/util"
"tank/code/tool/util"
"time"
)

View File

@ -3,7 +3,7 @@ package code
import (
"fmt"
"tank/code/config"
"tank/code/util"
"tank/code/tool/util"
)
const (

View File

@ -8,7 +8,7 @@ import (
"strings"
"tank/code/download"
"tank/code/result"
"tank/code/util"
"tank/code/tool/util"
)
/**

View File

@ -3,7 +3,7 @@ package code
import (
"net/http"
"tank/code/result"
"tank/code/util"
"tank/code/tool/util"
)
type PreferenceController struct {

View File

@ -10,7 +10,7 @@ import (
"tank/code/config"
"tank/code/logger"
"tank/code/result"
"tank/code/util"
"tank/code/tool/util"
"time"
)

View File

@ -6,8 +6,7 @@ import (
"strconv"
"tank/code/config"
"tank/code/result"
"tank/code/util"
"tank/code/tool/util"
"time"
)