Skip to content

Commit

Permalink
Rename rest to code.
Browse files Browse the repository at this point in the history
  • Loading branch information
zicla committed Apr 25, 2019
1 parent 4625643 commit ce84a9c
Show file tree
Hide file tree
Showing 67 changed files with 138 additions and 124 deletions.
14 changes: 14 additions & 0 deletions build/doc/dependency.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Package dependency

```
main
├── bin
├── pkg
├── src
│   ├── github.com
│   ├── golang.org
│   ├── tank
│   │   ├── build
│   │   │   ├── conf
│   │   │   ├── doc
```
6 changes: 3 additions & 3 deletions rest/alien_controller.go → code/alien_controller.go
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
package rest
package code

import (
"fmt"
"net/http"
"regexp"
"strconv"
"tank/rest/result"
"tank/rest/tool"
"tank/code/result"
"tank/code/tool"
"time"
)

Expand Down
6 changes: 3 additions & 3 deletions rest/alien_service.go → code/alien_service.go
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
package rest
package code

import (
"fmt"
"net/http"
"tank/rest/result"
"tank/rest/tool"
"tank/code/result"
"tank/code/tool"
"time"
)

Expand Down
4 changes: 2 additions & 2 deletions rest/base_controller.go → code/base_controller.go
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
package rest
package code

import (
"fmt"
"github.com/json-iterator/go"
"go/types"
"net/http"
"tank/rest/result"
"tank/code/result"
)

