Finish half translation work.

This commit is contained in:
zicla
2019-05-04 23:36:05 +08:00
parent 900924d196
commit 5625149766
52 changed files with 613 additions and 950 deletions

View File

@ -1,12 +1,14 @@
package rest
import "github.com/eyebluecn/tank/code/tool/builder"
import (
"github.com/eyebluecn/tank/code/tool/builder"
)
type BaseDao struct {
BaseBean
}
//根据一个sortMap获取到order字符串
//get an order string by sortMap
func (this *BaseDao) GetSortString(sortArray []builder.OrderPair) string {
if sortArray == nil || len(sortArray) == 0 {
@ -14,7 +16,7 @@ func (this *BaseDao) GetSortString(sortArray []builder.OrderPair) string {
}
str := ""
for _, pair := range sortArray {
if pair.Value == "DESC" || pair.Value == "ASC" {
if pair.Value == DIRECTION_DESC || pair.Value == DIRECTION_ASC {
if str != "" {
str = str + ","
}