12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- package com.caimei.www.controller.authorized;
- import com.caimei.www.controller.BaseController;
- import com.caimei.www.service.AccountService;
- import org.springframework.beans.factory.annotation.Autowired;
- import org.springframework.stereotype.Controller;
- import org.springframework.web.bind.annotation.GetMapping;
- /**
- * Description
- *
- * @author : Charles
- * @date : 2020/7/24
- */
- @Controller
- public class AccountController extends BaseController {
- private static final String LOGIN_PATH = "account/login";
- private static final String SIGN_UP_PATH = "account/sign-up";
- private AccountService accountService;
- @Autowired
- public void setAccountService(AccountService accountService) {
- this.accountService = accountService;
- }
- /**
- * 登录页
- */
- @GetMapping("/login.html")
- public String login() {
- return LOGIN_PATH;
- }
- /**
- * 注册页
- */
- @GetMapping("/sign-up.html")
- public String signUp() {
- return SIGN_UP_PATH;
- }
- }
|