type IController interface {
Expand Down
2 changes: 1 addition & 1 deletion rest/base_dao.go → code/base_dao.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package rest
package code

type BaseDao struct {
Bean
Expand Down
4 changes: 2 additions & 2 deletions rest/base_model.go → code/base_model.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package rest
package code

import (
"math"
"reflect"
"tank/rest/config"
"tank/code/config"
"time"
)

Expand Down
10 changes: 5 additions & 5 deletions rest/bean.go → code/bean.go
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
package rest
package code

import (
"net/http"
"tank/rest/config"
"tank/rest/logger"
"tank/rest/result"
"tank/rest/tool"
"tank/code/config"
"tank/code/logger"
"tank/code/result"
"tank/code/tool"
)

type IBean interface {
Expand Down
2 changes: 1 addition & 1 deletion rest/cache/cache.go → code/cache/cache.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"fmt"
"sort"
"sync"
"tank/rest/tool"
"tank/code/tool"
"time"
)

Expand Down
4 changes: 2 additions & 2 deletions rest/config/config.go → code/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package config
import (
"github.com/json-iterator/go"
"io/ioutil"
"tank/rest/logger"
"tank/rest/tool"
"tank/code/logger"
"tank/code/tool"
"time"
"unsafe"
)
Expand Down
8 changes: 4 additions & 4 deletions rest/context.go → code/context.go
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
package rest
package code

import (
"fmt"
"github.com/jinzhu/gorm"
"reflect"
"tank/rest/cache"
"tank/rest/config"
"tank/rest/logger"
"tank/code/cache"
"tank/code/config"
"tank/code/logger"
)

//全局唯一的上下文(在main函数中初始化)
Expand Down
4 changes: 2 additions & 2 deletions rest/dashboard_controller.go → code/dashboard_controller.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package rest
package code

import (
"net/http"
"strconv"
"tank/rest/result"
"tank/code/result"
)

type DashboardController struct {
Expand Down
2 changes: 1 addition & 1 deletion rest/dashboard_dao.go → code/dashboard_dao.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package rest
package code

import (
"github.com/jinzhu/gorm"
Expand Down
4 changes: 2 additions & 2 deletions rest/dashboard_model.go → code/dashboard_model.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package rest
package code

import "tank/rest/config"
import "tank/code/config"

/**
* 系统的所有访问记录均记录在此
Expand Down
4 changes: 2 additions & 2 deletions rest/dashboard_service.go → code/dashboard_service.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package rest
package code

import (
"tank/rest/tool"
"tank/code/tool"
"time"
)

Expand Down
4 changes: 2 additions & 2 deletions rest/dav/prop.go → code/dav/prop.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ import (
"fmt"
"io"
"net/http"
"tank/rest/dav/xml"
"tank/rest/result"
"tank/code/dav/xml"
"tank/code/result"
)

// Proppatch describes a property update instruction as defined in RFC 4918.
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
6 changes: 3 additions & 3 deletions rest/dav_controller.go → code/dav_controller.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package rest
package code

import (
"bytes"
Expand All @@ -7,8 +7,8 @@ import (
"net/http"
"regexp"
"strings"
"tank/rest/result"
"tank/rest/tool"
"tank/code/result"
"tank/code/tool"
)

/**
Expand Down
6 changes: 3 additions & 3 deletions rest/dav_model.go → code/dav_model.go
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
package rest
package code

import (
"fmt"
"net/http"
"path"
"strconv"
"tank/rest/dav"
"tank/rest/dav/xml"
"tank/code/dav"
"tank/code/dav/xml"
)

//访问前缀,这个是特殊入口
Expand Down
10 changes: 5 additions & 5 deletions rest/dav_service.go → code/dav_service.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package rest
package code

import (
"fmt"
Expand All @@ -7,10 +7,10 @@ import (
"path"
"regexp"
"strings"
"tank/rest/dav"
"tank/rest/dav/xml"
"tank/rest/result"
"tank/rest/tool"
"tank/code/dav"
"tank/code/dav/xml"
"tank/code/result"
"tank/code/tool"
)

/**
Expand Down
4 changes: 2 additions & 2 deletions rest/download/download.go → code/download/download.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ import (
"os"
"strconv"
"strings"
"tank/rest/result"
"tank/rest/tool"
"tank/code/result"
"tank/code/tool"
"time"
)

Expand Down
2 changes: 1 addition & 1 deletion rest/download_token_dao.go → code/download_token_dao.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package rest
package code

import (

Expand Down
4 changes: 2 additions & 2 deletions rest/download_token_model.go → code/download_token_model.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package rest
package code

import (
"tank/rest/config"
"tank/code/config"
"time"
)

Expand Down
4 changes: 2 additions & 2 deletions rest/footprint_controller.go → code/footprint_controller.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package rest
package code

import (
"net/http"
"strconv"
"tank/rest/result"
"tank/code/result"
)

type FootprintController struct {
Expand Down
2 changes: 1 addition & 1 deletion rest/footprint_dao.go → code/footprint_dao.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package rest
package code

import (
"github.com/jinzhu/gorm"
Expand Down
4 changes: 2 additions & 2 deletions rest/footprint_model.go → code/footprint_model.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package rest
package code

import "tank/rest/config"
import "tank/code/config"

/**
* 系统的所有访问记录均记录在此
Expand Down
6 changes: 3 additions & 3 deletions rest/footprint_service.go → code/footprint_service.go
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
package rest
package code

import (
"encoding/json"
"net/http"
"tank/rest/config"
"tank/rest/tool"
"tank/code/config"
"tank/code/tool"
"time"
)

Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
package rest
package code

import (
"net/http"
"strconv"
"strings"
"tank/rest/result"
"tank/code/result"
)

type ImageCacheController struct {
Expand Down
4 changes: 2 additions & 2 deletions rest/image_cache_dao.go → code/image_cache_dao.go
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
package rest
package code

import (
"fmt"
"github.com/jinzhu/gorm"
"github.com/nu7hatch/gouuid"
"os"
"path/filepath"
"tank/rest/tool"
"tank/code/tool"
"time"
)

Expand Down
4 changes: 2 additions & 2 deletions rest/image_cache_model.go → code/image_cache_model.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package rest
package code

import (
"tank/rest/config"
"tank/code/config"
)

/**
Expand Down
4 changes: 2 additions & 2 deletions rest/image_cache_service.go → code/image_cache_service.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package rest
package code

import (
"fmt"
Expand All @@ -9,7 +9,7 @@ import (
"path/filepath"
"strconv"
"strings"
"tank/rest/tool"
"tank/code/tool"
)

//@Service
Expand Down
8 changes: 4 additions & 4 deletions rest/install_controller.go → code/install_controller.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package rest
package code

import (
"fmt"
Expand All @@ -11,9 +11,9 @@ import (
"os"
"regexp"
"strconv"
"tank/rest/config"
"tank/rest/result"
"tank/rest/tool"
"tank/code/config"
"tank/code/result"
"tank/code/tool"
"time"
)

Expand Down
2 changes: 1 addition & 1 deletion rest/install_model.go → code/install_model.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package rest
package code

import "github.com/jinzhu/gorm"

Expand Down
2 changes: 1 addition & 1 deletion rest/logger/logger.go → code/logger/logger.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"os"
"runtime"
"sync"
"tank/rest/tool"
"tank/code/tool"
"time"
)

Expand Down
Loading

0 comments on commit ce84a9c

Please sign in to comment.