| | |
| | | "github.com/gomodule/redigo/redis" |
| | | "net/http" |
| | | "strings" |
| | | "video-analysis-shop/api/code" |
| | | "video-analysis-shop/api/util" |
| | | "video-analysis-shop/cache" |
| | | "shop-common/code" |
| | | "shop-common/util" |
| | | "shop-common/cache" |
| | | ) |
| | | |
| | | const ( |
| | |
| | | import ( |
| | | "fmt" |
| | | redigo "github.com/gomodule/redigo/redis" |
| | | "video-analysis-shop/config" |
| | | "shop-common/config" |
| | | ) |
| | | |
| | | var pool *redigo.Pool |
| | |
| | | "github.com/gin-gonic/gin" |
| | | "github.com/micro/go-micro/metadata" |
| | | "github.com/micro/go-micro/server" |
| | | "video-analysis-shop/config" |
| | | "video-analysis-shop/proto/user" |
| | | "shop-common/config" |
| | | "shop-common/proto/user" |
| | | ) |
| | | |
| | | var ( |
| | |
| | | "github.com/micro/cli" |
| | | "log" |
| | | "time" |
| | | "video-analysis-shop/config" |
| | | "shop-common/config" |
| | | |
| | | //gh "github.com/afex/hystrix-go/hystrix" |
| | | "github.com/micro/go-micro" |
| | |
| | | "strconv" |
| | | "strings" |
| | | "time" |
| | | "video-analysis-shop/api/code" |
| | | "shop-common/code" |
| | | ) |
| | | |
| | | func ResponseFormat(c *gin.Context, respStatus *code.Code, data interface{}) { |