diff --git a/jeecg-boot-module-system/src/main/java/org/jeecg/modules/api/noticeapicontroller/IndexApiController.java b/jeecg-boot-module-system/src/main/java/org/jeecg/modules/api/noticeapicontroller/IndexApiController.java index 5910851..e827e1b 100644 --- a/jeecg-boot-module-system/src/main/java/org/jeecg/modules/api/noticeapicontroller/IndexApiController.java +++ b/jeecg-boot-module-system/src/main/java/org/jeecg/modules/api/noticeapicontroller/IndexApiController.java @@ -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(); + } + + + } diff --git a/jeecg-boot-module-system/src/main/java/org/jeecg/modules/api/noticeapicontroller/InfoApiController.java b/jeecg-boot-module-system/src/main/java/org/jeecg/modules/api/noticeapicontroller/InfoApiController.java index a8f7453..3503b2e 100644 --- a/jeecg-boot-module-system/src/main/java/org/jeecg/modules/api/noticeapicontroller/InfoApiController.java +++ b/jeecg-boot-module-system/src/main/java/org/jeecg/modules/api/noticeapicontroller/InfoApiController.java @@ -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(); + } + } diff --git a/jeecg-boot-module-system/src/main/java/org/jeecg/modules/apiBean/InfoBean.java b/jeecg-boot-module-system/src/main/java/org/jeecg/modules/apiBean/InfoBean.java new file mode 100644 index 0000000..2d6c587 --- /dev/null +++ b/jeecg-boot-module-system/src/main/java/org/jeecg/modules/apiBean/InfoBean.java @@ -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; + +} diff --git a/jeecg-boot-module-system/src/main/java/org/jeecg/modules/apiBean/TrendsBean.java b/jeecg-boot-module-system/src/main/java/org/jeecg/modules/apiBean/TrendsBean.java new file mode 100644 index 0000000..d34a398 --- /dev/null +++ b/jeecg-boot-module-system/src/main/java/org/jeecg/modules/apiBean/TrendsBean.java @@ -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; + } + +} diff --git a/jeecg-boot-module-system/src/main/java/org/jeecg/modules/apiservice/IndexApiService.java b/jeecg-boot-module-system/src/main/java/org/jeecg/modules/apiservice/IndexApiService.java new file mode 100644 index 0000000..c8dc72f --- /dev/null +++ b/jeecg-boot-module-system/src/main/java/org/jeecg/modules/apiservice/IndexApiService.java @@ -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); + +} diff --git a/jeecg-boot-module-system/src/main/java/org/jeecg/modules/apiservice/IndexService.java b/jeecg-boot-module-system/src/main/java/org/jeecg/modules/apiservice/IndexService.java deleted file mode 100644 index fdbc6bc..0000000 --- a/jeecg-boot-module-system/src/main/java/org/jeecg/modules/apiservice/IndexService.java +++ /dev/null @@ -1,4 +0,0 @@ -package org.jeecg.modules.apiservice; - -public interface IndexService { -} diff --git a/jeecg-boot-module-system/src/main/java/org/jeecg/modules/apiservice/InfoApiService.java b/jeecg-boot-module-system/src/main/java/org/jeecg/modules/apiservice/InfoApiService.java new file mode 100644 index 0000000..d03e134 --- /dev/null +++ b/jeecg-boot-module-system/src/main/java/org/jeecg/modules/apiservice/InfoApiService.java @@ -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); + +} diff --git a/jeecg-boot-module-system/src/main/java/org/jeecg/modules/apiservice/impl/IndexApiServiceImpl.java b/jeecg-boot-module-system/src/main/java/org/jeecg/modules/apiservice/impl/IndexApiServiceImpl.java new file mode 100644 index 0000000..9a34bd5 --- /dev/null +++ b/jeecg-boot-module-system/src/main/java/org/jeecg/modules/apiservice/impl/IndexApiServiceImpl.java @@ -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(); + } + + + +} diff --git a/jeecg-boot-module-system/src/main/java/org/jeecg/modules/apiservice/impl/IndexServiceImpl.java b/jeecg-boot-module-system/src/main/java/org/jeecg/modules/apiservice/impl/IndexServiceImpl.java deleted file mode 100644 index b33fcd6..0000000 --- a/jeecg-boot-module-system/src/main/java/org/jeecg/modules/apiservice/impl/IndexServiceImpl.java +++ /dev/null @@ -1,9 +0,0 @@ -package org.jeecg.modules.apiservice.impl; - -import org.jeecg.modules.apiservice.IndexService; - -public class IndexServiceImpl implements IndexService { - - - -} diff --git a/jeecg-boot-module-system/src/main/java/org/jeecg/modules/apiservice/impl/InfoApiServiceImpl.java b/jeecg-boot-module-system/src/main/java/org/jeecg/modules/apiservice/impl/InfoApiServiceImpl.java new file mode 100644 index 0000000..53440c8 --- /dev/null +++ b/jeecg-boot-module-system/src/main/java/org/jeecg/modules/apiservice/impl/InfoApiServiceImpl.java @@ -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 { +}