parent
1cf21a96f5
commit
9e1190b2b6
@ -1,5 +0,0 @@
|
||||
#protoc --go_out=. --go_opt=paths=source_relative --go-grpc_out=. --go-grpc_opt=paths=source_relative --grpc-gateway_out . --grpc-gateway_opt paths=source_relative ./pb/basics.proto
|
||||
|
||||
protoc --go_out=. --go_opt=paths=source_relative --go-grpc_out=. --go-grpc_opt=paths=source_relative ./pb/basics.proto
|
||||
protoc --go_out=. --go_opt=paths=source_relative --go-grpc_out=. --go-grpc_opt=paths=source_relative ./pb/task.proto
|
||||
protoc --go_out=. --go_opt=paths=source_relative --go-grpc_out=. --go-grpc_opt=paths=source_relative ./pb/pubsub.proto
|
@ -1,13 +0,0 @@
|
||||
package go_library
|
||||
|
||||
import "testing"
|
||||
|
||||
func TestVersion(t *testing.T) {
|
||||
t.Log(Version())
|
||||
}
|
||||
|
||||
func BenchmarkVersion(b *testing.B) {
|
||||
for i := 0; i < b.N; i++ {
|
||||
Version()
|
||||
}
|
||||
}
|
@ -1,9 +1,9 @@
|
||||
package dingdanxia
|
||||
|
||||
import (
|
||||
"go.dtapp.net/library/golog"
|
||||
"go.dtapp.net/library/gomongo"
|
||||
"go.dtapp.net/library/gorequest"
|
||||
"go.dtapp.net/library/utils/golog"
|
||||
"go.dtapp.net/library/utils/gomongo"
|
||||
"go.dtapp.net/library/utils/gorequest"
|
||||
"gorm.io/gorm"
|
||||
)
|
||||
|
@ -1,9 +1,9 @@
|
||||
package dingdanxia
|
||||
|
||||
import (
|
||||
"go.dtapp.net/library/gojson"
|
||||
golog "go.dtapp.net/library/golog"
|
||||
gorequest "go.dtapp.net/library/gorequest"
|
||||
"go.dtapp.net/library/utils/gojson"
|
||||
"go.dtapp.net/library/utils/golog"
|
||||
"go.dtapp.net/library/utils/gorequest"
|
||||
"gorm.io/datatypes"
|
||||
)
|
||||
|
@ -1,8 +1,8 @@
|
||||
package dingtalk
|
||||
|
||||
import (
|
||||
"go.dtapp.net/library/golog"
|
||||
"go.dtapp.net/library/gorequest"
|
||||
"go.dtapp.net/library/utils/golog"
|
||||
"go.dtapp.net/library/utils/gorequest"
|
||||
"gorm.io/gorm"
|
||||
)
|
||||
|
@ -1,9 +1,9 @@
|
||||
package dingtalk
|
||||
|
||||
import (
|
||||
"go.dtapp.net/library/gojson"
|
||||
golog "go.dtapp.net/library/golog"
|
||||
gorequest "go.dtapp.net/library/gorequest"
|
||||
"go.dtapp.net/library/utils/gojson"
|
||||
"go.dtapp.net/library/utils/golog"
|
||||
"go.dtapp.net/library/utils/gorequest"
|
||||
"gorm.io/datatypes"
|
||||
)
|
||||
|
@ -1,9 +1,9 @@
|
||||
package douyin
|
||||
|
||||
import (
|
||||
"go.dtapp.net/library/gojson"
|
||||
golog "go.dtapp.net/library/golog"
|
||||
gorequest "go.dtapp.net/library/gorequest"
|
||||
"go.dtapp.net/library/utils/gojson"
|
||||
"go.dtapp.net/library/utils/golog"
|
||||
"go.dtapp.net/library/utils/gorequest"
|
||||
"gorm.io/datatypes"
|
||||
)
|
||||
|
@ -1,9 +1,9 @@
|
||||
package eastiot
|
||||
|
||||
import (
|
||||
"go.dtapp.net/library/golog"
|
||||
"go.dtapp.net/library/gomongo"
|
||||
"go.dtapp.net/library/gorequest"
|
||||
"go.dtapp.net/library/utils/golog"
|
||||
"go.dtapp.net/library/utils/gomongo"
|
||||
"go.dtapp.net/library/utils/gorequest"
|
||||
"gorm.io/gorm"
|
||||
"time"
|
||||
)
|
@ -1,8 +1,8 @@
|
||||
package feishu
|
||||
|
||||
import (
|
||||
"go.dtapp.net/library/golog"
|
||||
"go.dtapp.net/library/gorequest"
|
||||
"go.dtapp.net/library/utils/golog"
|
||||
"go.dtapp.net/library/utils/gorequest"
|
||||
"gorm.io/gorm"
|
||||
)
|
||||
|
@ -1,9 +1,9 @@
|
||||
package jd
|
||||
|
||||
import (
|
||||
"go.dtapp.net/library/golog"
|
||||
"go.dtapp.net/library/gorequest"
|
||||
"go.dtapp.net/library/gostring"
|
||||
"go.dtapp.net/library/utils/golog"
|
||||
"go.dtapp.net/library/utils/gorequest"
|
||||
"go.dtapp.net/library/utils/gostring"
|
||||
"gorm.io/gorm"
|
||||
)
|
||||
|
@ -1,8 +1,8 @@
|
||||
package kashangwl
|
||||
|
||||
import (
|
||||
"go.dtapp.net/library/golog"
|
||||
"go.dtapp.net/library/gorequest"
|
||||
"go.dtapp.net/library/utils/golog"
|
||||
"go.dtapp.net/library/utils/gorequest"
|
||||
"gorm.io/gorm"
|
||||
"time"
|
||||
)
|
@ -1,9 +1,9 @@
|
||||
package kuaishou
|
||||
|
||||
import (
|
||||
"go.dtapp.net/library/golog"
|
||||
"go.dtapp.net/library/gomongo"
|
||||
"go.dtapp.net/library/gorequest"
|
||||
"go.dtapp.net/library/utils/golog"
|
||||
"go.dtapp.net/library/utils/gomongo"
|
||||
"go.dtapp.net/library/utils/gorequest"
|
||||
"gorm.io/gorm"
|
||||
)
|
||||
|
@ -1,11 +1,11 @@
|
||||
package leshuazf
|
||||
|
||||
import (
|
||||
"go.dtapp.net/library/golog"
|
||||
"go.dtapp.net/library/gomongo"
|
||||
"go.dtapp.net/library/gorandom"
|
||||
"go.dtapp.net/library/gorequest"
|
||||
"go.dtapp.net/library/gotime"
|
||||
"go.dtapp.net/library/utils/golog"
|
||||
"go.dtapp.net/library/utils/gomongo"
|
||||
"go.dtapp.net/library/utils/gorandom"
|
||||
"go.dtapp.net/library/utils/gorequest"
|
||||
"go.dtapp.net/library/utils/gotime"
|
||||
"gorm.io/gorm"
|
||||
)
|
||||
|
@ -1,19 +1,19 @@
|
||||
package leshuazf
|
||||
|
||||
import (
|
||||
"go.dtapp.net/library/gojson"
|
||||
"go.dtapp.net/library/golog"
|
||||
gorequest "go.dtapp.net/library/gorequest"
|
||||
"go.dtapp.net/library/utils/gojson"
|
||||
"go.dtapp.net/library/utils/golog"
|
||||
gorequest2 "go.dtapp.net/library/utils/gorequest"
|
||||
"gorm.io/datatypes"
|
||||
)
|
||||
|
||||
// 记录日志
|
||||
func (app *App) postgresqlLog(request gorequest.Response) {
|
||||
func (app *App) postgresqlLog(request gorequest2.Response) {
|
||||
app.log.Api.Record(golog.ApiPostgresqlLog{
|
||||
RequestTime: request.RequestTime, //【请求】时间
|
||||
RequestUri: request.RequestUri, //【请求】链接
|
||||
RequestUrl: gorequest.UriParse(request.RequestUri).Url, //【请求】链接
|
||||
RequestApi: gorequest.UriParse(request.RequestUri).Path, //【请求】接口
|
||||
RequestUrl: gorequest2.UriParse(request.RequestUri).Url, //【请求】链接
|
||||
RequestApi: gorequest2.UriParse(request.RequestUri).Path, //【请求】接口
|
||||
RequestMethod: request.RequestMethod, //【请求】方式
|
||||
RequestParams: datatypes.JSON(gojson.JsonEncodeNoError(request.RequestParams)), //【请求】参数
|
||||
RequestHeader: datatypes.JSON(gojson.JsonEncodeNoError(request.RequestHeader)), //【返回】头部
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue