Browse Source

不需要token的代码接口

cheer-on
主管理员 9 months ago
parent
commit
61eec67807
10 changed files with 351 additions and 24 deletions
  1. +61
    -8
      jeecg-boot-module-system/src/main/java/org/jeecg/modules/api/noticeapicontroller/IndexApiController.java
  2. +130
    -3
      jeecg-boot-module-system/src/main/java/org/jeecg/modules/api/noticeapicontroller/InfoApiController.java
  3. +19
    -0
      jeecg-boot-module-system/src/main/java/org/jeecg/modules/apiBean/InfoBean.java
  4. +21
    -0
      jeecg-boot-module-system/src/main/java/org/jeecg/modules/apiBean/TrendsBean.java
  5. +21
    -0
      jeecg-boot-module-system/src/main/java/org/jeecg/modules/apiservice/IndexApiService.java
  6. +0
    -4
      jeecg-boot-module-system/src/main/java/org/jeecg/modules/apiservice/IndexService.java
  7. +53
    -0
      jeecg-boot-module-system/src/main/java/org/jeecg/modules/apiservice/InfoApiService.java
  8. +38
    -0
      jeecg-boot-module-system/src/main/java/org/jeecg/modules/apiservice/impl/IndexApiServiceImpl.java
  9. +0
    -9
      jeecg-boot-module-system/src/main/java/org/jeecg/modules/apiservice/impl/IndexServiceImpl.java
  10. +8
    -0
      jeecg-boot-module-system/src/main/java/org/jeecg/modules/apiservice/impl/InfoApiServiceImpl.java

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

@ -4,42 +4,95 @@ package org.jeecg.modules.api.noticeapicontroller;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.jeecg.common.api.vo.Result;
import org.jeecg.modules.apiBean.TrendsBean;
import org.jeecg.modules.apiservice.IndexApiService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import javax.annotation.Resource;
@Api(tags="小程序-首页相关接口")
@RestController
@RequestMapping("/api/index")
@Slf4j
public class IndexApiController {
@Resource
private IndexApiService indexApiService;
//获取banner列表
@ApiOperation(value="小程序-获取banner列表", notes="小程序-获取banner列表")
@GetMapping("/getBanner")
public String getBanner()
public Result<?> getBanner()
{
return "";
return indexApiService.getBanner();
}
//获取认证演员
@ApiOperation(value="小程序-获取认证演员", notes="小程序-获取认证演员")
@GetMapping("/getActor")
public String getActor()
@GetMapping("/getActorList")
public Result<?> getActorList()
{
return "";
return indexApiService.getActorList();
}
//获取动态列表带分页
@ApiOperation(value="小程序-获取动态列表带分页", notes="小程序-获取动态列表带分页")
@GetMapping("/getDynamicPage")
public String getDynamicPage()
@GetMapping("/getTrendsPage")
public Result<?> getTrendsPage(TrendsBean bean)
{
return indexApiService.getTrendsPage(bean);
}
//获取动态详情
@ApiOperation(value="小程序-获取动态详情", notes="小程序-获取动态详情")
@GetMapping("/getTrendsDetail")
public Result<?> getTrendsDetail(String id)
{
return indexApiService.getTrendsDetail(id);
}
//获取代表作品带分业
@ApiOperation(value="小程序-获取代表作品带分页", notes="小程序-获取代表作品带分页")
@GetMapping("/getWorkPage")
public Result<?> getWorkPage()
{
return Result.OK();
}
//获取代表作品详情
@ApiOperation(value="小程序-获取代表作品详情", notes="小程序-获取代表作品详情")
@GetMapping("/getWorkDetail")
public Result<?> getWorkDetail()
{
return Result.OK();
}
//获取演员集带分页
@ApiOperation(value="小程序-获取演员集带分页", notes="小程序-获取演员集带分页")
@GetMapping("/getActorSetPage")
public Result<?> getActorSetPage()
{
return "";
return Result.OK();
}
//获取投诉原因
@ApiOperation(value="小程序-获取投诉原因", notes="小程序-获取投诉原因")
@GetMapping("/getComplaintReason")
public Result<?> getComplaintReason()
{
return Result.OK();
}
}


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

