Commit 21b4c3fa by giaogiao

修改项目

parent f6e432ad
...@@ -17,7 +17,7 @@ import java.io.IOException; ...@@ -17,7 +17,7 @@ import java.io.IOException;
* *
**/ **/
@Slf4j @Slf4j
@Api(value = "Hello World2", tags = {"Hello World2"}) @Api(value = "Hello World2", tags = {"APP Hello World2"})
@RestController @RestController
@RequestMapping("/app") @RequestMapping("/app")
public class AppHelloWorldController { public class AppHelloWorldController {
......
...@@ -45,7 +45,7 @@ import javax.servlet.http.HttpServletResponse; ...@@ -45,7 +45,7 @@ import javax.servlet.http.HttpServletResponse;
@Slf4j @Slf4j
@RestController @RestController
@Module("system") @Module("system")
@Api(value = "用户注册API", tags = {"用户注册"}) @Api(value = "用户注册API", tags = {"APP用户注册"})
@RequestMapping("/app") @RequestMapping("/app")
public class RegisterController { public class RegisterController {
......
package com.jumeirah.api.app.service;
public interface RegisterService {
void regiest();
}
package com.jumeirah.api.app.service.impl;
import com.jumeirah.api.app.service.RegisterService;
import org.springframework.stereotype.Service;
@Service
public class RegisterServiceImpl implements RegisterService {
@Override
public void regiest() {
}
}
package com.jumeirah.api.merchant.controller;
import io.geekidea.springbootplus.framework.common.api.ApiResult;
import io.geekidea.springbootplus.framework.log.annotation.OperationLog;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import java.io.IOException;
/**
* Hello World Controller
*
**/
@Slf4j
@Api(value = "Hello World2", tags = {"商户Hello World2"})
@RestController
@RequestMapping("/merchant/")
public class AppHelloWorldController {
/**
* Hello World
*
* @return
* @throws IOException
*/
@GetMapping(value = "/world")
@OperationLog(name = "helloWorld")
@ApiOperation(value = "Hello World", response = String.class)
public ApiResult<String> helloWorld() throws IOException {
log.debug("Hello World...app");
return ApiResult.ok("Hello World app merchant");
}
}
/*
* Copyright 2019-2029 geekidea(https://github.com/geekidea)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.jumeirah.api.merchant.controller;
import com.jumeirah.common.param.RegisterParam;
import com.jumeirah.common.service.RegisterService;
import com.jumeirah.common.vo.LoginSysUserTokenVo;
import io.geekidea.springbootplus.framework.common.api.ApiResult;
import io.geekidea.springbootplus.framework.log.annotation.Module;
import io.geekidea.springbootplus.framework.log.annotation.OperationLogIgnore;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestHeader;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import javax.servlet.http.HttpServletResponse;
/**
* 注册控制器
*
* @author geekidea
* @date 2019-09-28
* @since 1.3.0.RELEASE
**/
@Slf4j
@RestController
@Module("system")
@Api(value = "商户注册API", tags = {"商户注册"})
@RequestMapping("/merchant/")
public class RegisterController {
@Autowired
private RegisterService registerService;
@PostMapping("/register")
@OperationLogIgnore
@ApiOperation(value = "注册", notes = "商户注册", response = LoginSysUserTokenVo.class)
public ApiResult<LoginSysUserTokenVo> register(@Validated @RequestBody RegisterParam registerParam, HttpServletResponse response, @RequestHeader(required = false) String language) throws Exception {
return registerService.register(registerParam, response,language);
}
}
...@@ -43,7 +43,7 @@ import java.util.List; ...@@ -43,7 +43,7 @@ import java.util.List;
*/ */
@Slf4j @Slf4j
@Controller @Controller
@RequestMapping("/download") @RequestMapping("/sys/download")
@Module("system") @Module("system")
@Api(value = "文件下载", tags = {"文件下载"}) @Api(value = "文件下载", tags = {"文件下载"})
public class DownloadController { public class DownloadController {
......
...@@ -36,7 +36,7 @@ import java.io.IOException; ...@@ -36,7 +36,7 @@ import java.io.IOException;
@Slf4j @Slf4j
@Api(value = "Hello World", tags = {"Hello World"}) @Api(value = "Hello World", tags = {"Hello World"})
@RestController @RestController
@RequestMapping("/system/hello") @RequestMapping("/sys/hello")
public class HelloWorldController { public class HelloWorldController {
/** /**
......
...@@ -17,14 +17,14 @@ ...@@ -17,14 +17,14 @@
package com.jumeirah.api.system.controller; package com.jumeirah.api.system.controller;
import com.alibaba.fastjson.JSON; import com.alibaba.fastjson.JSON;
import io.geekidea.springbootplus.framework.common.api.ApiResult;
import io.geekidea.springbootplus.framework.log.annotation.Module;
import io.geekidea.springbootplus.framework.log.annotation.OperationLogIgnore;
import com.jumeirah.common.param.LoginParam; import com.jumeirah.common.param.LoginParam;
import com.jumeirah.common.service.LoginService; import com.jumeirah.common.service.LoginService;
import com.jumeirah.common.service.SysUserService; import com.jumeirah.common.service.SysUserService;
import com.jumeirah.common.vo.LoginSysUserTokenVo; import com.jumeirah.common.vo.LoginSysUserTokenVo;
import com.jumeirah.common.vo.SysUserQueryVo; import com.jumeirah.common.vo.SysUserQueryVo;
import io.geekidea.springbootplus.framework.common.api.ApiResult;
import io.geekidea.springbootplus.framework.log.annotation.Module;
import io.geekidea.springbootplus.framework.log.annotation.OperationLogIgnore;
import io.swagger.annotations.Api; import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation; import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
...@@ -35,6 +35,7 @@ import org.springframework.web.bind.annotation.GetMapping; ...@@ -35,6 +35,7 @@ import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestHeader; import org.springframework.web.bind.annotation.RequestHeader;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController; import org.springframework.web.bind.annotation.RestController;
import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletRequest;
...@@ -51,6 +52,8 @@ import javax.servlet.http.HttpServletResponse; ...@@ -51,6 +52,8 @@ import javax.servlet.http.HttpServletResponse;
@RestController @RestController
@Module("system") @Module("system")
@Api(value = "系统登录API", tags = {"系统登录"}) @Api(value = "系统登录API", tags = {"系统登录"})
@RequestMapping("/sys/")
public class LoginController { public class LoginController {
@Autowired @Autowired
......
...@@ -52,7 +52,7 @@ import java.util.List; ...@@ -52,7 +52,7 @@ import java.util.List;
*/ */
@Slf4j @Slf4j
@RestController @RestController
@RequestMapping("/sysDepartment") @RequestMapping("/sys/sysDepartment")
@Module("system") @Module("system")
@Api(value = "系统部门API", tags = {"系统部门"}) @Api(value = "系统部门API", tags = {"系统部门"})
public class SysDepartmentController extends BaseController { public class SysDepartmentController extends BaseController {
......
...@@ -53,7 +53,7 @@ import java.util.List; ...@@ -53,7 +53,7 @@ import java.util.List;
*/ */
@Slf4j @Slf4j
@RestController @RestController
@RequestMapping("/sysPermission") @RequestMapping("/sys/sysPermission")
@Module("system") @Module("system")
@Api(value = "系统权限 API", tags = {"系统权限"}) @Api(value = "系统权限 API", tags = {"系统权限"})
public class SysPermissionController extends BaseController { public class SysPermissionController extends BaseController {
......
...@@ -53,7 +53,7 @@ import java.util.List; ...@@ -53,7 +53,7 @@ import java.util.List;
*/ */
@Slf4j @Slf4j
@RestController @RestController
@RequestMapping("/sysRole") @RequestMapping("/sys/sysRole")
@Module("system") @Module("system")
@Api(value = "系统角色API", tags = {"系统角色"}) @Api(value = "系统角色API", tags = {"系统角色"})
public class SysRoleController extends BaseController { public class SysRoleController extends BaseController {
......
...@@ -55,7 +55,7 @@ import org.springframework.web.bind.annotation.RestController; ...@@ -55,7 +55,7 @@ import org.springframework.web.bind.annotation.RestController;
*/ */
@Slf4j @Slf4j
@RestController @RestController
@RequestMapping("/sysUser") @RequestMapping("/sys/sysUser")
@Module("system") @Module("system")
@Api(value = "系统用户API", tags = {"系统用户"}) @Api(value = "系统用户API", tags = {"系统用户"})
public class SysUserController extends BaseController { public class SysUserController extends BaseController {
......
...@@ -48,7 +48,7 @@ import java.time.format.DateTimeFormatter; ...@@ -48,7 +48,7 @@ import java.time.format.DateTimeFormatter;
*/ */
@Slf4j @Slf4j
@RestController @RestController
@RequestMapping("/upload") @RequestMapping("/sys/upload")
@Module("system") @Module("system")
@Api(value = "文件上传", tags = {"文件上传"}) @Api(value = "文件上传", tags = {"文件上传"})
public class UploadController { public class UploadController {
......
...@@ -56,7 +56,7 @@ import java.util.concurrent.TimeUnit; ...@@ -56,7 +56,7 @@ import java.util.concurrent.TimeUnit;
@Controller @Controller
@Api(value = "验证码API", tags = {"验证码"}) @Api(value = "验证码API", tags = {"验证码"})
@Module("system") @Module("system")
@RequestMapping("/verificationCode") @RequestMapping("/sys/verificationCode")
@ConditionalOnProperty(value = {"spring-boot-plus.enable-verify-code"}, matchIfMissing = true) @ConditionalOnProperty(value = {"spring-boot-plus.enable-verify-code"}, matchIfMissing = true)
public class VerificationCodeController { public class VerificationCodeController {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment