切换导航条
此项目
正在载入...
登录
allied-creation
/
allied-creation-gateway
·
提交
转到一个项目
GitLab
转到群组
项目
活动
文件
提交
管道
0
构建
0
图表
里程碑
问题
0
合并请求
0
成员
标记
维基
派生
网络
创建新的问题
下载为
邮件补丁
差异文件
浏览文件
作者
tangxuhui
3 years ago
提交
bd0e991fe6eb1193ba79d679ad1512a4072dbb93
1 个父辈
5bda0185
数据结构调整
隐藏空白字符变更
内嵌
并排对比
正在显示
2 个修改的文件
包含
27 行增加
和
21 行删除
pkg/infrastructure/service_gateway/allied_creation_cooperation/param_contract_undertaker_feedback.go
pkg/port/beego/beego.go
pkg/infrastructure/service_gateway/allied_creation_cooperation/param_contract_undertaker_feedback.go
查看文件 @
bd0e991
...
...
@@ -52,11 +52,11 @@ type (
DataContractUndertakerFeedbackSearch
struct
{
Grid
struct
{
List
[]
struct
{
FeedbackID
string
`json:"feedbackId"`
FeedbackAttachment
interface
{}
`json:"feedbackAttachment"`
FeedbackContent
string
`json:"feedbackContent"`
CooperationContractNumber
string
`json:"cooperationContractNumber"`
CooperationContractName
string
`json:"cooperationContractName"`
FeedbackID
string
`json:"feedbackId"`
FeedbackAttachment
[]
domain
.
Attachment
`json:"feedbackAttachment"`
FeedbackContent
string
`json:"feedbackContent"`
CooperationContractNumber
string
`json:"cooperationContractNumber"`
CooperationContractName
string
`json:"cooperationContractName"`
ContractUndertaker
struct
{
UserId
int
`json:"userId,string,"`
UserPhone
string
`json:"userPhone"`
...
...
@@ -69,19 +69,18 @@ type (
UserCode
string
`json:"userCode"`
}
`json:"userInfo"`
}
`json:"contractUndertaker"`
Org
interface
{}
`json:"org"`
Company
interface
{}
`json:"company"`
//UpdatedAt time.Time `json:"updatedAt"`
//DeletedAt time.Time `json:"deletedAt"`
CreatedAt
jtime
.
TimeToUnixMsec
`json:"createdAt"`
CooperationMode
struct
{
// 共创模式ID
CooperationModeId
int
`json:"cooperationModeId,string,"`
// 共创模式编码,唯一确定
CooperationModeNumber
string
`json:"cooperationModeNumber"`
// 模式名称,唯一确定
CooperationModeName
string
`json:"cooperationModeName"`
}
`json:"cooperationMode"`
Org
struct
{
OrgId
int64
`json:"orgId,string"`
// 组织机构ID
OrgName
string
`json:"orgName"`
// 组织名称
}
`json:"org"`
Company
struct
{
CompanyId
int64
`json:"companyId,string"`
// 公司ID
CompanyLogo
string
`json:"companyLogo"`
// 公司logo
CompanyName
string
`json:"companyName"`
// 公司名称
}
`json:"company"`
CreatedAt
jtime
.
TimeToUnixMsec
`json:"createdAt"`
// 共创模式名称
CooperationModeName
string
`json:"cooperationModeName"`
}
`json:"list"`
Total
int
`json:"total"`
}
`json:"grid"`
...
...
pkg/port/beego/beego.go
查看文件 @
bd0e991
...
...
@@ -2,16 +2,16 @@ package beego
import
(
"encoding/json"
"os"
"strconv"
"github.com/beego/beego/v2/server/web/context"
"gitlab.fjmaimaimai.com/allied-creation/allied-creation-gateway/pkg/constant"
"gitlab.fjmaimaimai.com/allied-creation/allied-creation-gateway/pkg/port/beego/middleware"
"os"
"strconv"
"github.com/beego/beego/v2/server/web"
"github.com/linmadan/egglib-go/web/beego/filters"
"gitlab.fjmaimaimai.com/allied-creation/allied-creation-gateway/pkg/log"
_
"gitlab.fjmaimaimai.com/allied-creation/allied-creation-gateway/pkg/log"
_
"gitlab.fjmaimaimai.com/allied-creation/allied-creation-gateway/pkg/port/beego/routers"
)
...
...
@@ -20,6 +20,7 @@ func init() {
web
.
BConfig
.
CopyRequestBody
=
true
web
.
BConfig
.
RunMode
=
"dev"
web
.
BConfig
.
Listen
.
HTTPPort
=
constant
.
HTTP_PORT
web
.
BConfig
.
Listen
.
EnableAdmin
=
false
web
.
BConfig
.
WebConfig
.
CommentRouterPath
=
"/pkg/port/beego/routers"
if
os
.
Getenv
(
"RUN_MODE"
)
!=
""
{
...
...
@@ -31,6 +32,12 @@ func init() {
web
.
BConfig
.
Listen
.
HTTPPort
=
port
}
}
//https支持
web
.
BConfig
.
Listen
.
EnableHTTPS
=
false
web
.
BConfig
.
Listen
.
HTTPSPort
=
80
web
.
BConfig
.
Listen
.
HTTPSCertFile
=
""
web
.
BConfig
.
Listen
.
HTTPSKeyFile
=
""
filters
.
SecureKeyMap
[
"token"
]
=
"x-mmm-accesstoken"
web
.
InsertFilter
(
"/*"
,
web
.
BeforeRouter
,
filters
.
AllowCors
())
web
.
InsertFilter
(
"/*"
,
web
.
BeforeRouter
,
filters
.
CreateRequstLogFilter
(
log
.
Logger
))
...
...
请
注册
或
登录
后发表评论