切换导航条
此项目
正在载入...
登录
mmm-go
/
partnermg
·
提交
转到一个项目
GitLab
转到群组
项目
活动
文件
提交
管道
0
构建
0
图表
里程碑
问题
0
合并请求
0
成员
标记
维基
派生
网络
创建新的问题
下载为
邮件补丁
差异文件
浏览文件
作者
唐旭辉
5 years ago
提交
5a8445b14b9c76bde18dfee34e64d767a072a3ea
1 个父辈
82303208
修复bug 登录
隐藏空白字符变更
内嵌
并排对比
正在显示
3 个修改的文件
包含
9 行增加
和
2 行删除
conf/app.conf
pkg/infrastructure/repository/pg_company_reponsitory.go
pkg/infrastructure/serviceGateway/httplib_business-admin_service.go
conf/app.conf
查看文件 @
5a8445b
appname
=
partnermg
runmode
=
"${RUN_MODE||
test
}"
runmode
=
"${RUN_MODE||
dev
}"
httpport
=
"${HTTP_PORT||8082}"
#开启监控
...
...
pkg/infrastructure/repository/pg_company_reponsitory.go
查看文件 @
5a8445b
...
...
@@ -97,7 +97,7 @@ func (reponsitory CompanyRepository) FindOne(queryOptions domain.CompanyFindOneO
}
if
queryOptions
.
AdminCompanyId
>
0
{
hasCondition
=
true
query
=
query
.
Where
(
"admin_company_id=?"
,
queryOptions
.
Id
)
query
=
query
.
Where
(
"admin_company_id=?"
,
queryOptions
.
AdminCompany
Id
)
}
if
!
hasCondition
{
return
domain
.
Company
{},
errors
.
New
(
"findOne 必须要有查询条件"
)
...
...
pkg/infrastructure/serviceGateway/httplib_business-admin_service.go
查看文件 @
5a8445b
...
...
@@ -21,6 +21,12 @@ func NewMmmBusinessAdminServiceGateway() *MmmBusinessAdminServiceGateway {
baseURL
:
constant
.
BUSINESS_ADMIN_HOST
,
}
}
func
(
client
MmmBusinessAdminServiceGateway
)
buildHeader
()
http
.
Header
{
var
h
=
http
.
Header
{}
h
.
Set
(
"Content-Type"
,
"application/json"
)
h
.
Set
(
"Accept"
,
"application/json"
)
return
h
}
type
ResponseGetUserAuth
struct
{
UCenterCommonMsg
...
...
@@ -41,6 +47,7 @@ func (gateway MmmBusinessAdminServiceGateway) httpDo(reqURL string, mathod strin
logs
.
Info
(
"====>Send To URL:%s"
,
reqURL
)
logs
.
Info
(
"====>Send To BusinessAdmin:%s"
,
bt
.
String
())
req
,
err
:=
http
.
NewRequest
(
mathod
,
reqURL
,
bt
)
req
.
Header
=
gateway
.
buildHeader
()
if
err
!=
nil
{
return
nil
,
err
}
...
...
请
注册
或
登录
后发表评论