auth_controller.go 633 字节
package backgroud_client

import (
	"gitlab.fjmaimaimai.com/allied-creation/allied-creation-gateway/pkg/application/auth/command"
	"gitlab.fjmaimaimai.com/allied-creation/allied-creation-gateway/pkg/application/auth/service"
	"gitlab.fjmaimaimai.com/allied-creation/allied-creation-gateway/pkg/port/beego/controllers"
)

type AuthController struct {
	controllers.BaseController
}

func (controller *AuthController) LoginPwd() {
	authService := service.AuthService{}
	loginCmd := &command.LoginPwdCommand{}
	//Must()
	controller.Unmarshal(loginCmd)
	data, err := authService.AuthAdminLogin(loginCmd)
	controller.Response(data, err)
}