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
|
package dingdanxia
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"go.dtapp.net/library/golog"
|
"go.dtapp.net/library/utils/golog"
|
||||||
"go.dtapp.net/library/gomongo"
|
"go.dtapp.net/library/utils/gomongo"
|
||||||
"go.dtapp.net/library/gorequest"
|
"go.dtapp.net/library/utils/gorequest"
|
||||||
"gorm.io/gorm"
|
"gorm.io/gorm"
|
||||||
)
|
)
|
||||||
|
|
@ -1,9 +1,9 @@
|
|||||||
package dingdanxia
|
package dingdanxia
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"go.dtapp.net/library/gojson"
|
"go.dtapp.net/library/utils/gojson"
|
||||||
golog "go.dtapp.net/library/golog"
|
"go.dtapp.net/library/utils/golog"
|
||||||
gorequest "go.dtapp.net/library/gorequest"
|
"go.dtapp.net/library/utils/gorequest"
|
||||||
"gorm.io/datatypes"
|
"gorm.io/datatypes"
|
||||||
)
|
)
|
||||||
|
|
@ -1,8 +1,8 @@
|
|||||||
package dingtalk
|
package dingtalk
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"go.dtapp.net/library/golog"
|
"go.dtapp.net/library/utils/golog"
|
||||||
"go.dtapp.net/library/gorequest"
|
"go.dtapp.net/library/utils/gorequest"
|
||||||
"gorm.io/gorm"
|
"gorm.io/gorm"
|
||||||
)
|
)
|
||||||
|
|
@ -1,9 +1,9 @@
|
|||||||
package dingtalk
|
package dingtalk
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"go.dtapp.net/library/gojson"
|
"go.dtapp.net/library/utils/gojson"
|
||||||
golog "go.dtapp.net/library/golog"
|
"go.dtapp.net/library/utils/golog"
|
||||||
gorequest "go.dtapp.net/library/gorequest"
|
"go.dtapp.net/library/utils/gorequest"
|
||||||
"gorm.io/datatypes"
|
"gorm.io/datatypes"
|
||||||
)
|
)
|
||||||
|
|
@ -1,9 +1,9 @@
|
|||||||
package douyin
|
package douyin
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"go.dtapp.net/library/gojson"
|
"go.dtapp.net/library/utils/gojson"
|
||||||
golog "go.dtapp.net/library/golog"
|
"go.dtapp.net/library/utils/golog"
|
||||||
gorequest "go.dtapp.net/library/gorequest"
|
"go.dtapp.net/library/utils/gorequest"
|
||||||
"gorm.io/datatypes"
|
"gorm.io/datatypes"
|
||||||
)
|
)
|
||||||
|
|
@ -1,9 +1,9 @@
|
|||||||
package eastiot
|
package eastiot
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"go.dtapp.net/library/golog"
|
"go.dtapp.net/library/utils/golog"
|
||||||
"go.dtapp.net/library/gomongo"
|
"go.dtapp.net/library/utils/gomongo"
|
||||||
"go.dtapp.net/library/gorequest"
|
"go.dtapp.net/library/utils/gorequest"
|
||||||
"gorm.io/gorm"
|
"gorm.io/gorm"
|
||||||
"time"
|
"time"
|
||||||
)
|
)
|
@ -1,8 +1,8 @@
|
|||||||
package feishu
|
package feishu
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"go.dtapp.net/library/golog"
|
"go.dtapp.net/library/utils/golog"
|
||||||
"go.dtapp.net/library/gorequest"
|
"go.dtapp.net/library/utils/gorequest"
|
||||||
"gorm.io/gorm"
|
"gorm.io/gorm"
|
||||||
)
|
)
|
||||||
|
|
@ -1,9 +1,9 @@
|
|||||||
package jd
|
package jd
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"go.dtapp.net/library/golog"
|
"go.dtapp.net/library/utils/golog"
|
||||||
"go.dtapp.net/library/gorequest"
|
"go.dtapp.net/library/utils/gorequest"
|
||||||
"go.dtapp.net/library/gostring"
|
"go.dtapp.net/library/utils/gostring"
|
||||||
"gorm.io/gorm"
|
"gorm.io/gorm"
|
||||||
)
|
)
|
||||||
|
|
@ -1,8 +1,8 @@
|
|||||||
package kashangwl
|
package kashangwl
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"go.dtapp.net/library/golog"
|
"go.dtapp.net/library/utils/golog"
|
||||||
"go.dtapp.net/library/gorequest"
|
"go.dtapp.net/library/utils/gorequest"
|
||||||
"gorm.io/gorm"
|
"gorm.io/gorm"
|
||||||
"time"
|
"time"
|
||||||
)
|
)
|
@ -1,9 +1,9 @@
|
|||||||
package kuaishou
|
package kuaishou
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"go.dtapp.net/library/golog"
|
"go.dtapp.net/library/utils/golog"
|
||||||
"go.dtapp.net/library/gomongo"
|
"go.dtapp.net/library/utils/gomongo"
|
||||||
"go.dtapp.net/library/gorequest"
|
"go.dtapp.net/library/utils/gorequest"
|
||||||
"gorm.io/gorm"
|
"gorm.io/gorm"
|
||||||
)
|
)
|
||||||
|
|
@ -1,11 +1,11 @@
|
|||||||
package leshuazf
|
package leshuazf
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"go.dtapp.net/library/golog"
|
"go.dtapp.net/library/utils/golog"
|
||||||
"go.dtapp.net/library/gomongo"
|
"go.dtapp.net/library/utils/gomongo"
|
||||||
"go.dtapp.net/library/gorandom"
|
"go.dtapp.net/library/utils/gorandom"
|
||||||
"go.dtapp.net/library/gorequest"
|
"go.dtapp.net/library/utils/gorequest"
|
||||||
"go.dtapp.net/library/gotime"
|
"go.dtapp.net/library/utils/gotime"
|
||||||
"gorm.io/gorm"
|
"gorm.io/gorm"
|
||||||
)
|
)
|
||||||
|
|
@ -1,19 +1,19 @@
|
|||||||
package leshuazf
|
package leshuazf
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"go.dtapp.net/library/gojson"
|
"go.dtapp.net/library/utils/gojson"
|
||||||
"go.dtapp.net/library/golog"
|
"go.dtapp.net/library/utils/golog"
|
||||||
gorequest "go.dtapp.net/library/gorequest"
|
gorequest2 "go.dtapp.net/library/utils/gorequest"
|
||||||
"gorm.io/datatypes"
|
"gorm.io/datatypes"
|
||||||
)
|
)
|
||||||
|
|
||||||
// 记录日志
|
// 记录日志
|
||||||
func (app *App) postgresqlLog(request gorequest.Response) {
|
func (app *App) postgresqlLog(request gorequest2.Response) {
|
||||||
app.log.Api.Record(golog.ApiPostgresqlLog{
|
app.log.Api.Record(golog.ApiPostgresqlLog{
|
||||||
RequestTime: request.RequestTime, //【请求】时间
|
RequestTime: request.RequestTime, //【请求】时间
|
||||||
RequestUri: request.RequestUri, //【请求】链接
|
RequestUri: request.RequestUri, //【请求】链接
|
||||||
RequestUrl: gorequest.UriParse(request.RequestUri).Url, //【请求】链接
|
RequestUrl: gorequest2.UriParse(request.RequestUri).Url, //【请求】链接
|
||||||
RequestApi: gorequest.UriParse(request.RequestUri).Path, //【请求】接口
|
RequestApi: gorequest2.UriParse(request.RequestUri).Path, //【请求】接口
|
||||||
RequestMethod: request.RequestMethod, //【请求】方式
|
RequestMethod: request.RequestMethod, //【请求】方式
|
||||||
RequestParams: datatypes.JSON(gojson.JsonEncodeNoError(request.RequestParams)), //【请求】参数
|
RequestParams: datatypes.JSON(gojson.JsonEncodeNoError(request.RequestParams)), //【请求】参数
|
||||||
RequestHeader: datatypes.JSON(gojson.JsonEncodeNoError(request.RequestHeader)), //【返回】头部
|
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