@ -2,7 +2,12 @@ package org.jeecg.modules.api.noticeapicontroller;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.jeecg.common.api.vo.Result;
import org.jeecg.modules.apiBean.InfoBean;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestHeader;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
@ -12,13 +17,135 @@ import org.springframework.web.bind.annotation.RestController;
@Slf4j
public class InfoApiController {
//获取个人信息接口
@RequestMapping("/getInfo")
public String getInfo(){
return "获取个人信息接口";
@ApiOperation(value="小程序-获取个人信息接口", notes="小程序-获取个人信息接口")
@GetMapping("/getInfo")
public Result<?> getInfo(@RequestHeader("X-Access-Token") String token)
{
return Result.OK();
}
//修改个人信息接口
@ApiOperation(value="小程序-修改个人信息接口", notes="小程序-修改个人信息接口")
@GetMapping("/updateInfo")
public Result<?> updateInfo(@RequestHeader("X-Access-Token") String token, InfoBean bean)
{
return Result.OK();
}
//添加银行卡
@ApiOperation(value="小程序-添加银行卡", notes="小程序-添加银行卡")
@GetMapping("/addBankCard")
public Result<?> addBankCard(@RequestHeader("X-Access-Token") String token)
{
return Result.OK();
}
//获取银行卡列表带分页
@ApiOperation(value="小程序-获取银行卡列表带分页", notes="小程序-获取银行卡列表带分页")
@GetMapping("/getBankCardPage")
public Result<?> getBankCardPage(@RequestHeader("X-Access-Token") String token)
{
return Result.OK();
}
//获取收益记录带分页
@ApiOperation(value="小程序-获取收益记录带分页", notes="小程序-获取收益记录带分页")
@GetMapping("/getIncomePage")
public Result<?> getIncomePage(@RequestHeader("X-Access-Token") String token)
{
return Result.OK();
}
//用户提现
@ApiOperation(value="小程序-用户提现", notes="小程序-用户提现")
@GetMapping("/withdraw")
public Result<?> withdraw(@RequestHeader("X-Access-Token") String token)
{
return Result.OK();
}
//获取提现记录带分页
@ApiOperation(value="小程序-获取提现记录带分页", notes="小程序-获取提现记录带分页")
@GetMapping("/getWithdrawPage")
public Result<?> getWithdrawPage(@RequestHeader("X-Access-Token") String token)
{
return Result.OK();
}
//获取个人认证信息
@ApiOperation(value="小程序-获取个人认证信息", notes="小程序-获取个人认证信息")
@GetMapping("/getCertification")
public Result<?> getCertification(@RequestHeader("X-Access-Token") String token)
{
return Result.OK();
}
//获取企业认证信息
@ApiOperation(value="小程序-获取企业认证信息", notes="小程序-获取企业认证信息")
@GetMapping("/getCompanyCertification")
public Result<?> getCompanyCertification(@RequestHeader("X-Access-Token") String token)
{
return Result.OK();
}
//个人认证提交
@ApiOperation(value="小程序-个人认证提交", notes="小程序-个人认证提交")
@GetMapping("/submitCertification")
public Result<?> submitCertification(@RequestHeader("X-Access-Token") String token)
{
return Result.OK();
}
//企业认证提交
@ApiOperation(value="小程序-企业认证提交", notes="小程序-企业认证提交")
@GetMapping("/submitCompanyCertification")
public Result<?> submitCompanyCertification(@RequestHeader("X-Access-Token") String token)
{
return Result.OK();
}
//获取推广记录列表
@ApiOperation(value="小程序-获取推广记录列表", notes="小程序-获取推广记录列表")
@GetMapping("/getPromotionPage")
public Result<?> getPromotionPage(@RequestHeader("X-Access-Token") String token)
{
return Result.OK();
}
//获取推广记录详情
@ApiOperation(value="小程序-获取推广记录详情", notes="小程序-获取推广记录详情")
@GetMapping("/getPromotionDetail")
public Result<?> getPromotionDetail(@RequestHeader("X-Access-Token") String token)
{
return Result.OK();
}
//获取我的发布列表
@ApiOperation(value="小程序-获取我的发布列表", notes="小程序-获取我的发布列表")
@GetMapping("/getMyReleasePage")
public Result<?> getMyReleasePage(@RequestHeader("X-Access-Token") String token)
{
return Result.OK();
}
//获取我的发布详情
@ApiOperation(value="小程序-获取我的发布详情", notes="小程序-获取我的发布详情")
@GetMapping("/getMyReleaseDetail")
public Result<?> getMyReleaseDetail(@RequestHeader("X-Access-Token") String token)
{
return Result.OK();
}
}

+ 19
- 0
jeecg-boot-module-system/src/main/java/org/jeecg/modules/apiBean/InfoBean.java View File

@ -0,0 +1,19 @@
package org.jeecg.modules.apiBean;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
@Data
public class InfoBean {
//昵称
@ApiModelProperty(value = "昵称" )
private String nickname;
//头像
@ApiModelProperty(value = "头像" )
private String avatarUrl;
//电话
@ApiModelProperty(value = "电话" )
private String phone;
}

+ 21
- 0
jeecg-boot-module-system/src/main/java/org/jeecg/modules/apiBean/TrendsBean.java View File

@ -0,0 +1,21 @@
package org.jeecg.modules.apiBean;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
@Data
public class TrendsBean {
/**显示条数*/
@ApiModelProperty(value = "显示条数" )
private Integer pageSize;
/**当前页*/
@ApiModelProperty(value = "当前页" )
private Integer pageNo;
public TrendsBean() {
this.pageNo = 1;
this.pageSize = 1000;
}
}

+ 21
- 0
jeecg-boot-module-system/src/main/java/org/jeecg/modules/apiservice/IndexApiService.java View File

@ -0,0 +1,21 @@
package org.jeecg.modules.apiservice;
import org.jeecg.common.api.vo.Result;
import org.jeecg.modules.apiBean.TrendsBean;
public interface IndexApiService {
// 获取banner列表
Result<?> getBanner();
//获取认证演员
Result<?> getActorList();
// 获取动态列表带分页
Result<?> getTrendsPage(TrendsBean bean);
//获取动态详情
Result<?> getTrendsDetail(String id);
}

+ 0
- 4
jeecg-boot-module-system/src/main/java/org/jeecg/modules/apiservice/IndexService.java View File

@ -1,4 +0,0 @@
package org.jeecg.modules.apiservice;
public interface IndexService {
}

+ 53
- 0
jeecg-boot-module-system/src/main/java/org/jeecg/modules/apiservice/InfoApiService.java View File

@ -0,0 +1,53 @@
package org.jeecg.modules.apiservice;
import org.jeecg.common.api.vo.Result;
import org.jeecg.modules.apiBean.InfoBean;
public interface InfoApiService {
//获取个人信息接口
Result<?> getInfo(String token);
//修改个人信息接口
Result<?> updateInfo(String token, InfoBean bean);
//个人认证提交
Result<?> submitCertification(String token);
//企业认证提交
public Result<?> submitCompanyCertification(String token);
//获取个人认证信息
public Result<?> getCertification(String token);
//获取企业认证信息
public Result<?> getCompanyCertification(String token);
//获取我的发布列表
public Result<?> getMyReleasePage(String token);
//获取我的发布详情
public Result<?> getMyReleaseDetail(String token);
//获取推广记录列表
public Result<?> getPromotionPage(String token);
//获取推广记录详情
public Result<?> getPromotionDetail(String token);
//获取提现记录带分页
public Result<?> getWithdrawPage(String token);
//获取收益记录带分页
public Result<?> getIncomePage(String token);
//获取银行卡列表带分页
public Result<?> getBankCardPage(String token);
//添加银行卡
public Result<?> addBankCard(String token);
//用户提现
public Result<?> withdraw(String token);
}

+ 38
- 0
jeecg-boot-module-system/src/main/java/org/jeecg/modules/apiservice/impl/IndexApiServiceImpl.java View File

@ -0,0 +1,38 @@
package org.jeecg.modules.apiservice.impl;
import org.jeecg.common.api.vo.Result;
import org.jeecg.modules.apiBean.TrendsBean;
import org.jeecg.modules.apiservice.IndexApiService;
import org.springframework.stereotype.Service;
@Service
public class IndexApiServiceImpl implements IndexApiService {
// 获取banner列表
@Override
public Result<?> getBanner(){
return Result.OK();
}
//获取认证演员
@Override
public Result<?> getActorList(){
return Result.OK();
}
// 获取动态列表带分页
@Override
public Result<?> getTrendsPage(TrendsBean bean){
return Result.OK();
}
//获取动态详情
@Override
public Result<?> getTrendsDetail(String id){
return Result.OK();
}
}

+ 0
- 9
jeecg-boot-module-system/src/main/java/org/jeecg/modules/apiservice/impl/IndexServiceImpl.java View File

@ -1,9 +0,0 @@
package org.jeecg.modules.apiservice.impl;
import org.jeecg.modules.apiservice.IndexService;
public class IndexServiceImpl implements IndexService {
}

+ 8
- 0
jeecg-boot-module-system/src/main/java/org/jeecg/modules/apiservice/impl/InfoApiServiceImpl.java View File

@ -0,0 +1,8 @@
package org.jeecg.modules.apiservice.impl;
import org.jeecg.modules.apiservice.InfoApiService;
import org.springframework.stereotype.Service;
@Service
public class InfoApiServiceImpl implements InfoApiService {
}

Loading…
Cancel
Save