login
This commit is contained in:
parent
8ab167f498
commit
a30ea14fc3
|
|
@ -0,0 +1,30 @@
|
|||
package net.xnzn.core.customer.controller;
|
||||
|
||||
import com.bonus.common.core.domain.R;
|
||||
import com.bonus.common.core.web.controller.BaseController;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import net.xnzn.core.customer.service.CustInfoBusiness;
|
||||
import net.xnzn.core.customer.vo.CustInfoAppIdLoginDTO;
|
||||
import net.xnzn.core.customer.vo.CustInfoAppIdLoginVO;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
import java.util.Map;
|
||||
|
||||
@RestController
|
||||
@RequestMapping("/custCasual")
|
||||
@Slf4j
|
||||
public class CustCasualController extends BaseController
|
||||
{
|
||||
@Autowired
|
||||
private CustInfoBusiness custInfoBusiness;
|
||||
|
||||
@PostMapping({"/customLoginWithAppId"})
|
||||
@ApiOperation("页面通过appId登录")
|
||||
public R<?> customLoginWithAppId(@RequestHeader Map<String, String> headers, @RequestBody CustInfoAppIdLoginDTO content) {
|
||||
Integer sourceType = Integer.valueOf(headers.get("headers"));
|
||||
CustInfoAppIdLoginVO result = this.custInfoBusiness.customLoginWithAppId(content, sourceType);
|
||||
return R.ok(result);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue