登录token优化
This commit is contained in:
@@ -1,8 +1,15 @@
|
|||||||
package com.mini.mybigscreen.biz.controller;
|
package com.mini.mybigscreen.biz.controller;
|
||||||
|
|
||||||
|
import com.mini.mybigscreen.Model.Result;
|
||||||
|
import com.mini.mybigscreen.biz.domain.ErpAccount;
|
||||||
|
import com.mini.mybigscreen.biz.service.ErpAccountService;
|
||||||
|
import jakarta.annotation.Resource;
|
||||||
|
import org.springframework.web.bind.annotation.GetMapping;
|
||||||
import org.springframework.web.bind.annotation.RequestMapping;
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
import org.springframework.web.bind.annotation.RestController;
|
import org.springframework.web.bind.annotation.RestController;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* <p>
|
* <p>
|
||||||
* 账户信息 前端控制器
|
* 账户信息 前端控制器
|
||||||
@@ -15,4 +22,11 @@ import org.springframework.web.bind.annotation.RestController;
|
|||||||
@RequestMapping("/biz/erpAccount")
|
@RequestMapping("/biz/erpAccount")
|
||||||
public class ErpAccountController {
|
public class ErpAccountController {
|
||||||
|
|
||||||
|
@Resource
|
||||||
|
private ErpAccountService accountService;
|
||||||
|
|
||||||
|
@GetMapping("list")
|
||||||
|
public Result<List<ErpAccount>> getList() {
|
||||||
|
return Result.success(accountService.list());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user