ci/cd调整
This commit is contained in:
41
Dockerfile
41
Dockerfile
@@ -1,37 +1,24 @@
|
|||||||
FROM golang:1.26.0 AS builder
|
# 阶段1: 构建
|
||||||
|
FROM golang:alpine AS builder
|
||||||
|
|
||||||
RUN go env -w GO111MODULE=on
|
RUN apk add --no-cache git ca-certificates tzdata
|
||||||
RUN go env -w GOPROXY=https://goproxy.cn,direct
|
|
||||||
|
|
||||||
|
ENV TZ=Asia/Shanghai
|
||||||
|
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
|
||||||
|
|
||||||
|
ENV GO111MODULE=on
|
||||||
|
ENV GOPROXY=https://goproxy.cn,direct
|
||||||
|
ENV CGO_ENABLED=0
|
||||||
|
ENV GOTOOLCHAIN=auto
|
||||||
WORKDIR /build
|
WORKDIR /build
|
||||||
|
|
||||||
COPY go.mod go.sum ./
|
|
||||||
|
|
||||||
COPY common ./common
|
|
||||||
|
|
||||||
RUN sed -i 's|replace gitea.com/red-future/common => ../common|replace gitea.com/red-future/common => ./common|' go.mod
|
|
||||||
|
|
||||||
RUN go mod download && go mod verify
|
|
||||||
|
|
||||||
COPY . .
|
COPY . .
|
||||||
|
|
||||||
RUN go mod tidy
|
RUN go mod download && go mod tidy
|
||||||
|
|
||||||
RUN CGO_ENABLED=0 GOOS=linux go build -v -o report-engine .
|
RUN go build -ldflags="-s -w" -o main ./main.go
|
||||||
|
|
||||||
FROM alpine:latest
|
|
||||||
|
|
||||||
ENV TIME_ZONE=Asia/Seoul
|
EXPOSE 3013
|
||||||
RUN apk add --no-cache tzdata ca-certificates && \
|
|
||||||
ln -sf /usr/share/zoneinfo/$TIME_ZONE /etc/localtime
|
|
||||||
|
|
||||||
WORKDIR /app
|
CMD ["./main"]
|
||||||
|
|
||||||
COPY --from=builder /build/report-engine .
|
|
||||||
COPY config.yml .
|
|
||||||
|
|
||||||
RUN mkdir -p resource/log/server
|
|
||||||
|
|
||||||
EXPOSE 3001
|
|
||||||
|
|
||||||
CMD ["./report-engine"]
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
server:
|
server:
|
||||||
address : ":3002"
|
address : ":3013"
|
||||||
name: "data-engine"
|
name: "data-engine"
|
||||||
workerId: 1
|
workerId: 1
|
||||||
logPath: "resource/log/server"
|
logPath: "resource/log/server"
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ import (
|
|||||||
dto "dataengine/model/dto/copydata"
|
dto "dataengine/model/dto/copydata"
|
||||||
service "dataengine/service/copydata"
|
service "dataengine/service/copydata"
|
||||||
|
|
||||||
"gitea.com/red-future/common/beans"
|
"gitea.redpowerfuture.com/red-future/common/beans"
|
||||||
)
|
)
|
||||||
|
|
||||||
type campaignReport struct{}
|
type campaignReport struct{}
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ import (
|
|||||||
dto "dataengine/model/dto/copydata"
|
dto "dataengine/model/dto/copydata"
|
||||||
service "dataengine/service/copydata"
|
service "dataengine/service/copydata"
|
||||||
|
|
||||||
"gitea.com/red-future/common/beans"
|
"gitea.redpowerfuture.com/red-future/common/beans"
|
||||||
)
|
)
|
||||||
|
|
||||||
var PopulationReport = new(populationReport)
|
var PopulationReport = new(populationReport)
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ import (
|
|||||||
dto "dataengine/model/dto/copydata"
|
dto "dataengine/model/dto/copydata"
|
||||||
"dataengine/service/copydata"
|
"dataengine/service/copydata"
|
||||||
|
|
||||||
"gitea.com/red-future/common/beans"
|
"gitea.redpowerfuture.com/red-future/common/beans"
|
||||||
)
|
)
|
||||||
|
|
||||||
type unitReport struct{}
|
type unitReport struct{}
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ import (
|
|||||||
dto "dataengine/model/dto/dict"
|
dto "dataengine/model/dto/dict"
|
||||||
service "dataengine/service/dict"
|
service "dataengine/service/dict"
|
||||||
|
|
||||||
"gitea.com/red-future/common/beans"
|
"gitea.redpowerfuture.com/red-future/common/beans"
|
||||||
)
|
)
|
||||||
|
|
||||||
type datasourcePlatformController struct{}
|
type datasourcePlatformController struct{}
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ import (
|
|||||||
dto "dataengine/model/dto/dict"
|
dto "dataengine/model/dto/dict"
|
||||||
service "dataengine/service/dict"
|
service "dataengine/service/dict"
|
||||||
|
|
||||||
"gitea.com/red-future/common/beans"
|
"gitea.redpowerfuture.com/red-future/common/beans"
|
||||||
)
|
)
|
||||||
|
|
||||||
type fieldMappingConfigController struct{}
|
type fieldMappingConfigController struct{}
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ import (
|
|||||||
dto "dataengine/model/dto/dict"
|
dto "dataengine/model/dto/dict"
|
||||||
service "dataengine/service/dict"
|
service "dataengine/service/dict"
|
||||||
|
|
||||||
"gitea.com/red-future/common/beans"
|
"gitea.redpowerfuture.com/red-future/common/beans"
|
||||||
)
|
)
|
||||||
|
|
||||||
type apiInterfaceController struct{}
|
type apiInterfaceController struct{}
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ import (
|
|||||||
entity "dataengine/model/entity/tencent"
|
entity "dataengine/model/entity/tencent"
|
||||||
service "dataengine/service/tencent"
|
service "dataengine/service/tencent"
|
||||||
|
|
||||||
"gitea.com/red-future/common/beans"
|
"gitea.redpowerfuture.com/red-future/common/beans"
|
||||||
)
|
)
|
||||||
|
|
||||||
type oauthController struct{}
|
type oauthController struct{}
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ import (
|
|||||||
entity "dataengine/model/entity/copydata"
|
entity "dataengine/model/entity/copydata"
|
||||||
"errors"
|
"errors"
|
||||||
|
|
||||||
"gitea.com/red-future/common/db/gfdb"
|
"gitea.redpowerfuture.com/red-future/common/db/gfdb"
|
||||||
"github.com/gogf/gf/v2/util/gconv"
|
"github.com/gogf/gf/v2/util/gconv"
|
||||||
"github.com/sirupsen/logrus"
|
"github.com/sirupsen/logrus"
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ import (
|
|||||||
entity "dataengine/model/entity/copydata"
|
entity "dataengine/model/entity/copydata"
|
||||||
"errors"
|
"errors"
|
||||||
|
|
||||||
"gitea.com/red-future/common/db/gfdb"
|
"gitea.redpowerfuture.com/red-future/common/db/gfdb"
|
||||||
"github.com/gogf/gf/v2/util/gconv"
|
"github.com/gogf/gf/v2/util/gconv"
|
||||||
"github.com/sirupsen/logrus"
|
"github.com/sirupsen/logrus"
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ import (
|
|||||||
entity "dataengine/model/entity/copydata"
|
entity "dataengine/model/entity/copydata"
|
||||||
"errors"
|
"errors"
|
||||||
|
|
||||||
"gitea.com/red-future/common/db/gfdb"
|
"gitea.redpowerfuture.com/red-future/common/db/gfdb"
|
||||||
"github.com/gogf/gf/v2/util/gconv"
|
"github.com/gogf/gf/v2/util/gconv"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ import (
|
|||||||
entity "dataengine/model/entity/copydata"
|
entity "dataengine/model/entity/copydata"
|
||||||
"errors"
|
"errors"
|
||||||
|
|
||||||
"gitea.com/red-future/common/db/gfdb"
|
"gitea.redpowerfuture.com/red-future/common/db/gfdb"
|
||||||
"github.com/gogf/gf/v2/util/gconv"
|
"github.com/gogf/gf/v2/util/gconv"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ import (
|
|||||||
entity "dataengine/model/entity/copydata"
|
entity "dataengine/model/entity/copydata"
|
||||||
"errors"
|
"errors"
|
||||||
|
|
||||||
"gitea.com/red-future/common/db/gfdb"
|
"gitea.redpowerfuture.com/red-future/common/db/gfdb"
|
||||||
"github.com/gogf/gf/v2/util/gconv"
|
"github.com/gogf/gf/v2/util/gconv"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ import (
|
|||||||
entity "dataengine/model/entity/copydata"
|
entity "dataengine/model/entity/copydata"
|
||||||
"errors"
|
"errors"
|
||||||
|
|
||||||
"gitea.com/red-future/common/db/gfdb"
|
"gitea.redpowerfuture.com/red-future/common/db/gfdb"
|
||||||
"github.com/gogf/gf/v2/util/gconv"
|
"github.com/gogf/gf/v2/util/gconv"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ import (
|
|||||||
entity "dataengine/model/entity/copydata"
|
entity "dataengine/model/entity/copydata"
|
||||||
"errors"
|
"errors"
|
||||||
|
|
||||||
"gitea.com/red-future/common/db/gfdb"
|
"gitea.redpowerfuture.com/red-future/common/db/gfdb"
|
||||||
"github.com/gogf/gf/v2/util/gconv"
|
"github.com/gogf/gf/v2/util/gconv"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ import (
|
|||||||
entity "dataengine/model/entity/copydata"
|
entity "dataengine/model/entity/copydata"
|
||||||
"errors"
|
"errors"
|
||||||
|
|
||||||
"gitea.com/red-future/common/db/gfdb"
|
"gitea.redpowerfuture.com/red-future/common/db/gfdb"
|
||||||
"github.com/gogf/gf/v2/util/gconv"
|
"github.com/gogf/gf/v2/util/gconv"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ import (
|
|||||||
entity "dataengine/model/entity/copydata"
|
entity "dataengine/model/entity/copydata"
|
||||||
"errors"
|
"errors"
|
||||||
|
|
||||||
"gitea.com/red-future/common/db/gfdb"
|
"gitea.redpowerfuture.com/red-future/common/db/gfdb"
|
||||||
"github.com/gogf/gf/v2/util/gconv"
|
"github.com/gogf/gf/v2/util/gconv"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ import (
|
|||||||
entity "dataengine/model/entity/copydata"
|
entity "dataengine/model/entity/copydata"
|
||||||
"errors"
|
"errors"
|
||||||
|
|
||||||
"gitea.com/red-future/common/db/gfdb"
|
"gitea.redpowerfuture.com/red-future/common/db/gfdb"
|
||||||
"github.com/gogf/gf/v2/util/gconv"
|
"github.com/gogf/gf/v2/util/gconv"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ import (
|
|||||||
entity "dataengine/model/entity/copydata"
|
entity "dataengine/model/entity/copydata"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"gitea.com/red-future/common/db/gfdb"
|
"gitea.redpowerfuture.com/red-future/common/db/gfdb"
|
||||||
"github.com/gogf/gf/v2/database/gdb"
|
"github.com/gogf/gf/v2/database/gdb"
|
||||||
"github.com/gogf/gf/v2/util/gconv"
|
"github.com/gogf/gf/v2/util/gconv"
|
||||||
"github.com/sirupsen/logrus"
|
"github.com/sirupsen/logrus"
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ import (
|
|||||||
entity "dataengine/model/entity/copydata"
|
entity "dataengine/model/entity/copydata"
|
||||||
"errors"
|
"errors"
|
||||||
|
|
||||||
"gitea.com/red-future/common/db/gfdb"
|
"gitea.redpowerfuture.com/red-future/common/db/gfdb"
|
||||||
"github.com/gogf/gf/v2/util/gconv"
|
"github.com/gogf/gf/v2/util/gconv"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ import (
|
|||||||
entity "dataengine/model/entity/copydata"
|
entity "dataengine/model/entity/copydata"
|
||||||
"errors"
|
"errors"
|
||||||
|
|
||||||
"gitea.com/red-future/common/db/gfdb"
|
"gitea.redpowerfuture.com/red-future/common/db/gfdb"
|
||||||
"github.com/gogf/gf/v2/util/gconv"
|
"github.com/gogf/gf/v2/util/gconv"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ import (
|
|||||||
entity "dataengine/model/entity/copydata"
|
entity "dataengine/model/entity/copydata"
|
||||||
"errors"
|
"errors"
|
||||||
|
|
||||||
"gitea.com/red-future/common/db/gfdb"
|
"gitea.redpowerfuture.com/red-future/common/db/gfdb"
|
||||||
"github.com/gogf/gf/v2/util/gconv"
|
"github.com/gogf/gf/v2/util/gconv"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ import (
|
|||||||
"strconv"
|
"strconv"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"gitea.com/red-future/common/db/gfdb"
|
"gitea.redpowerfuture.com/red-future/common/db/gfdb"
|
||||||
"github.com/gogf/gf/v2/database/gdb"
|
"github.com/gogf/gf/v2/database/gdb"
|
||||||
"github.com/gogf/gf/v2/frame/g"
|
"github.com/gogf/gf/v2/frame/g"
|
||||||
"github.com/gogf/gf/v2/util/gconv"
|
"github.com/gogf/gf/v2/util/gconv"
|
||||||
|
|||||||
@@ -7,8 +7,8 @@ import (
|
|||||||
entity "dataengine/model/entity/dict"
|
entity "dataengine/model/entity/dict"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"gitea.com/red-future/common/beans"
|
"gitea.redpowerfuture.com/red-future/common/beans"
|
||||||
"gitea.com/red-future/common/db/gfdb"
|
"gitea.redpowerfuture.com/red-future/common/db/gfdb"
|
||||||
"github.com/gogf/gf/v2/database/gdb"
|
"github.com/gogf/gf/v2/database/gdb"
|
||||||
"github.com/gogf/gf/v2/frame/g"
|
"github.com/gogf/gf/v2/frame/g"
|
||||||
"github.com/gogf/gf/v2/util/gconv"
|
"github.com/gogf/gf/v2/util/gconv"
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ import (
|
|||||||
dto "dataengine/model/dto/dict"
|
dto "dataengine/model/dto/dict"
|
||||||
entity "dataengine/model/entity/dict"
|
entity "dataengine/model/entity/dict"
|
||||||
|
|
||||||
"gitea.com/red-future/common/db/gfdb"
|
"gitea.redpowerfuture.com/red-future/common/db/gfdb"
|
||||||
"github.com/gogf/gf/v2/database/gdb"
|
"github.com/gogf/gf/v2/database/gdb"
|
||||||
"github.com/gogf/gf/v2/frame/g"
|
"github.com/gogf/gf/v2/frame/g"
|
||||||
"github.com/gogf/gf/v2/util/gconv"
|
"github.com/gogf/gf/v2/util/gconv"
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ import (
|
|||||||
entity "dataengine/model/entity/tencent"
|
entity "dataengine/model/entity/tencent"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"gitea.com/red-future/common/db/gfdb"
|
"gitea.redpowerfuture.com/red-future/common/db/gfdb"
|
||||||
"github.com/gogf/gf/v2/frame/g"
|
"github.com/gogf/gf/v2/frame/g"
|
||||||
"github.com/sirupsen/logrus"
|
"github.com/sirupsen/logrus"
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ import (
|
|||||||
consts "dataengine/consts/public"
|
consts "dataengine/consts/public"
|
||||||
entity "dataengine/model/entity/tencent"
|
entity "dataengine/model/entity/tencent"
|
||||||
|
|
||||||
"gitea.com/red-future/common/db/gfdb"
|
"gitea.redpowerfuture.com/red-future/common/db/gfdb"
|
||||||
"github.com/gogf/gf/v2/frame/g"
|
"github.com/gogf/gf/v2/frame/g"
|
||||||
"github.com/sirupsen/logrus"
|
"github.com/sirupsen/logrus"
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ import (
|
|||||||
consts "dataengine/consts/public"
|
consts "dataengine/consts/public"
|
||||||
entity "dataengine/model/entity/tencent"
|
entity "dataengine/model/entity/tencent"
|
||||||
|
|
||||||
"gitea.com/red-future/common/db/gfdb"
|
"gitea.redpowerfuture.com/red-future/common/db/gfdb"
|
||||||
"github.com/gogf/gf/v2/frame/g"
|
"github.com/gogf/gf/v2/frame/g"
|
||||||
"github.com/sirupsen/logrus"
|
"github.com/sirupsen/logrus"
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ import (
|
|||||||
consts "dataengine/consts/public"
|
consts "dataengine/consts/public"
|
||||||
entity "dataengine/model/entity/tencent"
|
entity "dataengine/model/entity/tencent"
|
||||||
|
|
||||||
"gitea.com/red-future/common/db/gfdb"
|
"gitea.redpowerfuture.com/red-future/common/db/gfdb"
|
||||||
"github.com/gogf/gf/v2/frame/g"
|
"github.com/gogf/gf/v2/frame/g"
|
||||||
"github.com/sirupsen/logrus"
|
"github.com/sirupsen/logrus"
|
||||||
)
|
)
|
||||||
|
|||||||
2
go.mod
2
go.mod
@@ -3,7 +3,7 @@ module dataengine
|
|||||||
go 1.26.0
|
go 1.26.0
|
||||||
|
|
||||||
require (
|
require (
|
||||||
gitea.com/red-future/common v0.0.4
|
gitea.redpowerfuture.com/red-future/common v0.0.23
|
||||||
github.com/gogf/gf/contrib/drivers/pgsql/v2 v2.10.0
|
github.com/gogf/gf/contrib/drivers/pgsql/v2 v2.10.0
|
||||||
github.com/gogf/gf/contrib/nosql/redis/v2 v2.9.5
|
github.com/gogf/gf/contrib/nosql/redis/v2 v2.9.5
|
||||||
github.com/gogf/gf/v2 v2.10.0
|
github.com/gogf/gf/v2 v2.10.0
|
||||||
|
|||||||
2
go.sum
2
go.sum
@@ -1,4 +1,6 @@
|
|||||||
cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw=
|
cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw=
|
||||||
|
gitea.redpowerfuture.com/red-future/common v0.0.23 h1:xieoA00iKOCDm5SO9iXn+cSyMKBAlZwI0fuEVPWrHLg=
|
||||||
|
gitea.redpowerfuture.com/red-future/common v0.0.23/go.mod h1:50U1Xi+Ie56z09S5LQbZvaken0Mxv3OeS9LgR7U/ZRY=
|
||||||
github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU=
|
github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU=
|
||||||
github.com/BurntSushi/toml v1.5.0 h1:W5quZX/G/csjUnuI8SUYlsHs9M38FC7znL0lIO+DvMg=
|
github.com/BurntSushi/toml v1.5.0 h1:W5quZX/G/csjUnuI8SUYlsHs9M38FC7znL0lIO+DvMg=
|
||||||
github.com/BurntSushi/toml v1.5.0/go.mod h1:ukJfTF/6rtPPRCnwkur4qwRxa8vTRFBF0uk2lLoLwho=
|
github.com/BurntSushi/toml v1.5.0/go.mod h1:ukJfTF/6rtPPRCnwkur4qwRxa8vTRFBF0uk2lLoLwho=
|
||||||
|
|||||||
6
main.go
6
main.go
@@ -5,9 +5,9 @@ import (
|
|||||||
"dataengine/controller/dict"
|
"dataengine/controller/dict"
|
||||||
"dataengine/controller/tencent"
|
"dataengine/controller/tencent"
|
||||||
|
|
||||||
"gitea.com/red-future/common/http"
|
"gitea.redpowerfuture.com/red-future/common/http"
|
||||||
"gitea.com/red-future/common/jaeger"
|
"gitea.redpowerfuture.com/red-future/common/jaeger"
|
||||||
_ "gitea.com/red-future/common/k3sconfig"
|
_ "gitea.redpowerfuture.com/red-future/common/k3sconfig"
|
||||||
_ "github.com/gogf/gf/contrib/drivers/pgsql/v2"
|
_ "github.com/gogf/gf/contrib/drivers/pgsql/v2"
|
||||||
_ "github.com/gogf/gf/contrib/nosql/redis/v2"
|
_ "github.com/gogf/gf/contrib/nosql/redis/v2"
|
||||||
"golang.org/x/net/context"
|
"golang.org/x/net/context"
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
package copydata
|
package copydata
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"gitea.com/red-future/common/beans"
|
"gitea.redpowerfuture.com/red-future/common/beans"
|
||||||
"github.com/gogf/gf/v2/frame/g"
|
"github.com/gogf/gf/v2/frame/g"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
package copydata
|
package copydata
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"gitea.com/red-future/common/beans"
|
"gitea.redpowerfuture.com/red-future/common/beans"
|
||||||
"github.com/gogf/gf/v2/frame/g"
|
"github.com/gogf/gf/v2/frame/g"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
package copydata
|
package copydata
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"gitea.com/red-future/common/beans"
|
"gitea.redpowerfuture.com/red-future/common/beans"
|
||||||
"github.com/gogf/gf/v2/frame/g"
|
"github.com/gogf/gf/v2/frame/g"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
package copydata
|
package copydata
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"gitea.com/red-future/common/beans"
|
"gitea.redpowerfuture.com/red-future/common/beans"
|
||||||
"github.com/gogf/gf/v2/frame/g"
|
"github.com/gogf/gf/v2/frame/g"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
package copydata
|
package copydata
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"gitea.com/red-future/common/beans"
|
"gitea.redpowerfuture.com/red-future/common/beans"
|
||||||
"github.com/gogf/gf/v2/frame/g"
|
"github.com/gogf/gf/v2/frame/g"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
package copydata
|
package copydata
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"gitea.com/red-future/common/beans"
|
"gitea.redpowerfuture.com/red-future/common/beans"
|
||||||
"github.com/gogf/gf/v2/frame/g"
|
"github.com/gogf/gf/v2/frame/g"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
package copydata
|
package copydata
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"gitea.com/red-future/common/beans"
|
"gitea.redpowerfuture.com/red-future/common/beans"
|
||||||
"github.com/gogf/gf/v2/frame/g"
|
"github.com/gogf/gf/v2/frame/g"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
package copydata
|
package copydata
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"gitea.com/red-future/common/beans"
|
"gitea.redpowerfuture.com/red-future/common/beans"
|
||||||
"github.com/gogf/gf/v2/frame/g"
|
"github.com/gogf/gf/v2/frame/g"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
package copydata
|
package copydata
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"gitea.com/red-future/common/beans"
|
"gitea.redpowerfuture.com/red-future/common/beans"
|
||||||
"github.com/gogf/gf/v2/frame/g"
|
"github.com/gogf/gf/v2/frame/g"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
package copydata
|
package copydata
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"gitea.com/red-future/common/beans"
|
"gitea.redpowerfuture.com/red-future/common/beans"
|
||||||
"github.com/gogf/gf/v2/frame/g"
|
"github.com/gogf/gf/v2/frame/g"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
package copydata
|
package copydata
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"gitea.com/red-future/common/beans"
|
"gitea.redpowerfuture.com/red-future/common/beans"
|
||||||
"github.com/gogf/gf/v2/frame/g"
|
"github.com/gogf/gf/v2/frame/g"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
package copydata
|
package copydata
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"gitea.com/red-future/common/beans"
|
"gitea.redpowerfuture.com/red-future/common/beans"
|
||||||
"github.com/gogf/gf/v2/frame/g"
|
"github.com/gogf/gf/v2/frame/g"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
package copydata
|
package copydata
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"gitea.com/red-future/common/beans"
|
"gitea.redpowerfuture.com/red-future/common/beans"
|
||||||
"github.com/gogf/gf/v2/frame/g"
|
"github.com/gogf/gf/v2/frame/g"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ import (
|
|||||||
"dataengine/consts/api-feature"
|
"dataengine/consts/api-feature"
|
||||||
entity "dataengine/model/entity/dict"
|
entity "dataengine/model/entity/dict"
|
||||||
|
|
||||||
"gitea.com/red-future/common/beans"
|
"gitea.redpowerfuture.com/red-future/common/beans"
|
||||||
"github.com/gogf/gf/v2/frame/g"
|
"github.com/gogf/gf/v2/frame/g"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ import (
|
|||||||
entity "dataengine/model/entity/dict"
|
entity "dataengine/model/entity/dict"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"gitea.com/red-future/common/beans"
|
"gitea.redpowerfuture.com/red-future/common/beans"
|
||||||
"github.com/gogf/gf/v2/frame/g"
|
"github.com/gogf/gf/v2/frame/g"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ import (
|
|||||||
"dataengine/consts/api-feature"
|
"dataengine/consts/api-feature"
|
||||||
entity "dataengine/model/entity/dict"
|
entity "dataengine/model/entity/dict"
|
||||||
|
|
||||||
"gitea.com/red-future/common/beans"
|
"gitea.redpowerfuture.com/red-future/common/beans"
|
||||||
"github.com/gogf/gf/v2/frame/g"
|
"github.com/gogf/gf/v2/frame/g"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
package copydata
|
package copydata
|
||||||
|
|
||||||
import "gitea.com/red-future/common/beans"
|
import "gitea.redpowerfuture.com/red-future/common/beans"
|
||||||
|
|
||||||
// CidAccountReportDetail 广告数据报表详情实体
|
// CidAccountReportDetail 广告数据报表详情实体
|
||||||
type CidAccountReportDetail struct {
|
type CidAccountReportDetail struct {
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
package copydata
|
package copydata
|
||||||
|
|
||||||
import "gitea.com/red-future/common/beans"
|
import "gitea.redpowerfuture.com/red-future/common/beans"
|
||||||
|
|
||||||
// CidAccountReportSum 广告数据报表详情实体
|
// CidAccountReportSum 广告数据报表详情实体
|
||||||
type CidAccountReportSum struct {
|
type CidAccountReportSum struct {
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
package copydata
|
package copydata
|
||||||
|
|
||||||
import "gitea.com/red-future/common/beans"
|
import "gitea.redpowerfuture.com/red-future/common/beans"
|
||||||
|
|
||||||
// CampaignReportDetail 广告效果指标明细表实体
|
// CampaignReportDetail 广告效果指标明细表实体
|
||||||
type CampaignReportDetail struct {
|
type CampaignReportDetail struct {
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
package copydata
|
package copydata
|
||||||
|
|
||||||
import "gitea.com/red-future/common/beans"
|
import "gitea.redpowerfuture.com/red-future/common/beans"
|
||||||
|
|
||||||
// CampaignReportSum 广告计划效果指标表实体
|
// CampaignReportSum 广告计划效果指标表实体
|
||||||
type CampaignReportSum struct {
|
type CampaignReportSum struct {
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
package copydata
|
package copydata
|
||||||
|
|
||||||
import "gitea.com/red-future/common/beans"
|
import "gitea.redpowerfuture.com/red-future/common/beans"
|
||||||
|
|
||||||
// CreativeReportDetail 广告效果指标明细表实体
|
// CreativeReportDetail 广告效果指标明细表实体
|
||||||
type CreativeReportDetail struct {
|
type CreativeReportDetail struct {
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
package copydata
|
package copydata
|
||||||
|
|
||||||
import "gitea.com/red-future/common/beans"
|
import "gitea.redpowerfuture.com/red-future/common/beans"
|
||||||
|
|
||||||
// CreativeReportSum 广告效果指标表实体
|
// CreativeReportSum 广告效果指标表实体
|
||||||
type CreativeReportSum struct {
|
type CreativeReportSum struct {
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
package copydata
|
package copydata
|
||||||
|
|
||||||
import "gitea.com/red-future/common/beans"
|
import "gitea.redpowerfuture.com/red-future/common/beans"
|
||||||
|
|
||||||
// MaterialReport 素材报表数据实体
|
// MaterialReport 素材报表数据实体
|
||||||
type MaterialReport struct {
|
type MaterialReport struct {
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
package copydata
|
package copydata
|
||||||
|
|
||||||
import "gitea.com/red-future/common/beans"
|
import "gitea.redpowerfuture.com/red-future/common/beans"
|
||||||
|
|
||||||
// PopulationReport 人群报表实体
|
// PopulationReport 人群报表实体
|
||||||
type PopulationReport struct {
|
type PopulationReport struct {
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
package copydata
|
package copydata
|
||||||
|
|
||||||
import "gitea.com/red-future/common/beans"
|
import "gitea.redpowerfuture.com/red-future/common/beans"
|
||||||
|
|
||||||
// StorewideReportDetail 广告效果指标表实体
|
// StorewideReportDetail 广告效果指标表实体
|
||||||
type StorewideReportDetail struct {
|
type StorewideReportDetail struct {
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
package copydata
|
package copydata
|
||||||
|
|
||||||
import "gitea.com/red-future/common/beans"
|
import "gitea.redpowerfuture.com/red-future/common/beans"
|
||||||
|
|
||||||
// StorewideReportSum 广告效果指标表实体
|
// StorewideReportSum 广告效果指标表实体
|
||||||
type StorewideReportSum struct {
|
type StorewideReportSum struct {
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
package copydata
|
package copydata
|
||||||
|
|
||||||
import "gitea.com/red-future/common/beans"
|
import "gitea.redpowerfuture.com/red-future/common/beans"
|
||||||
|
|
||||||
// SyncTaskLog 同步任务日志实体
|
// SyncTaskLog 同步任务日志实体
|
||||||
type SyncTaskLog struct {
|
type SyncTaskLog struct {
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
package copydata
|
package copydata
|
||||||
|
|
||||||
import "gitea.com/red-future/common/beans"
|
import "gitea.redpowerfuture.com/red-future/common/beans"
|
||||||
|
|
||||||
// TaskReport 调控任务数据实体
|
// TaskReport 调控任务数据实体
|
||||||
type TaskReport struct {
|
type TaskReport struct {
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
package copydata
|
package copydata
|
||||||
|
|
||||||
import "gitea.com/red-future/common/beans"
|
import "gitea.redpowerfuture.com/red-future/common/beans"
|
||||||
|
|
||||||
// UnitReportDetail 广告效果指标详情表实体
|
// UnitReportDetail 广告效果指标详情表实体
|
||||||
type UnitReportDetail struct {
|
type UnitReportDetail struct {
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
package copydata
|
package copydata
|
||||||
|
|
||||||
import "gitea.com/red-future/common/beans"
|
import "gitea.redpowerfuture.com/red-future/common/beans"
|
||||||
|
|
||||||
// UnitReportSum 广告效果指标表实体
|
// UnitReportSum 广告效果指标表实体
|
||||||
type UnitReportSum struct {
|
type UnitReportSum struct {
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ package dict
|
|||||||
import (
|
import (
|
||||||
consts "dataengine/consts/api-feature"
|
consts "dataengine/consts/api-feature"
|
||||||
|
|
||||||
"gitea.com/red-future/common/beans"
|
"gitea.redpowerfuture.com/red-future/common/beans"
|
||||||
)
|
)
|
||||||
|
|
||||||
// ApiInterface 接口管理实体
|
// ApiInterface 接口管理实体
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
package tencent
|
package tencent
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"gitea.com/red-future/common/beans"
|
"gitea.redpowerfuture.com/red-future/common/beans"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Image 腾讯广告图片素材实体
|
// Image 腾讯广告图片素材实体
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
package tencent
|
package tencent
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"gitea.com/red-future/common/beans"
|
"gitea.redpowerfuture.com/red-future/common/beans"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Video 腾讯广告视频素材实体
|
// Video 腾讯广告视频素材实体
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ import (
|
|||||||
"fmt"
|
"fmt"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"gitea.com/red-future/common/beans"
|
"gitea.redpowerfuture.com/red-future/common/beans"
|
||||||
_ "github.com/gogf/gf/contrib/drivers/pgsql/v2"
|
_ "github.com/gogf/gf/contrib/drivers/pgsql/v2"
|
||||||
|
|
||||||
"github.com/gogf/gf/v2/os/gctx"
|
"github.com/gogf/gf/v2/os/gctx"
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ import (
|
|||||||
"sync/atomic"
|
"sync/atomic"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"gitea.com/red-future/common/beans"
|
"gitea.redpowerfuture.com/red-future/common/beans"
|
||||||
_ "github.com/gogf/gf/contrib/drivers/pgsql/v2"
|
_ "github.com/gogf/gf/contrib/drivers/pgsql/v2"
|
||||||
"github.com/gogf/gf/v2/os/gctx"
|
"github.com/gogf/gf/v2/os/gctx"
|
||||||
"github.com/sirupsen/logrus"
|
"github.com/sirupsen/logrus"
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ import (
|
|||||||
dto "dataengine/model/dto/copydata"
|
dto "dataengine/model/dto/copydata"
|
||||||
"errors"
|
"errors"
|
||||||
|
|
||||||
"gitea.com/red-future/common/beans"
|
"gitea.redpowerfuture.com/red-future/common/beans"
|
||||||
)
|
)
|
||||||
|
|
||||||
type cidAccountReportDetailService struct{}
|
type cidAccountReportDetailService struct{}
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ import (
|
|||||||
dto "dataengine/model/dto/copydata"
|
dto "dataengine/model/dto/copydata"
|
||||||
"errors"
|
"errors"
|
||||||
|
|
||||||
"gitea.com/red-future/common/beans"
|
"gitea.redpowerfuture.com/red-future/common/beans"
|
||||||
)
|
)
|
||||||
|
|
||||||
type campaignReportSumService struct{}
|
type campaignReportSumService struct{}
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ import (
|
|||||||
dto "dataengine/model/dto/copydata"
|
dto "dataengine/model/dto/copydata"
|
||||||
"errors"
|
"errors"
|
||||||
|
|
||||||
"gitea.com/red-future/common/beans"
|
"gitea.redpowerfuture.com/red-future/common/beans"
|
||||||
)
|
)
|
||||||
|
|
||||||
type creativeReportSumService struct{}
|
type creativeReportSumService struct{}
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ import (
|
|||||||
entity "dataengine/model/entity/copydata"
|
entity "dataengine/model/entity/copydata"
|
||||||
"errors"
|
"errors"
|
||||||
|
|
||||||
"gitea.com/red-future/common/beans"
|
"gitea.redpowerfuture.com/red-future/common/beans"
|
||||||
)
|
)
|
||||||
|
|
||||||
type materialReportService struct{}
|
type materialReportService struct{}
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ import (
|
|||||||
dto "dataengine/model/dto/copydata"
|
dto "dataengine/model/dto/copydata"
|
||||||
"errors"
|
"errors"
|
||||||
|
|
||||||
"gitea.com/red-future/common/beans"
|
"gitea.redpowerfuture.com/red-future/common/beans"
|
||||||
)
|
)
|
||||||
|
|
||||||
type storewideReportService struct{}
|
type storewideReportService struct{}
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ import (
|
|||||||
entity "dataengine/model/entity/copydata"
|
entity "dataengine/model/entity/copydata"
|
||||||
"errors"
|
"errors"
|
||||||
|
|
||||||
"gitea.com/red-future/common/beans"
|
"gitea.redpowerfuture.com/red-future/common/beans"
|
||||||
)
|
)
|
||||||
|
|
||||||
type taskReportService struct{}
|
type taskReportService struct{}
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ import (
|
|||||||
dto "dataengine/model/dto/copydata"
|
dto "dataengine/model/dto/copydata"
|
||||||
"errors"
|
"errors"
|
||||||
|
|
||||||
"gitea.com/red-future/common/beans"
|
"gitea.redpowerfuture.com/red-future/common/beans"
|
||||||
)
|
)
|
||||||
|
|
||||||
type unitReportSumService struct{}
|
type unitReportSumService struct{}
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ import (
|
|||||||
"fmt"
|
"fmt"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"gitea.com/red-future/common/beans"
|
"gitea.redpowerfuture.com/red-future/common/beans"
|
||||||
)
|
)
|
||||||
|
|
||||||
type fieldMappingConfigService struct{}
|
type fieldMappingConfigService struct{}
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ import (
|
|||||||
"net/url"
|
"net/url"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"gitea.com/red-future/common/db/gfdb"
|
"gitea.redpowerfuture.com/red-future/common/db/gfdb"
|
||||||
"github.com/gogf/gf/v2/frame/g"
|
"github.com/gogf/gf/v2/frame/g"
|
||||||
"github.com/sirupsen/logrus"
|
"github.com/sirupsen/logrus"
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ import (
|
|||||||
"net/url"
|
"net/url"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"gitea.com/red-future/common/db/gfdb"
|
"gitea.redpowerfuture.com/red-future/common/db/gfdb"
|
||||||
"github.com/gogf/gf/v2/frame/g"
|
"github.com/gogf/gf/v2/frame/g"
|
||||||
"github.com/sirupsen/logrus"
|
"github.com/sirupsen/logrus"
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user