切换导航条
此项目
正在载入...
登录
allied-creation
/
performance
·
提交
转到一个项目
GitLab
转到群组
项目
活动
文件
提交
管道
0
构建
0
图表
里程碑
问题
0
合并请求
0
成员
标记
维基
派生
网络
创建新的问题
下载为
邮件补丁
差异文件
浏览文件
作者
tangxvhui
2 years ago
提交
8b124d02cab160f2b7b33667a20d468ec7c4978d
1 个父辈
a80c87f5
调整参数
隐藏空白字符变更
内嵌
并排对比
正在显示
3 个修改的文件
包含
10 行增加
和
2 行删除
pkg/application/auth/command/authorize.go
pkg/application/auth/service/auth.go
pkg/port/beego/controllers/auth_controller.go
pkg/application/auth/command/authorize.go
0 → 100644
查看文件 @
8b124d0
package
command
type
AuthorizeCommand
struct
{
Credentials
string
`json:"credentials" valid:"Required;"`
//登录凭证
Cuid
int
`json:"cuid" valid:"Required;"`
//统一用户中心用户 UID
Cid
int
`json:"cid" valid:"Required;"`
//统一用户中心公司 ID
Muid
int
`json:"muid" valid:"Required;"`
//企业平台中的用户 UID
}
...
...
pkg/application/auth/service/auth.go
查看文件 @
8b124d0
...
...
@@ -231,7 +231,7 @@ func (service *AuthService) MeInfo(param *command.GetMeInfo) (map[string]interfa
}
// Authorize 移动端授权登录
func
(
srv
*
AuthService
)
Authorize
(
param
*
command
.
MobileLogin
Command
)
(
map
[
string
]
interface
{},
error
)
{
func
(
srv
*
AuthService
)
Authorize
(
param
*
command
.
Authorize
Command
)
(
map
[
string
]
interface
{},
error
)
{
transactionContext
,
err
:=
factory
.
CreateTransactionContext
(
nil
)
if
err
!=
nil
{
return
nil
,
application
.
ThrowError
(
application
.
TRANSACTION_ERROR
,
err
.
Error
())
...
...
pkg/port/beego/controllers/auth_controller.go
查看文件 @
8b124d0
...
...
@@ -44,7 +44,7 @@ func (controller *AuthController) MobileLogin() {
// Login 手机端登录 获取authCode
func
(
controller
*
AuthController
)
Authorize
()
{
authService
:=
&
service
.
AuthService
{}
loginCommand
:=
&
command
.
MobileLogin
Command
{}
loginCommand
:=
&
command
.
Authorize
Command
{}
_
=
controller
.
Unmarshal
(
loginCommand
)
resp
,
err
:=
authService
.
Authorize
(
loginCommand
)
controller
.
Response
(
resp
,
err
)
...
...
请
注册
或
登录
后发表评论