Refine the structure of this project.

This commit is contained in:
zicla
2019-04-26 14:32:15 +08:00
parent e88930e13a
commit c251ed9f1b
69 changed files with 5494 additions and 2251 deletions

View File

@ -1,11 +1,11 @@
package rest
import (
"github.com/eyebluecn/tank/code/tool/builder"
"github.com/eyebluecn/tank/code/tool/result"
"net/http"
"strconv"
"strings"
"tank/code/tool/builder"
"tank/code/tool/result"
)
type MatterController struct {
@ -137,32 +137,32 @@ func (this *MatterController) Page(writer http.ResponseWriter, request *http.Req
sortArray := []builder.OrderPair{
{
key: "dir",
value: orderDir,
Key: "dir",
Value: orderDir,
},
{
key: "create_time",
value: orderCreateTime,
Key: "create_time",
Value: orderCreateTime,
},
{
key: "update_time",
value: orderUpdateTime,
Key: "update_time",
Value: orderUpdateTime,
},
{
key: "sort",
value: orderSort,
Key: "sort",
Value: orderSort,
},
{
key: "size",
value: orderSize,
Key: "size",
Value: orderSize,
},
{
key: "name",
value: orderName,
Key: "name",
Value: orderName,
},
{
key: "times",
value: orderTimes,
Key: "times",
Value: orderTimes,
},
}