Browse Source

写法初始化

cheer-on
主管理员 9 months ago
parent
commit
1bb2a9a97e
4 changed files with 95 additions and 0 deletions
  1. +18
    -0
      jeecg-boot-module-system/src/main/java/org/jeecg/modules/api/noticeapicontroller/IndexApiController.java
  2. +14
    -0
      jeecg-boot-module-system/src/main/java/org/jeecg/modules/api/noticeapicontroller/InfoApiController.java
  3. +49
    -0
      jeecg-boot-module-system/src/main/java/org/jeecg/modules/api/noticeapicontroller/LoginApiController.java
  4. +14
    -0
      jeecg-boot-module-system/src/main/java/org/jeecg/modules/api/noticeapicontroller/OrderApiController.java

+ 18
- 0
jeecg-boot-module-system/src/main/java/org/jeecg/modules/api/noticeapicontroller/IndexApiController.java View File

@ -0,0 +1,18 @@
package org.jeecg.modules.api.noticeapicontroller;
import io.swagger.annotations.Api;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
@Api(tags="小程序-首页相关接口")
@RestController
@RequestMapping("/api/index")
@Slf4j
public class IndexApiController {
}

+ 14
- 0
jeecg-boot-module-system/src/main/java/org/jeecg/modules/api/noticeapicontroller/InfoApiController.java View File

@ -0,0 +1,14 @@
package org.jeecg.modules.api.noticeapicontroller;
import io.swagger.annotations.Api;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
@Api(tags="小程序-个人中心接口")
@RestController
@RequestMapping("/api/info")
@Slf4j
public class InfoApiController {
}

+ 49
- 0
jeecg-boot-module-system/src/main/java/org/jeecg/modules/api/noticeapicontroller/LoginApiController.java View File

@ -1,4 +1,53 @@
package org.jeecg.modules.api.noticeapicontroller;
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;
@Api(tags="小程序-登录相关接口")
@RestController
@RequestMapping("/api/login")
@Slf4j
public class LoginApiController {
@ApiOperation(value="小程序-登录接口", notes="小程序-登录接口")
@GetMapping("/login")
public String login(){
return "登录成功";
}
@ApiOperation(value="小程序-退出接口", notes="小程序-退出接口")
@GetMapping("/logout")
public String logout(){
return "退出成功";
}
@ApiOperation(value="小程序-注册接口", notes="小程序-注册接口")
@GetMapping("/register")
public String register(){
return "注册成功";
}
@ApiOperation(value="小程序-找回密码接口", notes="小程序-找回密码接口")
@GetMapping("/forget")
public String forget(){
return "找回密码成功";
}
@ApiOperation(value="小程序-发送验证码接口", notes="小程序-发送验证码接口")
@GetMapping("/sendCode")
public String sendCode(){
return "发送验证码成功";
}
@ApiOperation(value="小程序-绑定手机接口", notes="小程序-绑定手机接口")
@GetMapping("/bindPhone")
public String bindPhone(){
return "绑定手机成功";
}
}

+ 14
- 0
jeecg-boot-module-system/src/main/java/org/jeecg/modules/api/noticeapicontroller/OrderApiController.java View File

@ -0,0 +1,14 @@
package org.jeecg.modules.api.noticeapicontroller;
import io.swagger.annotations.Api;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
@Api(tags="小程序-订单相关接口")
@RestController
@RequestMapping("/api/order")
@Slf4j
public class OrderApiController {
}

Loading…
Cancel
Save