1.优化
Showing
15 changed files
with
12 additions
and
177 deletions
| ... | @@ -20,7 +20,7 @@ import io.swagger.annotations.*; | ... | @@ -20,7 +20,7 @@ import io.swagger.annotations.*; |
| 20 | */ | 20 | */ |
| 21 | @Api(tags = "会员地址管理") | 21 | @Api(tags = "会员地址管理") |
| 22 | @RestController | 22 | @RestController |
| 23 | @RequestMapping("/ucEngine/api/memberAddress") | 23 | @RequestMapping("/uce/memberAddress") |
| 24 | @CrossOrigin | 24 | @CrossOrigin |
| 25 | @Slf4j | 25 | @Slf4j |
| 26 | public class MemberAddressController { | 26 | public class MemberAddressController { | ... | ... |
| ... | @@ -20,7 +20,7 @@ import io.swagger.annotations.*; | ... | @@ -20,7 +20,7 @@ import io.swagger.annotations.*; |
| 20 | */ | 20 | */ |
| 21 | @Api(tags = "会员属性管理") | 21 | @Api(tags = "会员属性管理") |
| 22 | @RestController | 22 | @RestController |
| 23 | @RequestMapping("/ucEngine/api/memberProfile") | 23 | @RequestMapping("/uce/memberProfile") |
| 24 | @CrossOrigin | 24 | @CrossOrigin |
| 25 | @Slf4j | 25 | @Slf4j |
| 26 | public class MemberProfileController { | 26 | public class MemberProfileController { | ... | ... |
| ... | @@ -19,7 +19,7 @@ import io.swagger.annotations.*; | ... | @@ -19,7 +19,7 @@ import io.swagger.annotations.*; |
| 19 | */ | 19 | */ |
| 20 | @Api(tags = "相关人员管理") | 20 | @Api(tags = "相关人员管理") |
| 21 | @RestController | 21 | @RestController |
| 22 | @RequestMapping("/ucEngine/api/memberRelatedInfo") | 22 | @RequestMapping("/uce/memberRelatedInfo") |
| 23 | @CrossOrigin | 23 | @CrossOrigin |
| 24 | @Slf4j | 24 | @Slf4j |
| 25 | public class MemberRelatedInfoController { | 25 | public class MemberRelatedInfoController { | ... | ... |
| ... | @@ -26,7 +26,7 @@ import java.util.Objects; | ... | @@ -26,7 +26,7 @@ import java.util.Objects; |
| 26 | */ | 26 | */ |
| 27 | @Api(tags = "会员管理") | 27 | @Api(tags = "会员管理") |
| 28 | @RestController | 28 | @RestController |
| 29 | @RequestMapping("/ucEngine/api/member") | 29 | @RequestMapping("/uce/member") |
| 30 | @CrossOrigin | 30 | @CrossOrigin |
| 31 | @Slf4j | 31 | @Slf4j |
| 32 | public class MemberController { | 32 | public class MemberController { | ... | ... |
| ... | @@ -16,7 +16,7 @@ import org.springframework.web.bind.annotation.*; | ... | @@ -16,7 +16,7 @@ import org.springframework.web.bind.annotation.*; |
| 16 | */ | 16 | */ |
| 17 | @Api(tags = "会员vip历史管理") | 17 | @Api(tags = "会员vip历史管理") |
| 18 | @RestController | 18 | @RestController |
| 19 | @RequestMapping("/ucEngine/api/memberVipHistory") | 19 | @RequestMapping("/uce/memberVipHistory") |
| 20 | public class MemberVipHistoryController { | 20 | public class MemberVipHistoryController { |
| 21 | 21 | ||
| 22 | @Autowired | 22 | @Autowired | ... | ... |
| 1 | package com.topdraw.business.module.points.detail.rest; | ||
| 2 | |||
| 3 | import io.swagger.annotations.*; | ||
| 4 | |||
| 5 | /** | ||
| 6 | * @author XiangHan | ||
| 7 | * @date 2021-10-22 | ||
| 8 | */ | ||
| 9 | @Api(tags = "PointsDetail管理") | ||
| 10 | //@RestController | ||
| 11 | //@RequestMapping("/api/PointsDetail") | ||
| 12 | public class PointsDetailController { | ||
| 13 | |||
| 14 | /*@Autowired | ||
| 15 | private PointsDetailService PointsDetailService; | ||
| 16 | |||
| 17 | @GetMapping | ||
| 18 | @ApiOperation("查询PointsDetail") | ||
| 19 | public ResultInfo getPointsDetails(PointsDetailQueryCriteria criteria, Pageable pageable) { | ||
| 20 | return ResultInfo.successPage(PointsDetailService.queryAll(criteria,pageable)); | ||
| 21 | } | ||
| 22 | |||
| 23 | @GetMapping(value = "/all") | ||
| 24 | @ApiOperation("查询所有PointsDetail") | ||
| 25 | public ResultInfo getPointsDetails(PointsDetailQueryCriteria criteria) { | ||
| 26 | return ResultInfo.success(PointsDetailService.queryAll(criteria)); | ||
| 27 | } | ||
| 28 | |||
| 29 | @Log | ||
| 30 | @PostMapping | ||
| 31 | @ApiOperation("新增PointsDetail") | ||
| 32 | public ResultInfo create(@Validated @RequestBody PointsDetail resources) { | ||
| 33 | PointsDetailService.create(resources); | ||
| 34 | return ResultInfo.success(); | ||
| 35 | } | ||
| 36 | |||
| 37 | @Log | ||
| 38 | @PutMapping | ||
| 39 | @ApiOperation("修改PointsDetail") | ||
| 40 | public ResultInfo update(@Validated @RequestBody PointsDetail resources) { | ||
| 41 | PointsDetailService.update(resources); | ||
| 42 | return ResultInfo.success(); | ||
| 43 | } | ||
| 44 | |||
| 45 | @Log | ||
| 46 | @DeleteMapping(value = "/{id}") | ||
| 47 | @ApiOperation("删除PointsDetail") | ||
| 48 | public ResultInfo delete(@PathVariable Long id) { | ||
| 49 | PointsDetailService.delete(id); | ||
| 50 | return ResultInfo.success(); | ||
| 51 | } | ||
| 52 | |||
| 53 | @GetMapping(value = "/getByCode/{code}") | ||
| 54 | @ApiOperation(value = "根据标识查询") | ||
| 55 | public ResultInfo getByCode(@PathVariable String code) { | ||
| 56 | return ResultInfo.success(PointsDetailService.getByCode(code)); | ||
| 57 | }*/ | ||
| 58 | } |
| 1 | package com.topdraw.business.module.task.progress.rest; | ||
| 2 | |||
| 3 | import com.topdraw.common.ResultInfo; | ||
| 4 | import com.topdraw.business.module.task.progress.domain.TrTaskProgress; | ||
| 5 | import com.topdraw.business.module.task.progress.service.TrTaskProgressService; | ||
| 6 | import org.springframework.beans.factory.annotation.Autowired; | ||
| 7 | import org.springframework.validation.annotation.Validated; | ||
| 8 | import org.springframework.web.bind.annotation.*; | ||
| 9 | import io.swagger.annotations.*; | ||
| 10 | |||
| 11 | /** | ||
| 12 | * @author XiangHan | ||
| 13 | * @date 2021-11-02 | ||
| 14 | */ | ||
| 15 | @Api(tags = "TrTaskProgress管理") | ||
| 16 | @RestController | ||
| 17 | @RequestMapping("/api/TrTaskProgress") | ||
| 18 | public class TrTaskProgressController { | ||
| 19 | |||
| 20 | @Autowired | ||
| 21 | private TrTaskProgressService trTaskProgressService; | ||
| 22 | |||
| 23 | @PostMapping | ||
| 24 | @ApiOperation("新增TrTaskProgress") | ||
| 25 | public ResultInfo create(@Validated @RequestBody TrTaskProgress resources) { | ||
| 26 | this.trTaskProgressService.create(resources); | ||
| 27 | return ResultInfo.success(); | ||
| 28 | } | ||
| 29 | |||
| 30 | @PutMapping | ||
| 31 | @ApiOperation("修改TrTaskProgress") | ||
| 32 | public ResultInfo update(@Validated @RequestBody TrTaskProgress resources) { | ||
| 33 | this.trTaskProgressService.update(resources); | ||
| 34 | return ResultInfo.success(); | ||
| 35 | } | ||
| 36 | |||
| 37 | @DeleteMapping(value = "/{id}") | ||
| 38 | @ApiOperation("删除TrTaskProgress") | ||
| 39 | public ResultInfo delete(@PathVariable Long id) { | ||
| 40 | this.trTaskProgressService.delete(id); | ||
| 41 | return ResultInfo.success(); | ||
| 42 | } | ||
| 43 | |||
| 44 | } |
| 1 | package com.topdraw.business.module.task.template.rest; | ||
| 2 | |||
| 3 | import com.topdraw.common.ResultInfo; | ||
| 4 | import com.topdraw.business.module.task.template.domain.TaskTemplate; | ||
| 5 | import com.topdraw.business.module.task.template.service.TaskTemplateService; | ||
| 6 | import com.topdraw.business.module.task.template.service.dto.TaskTemplateQueryCriteria; | ||
| 7 | import org.springframework.beans.factory.annotation.Autowired; | ||
| 8 | import org.springframework.data.domain.Pageable; | ||
| 9 | import org.springframework.validation.annotation.Validated; | ||
| 10 | import org.springframework.web.bind.annotation.*; | ||
| 11 | import io.swagger.annotations.*; | ||
| 12 | |||
| 13 | /** | ||
| 14 | * @author XiangHan | ||
| 15 | * @date 2021-10-22 | ||
| 16 | */ | ||
| 17 | @Api(tags = "TaskTemplate管理") | ||
| 18 | @RestController | ||
| 19 | @RequestMapping("/api/TaskTemplate") | ||
| 20 | public class TaskTemplateController { | ||
| 21 | |||
| 22 | @Autowired | ||
| 23 | private TaskTemplateService TaskTemplateService; | ||
| 24 | |||
| 25 | @GetMapping | ||
| 26 | @ApiOperation("查询TaskTemplate") | ||
| 27 | public ResultInfo getTaskTemplates(TaskTemplateQueryCriteria criteria, Pageable pageable) { | ||
| 28 | return ResultInfo.successPage(TaskTemplateService.queryAll(criteria,pageable)); | ||
| 29 | } | ||
| 30 | |||
| 31 | @GetMapping(value = "/all") | ||
| 32 | @ApiOperation("查询所有TaskTemplate") | ||
| 33 | public ResultInfo getTaskTemplates(TaskTemplateQueryCriteria criteria) { | ||
| 34 | return ResultInfo.success(TaskTemplateService.queryAll(criteria)); | ||
| 35 | } | ||
| 36 | |||
| 37 | @PostMapping | ||
| 38 | @ApiOperation("新增TaskTemplate") | ||
| 39 | public ResultInfo create(@Validated @RequestBody TaskTemplate resources) { | ||
| 40 | TaskTemplateService.create(resources); | ||
| 41 | return ResultInfo.success(); | ||
| 42 | } | ||
| 43 | |||
| 44 | @PutMapping | ||
| 45 | @ApiOperation("修改TaskTemplate") | ||
| 46 | public ResultInfo update(@Validated @RequestBody TaskTemplate resources) { | ||
| 47 | TaskTemplateService.update(resources); | ||
| 48 | return ResultInfo.success(); | ||
| 49 | } | ||
| 50 | |||
| 51 | @DeleteMapping(value = "/{id}") | ||
| 52 | @ApiOperation("删除TaskTemplate") | ||
| 53 | public ResultInfo delete(@PathVariable Long id) { | ||
| 54 | TaskTemplateService.delete(id); | ||
| 55 | return ResultInfo.success(); | ||
| 56 | } | ||
| 57 | |||
| 58 | @GetMapping(value = "/getByCode/{code}") | ||
| 59 | @ApiOperation(value = "根据标识查询") | ||
| 60 | public ResultInfo getByCode(@PathVariable String code) { | ||
| 61 | return ResultInfo.success(TaskTemplateService.getByCode(code)); | ||
| 62 | } | ||
| 63 | } |
| ... | @@ -17,7 +17,7 @@ import java.util.List; | ... | @@ -17,7 +17,7 @@ import java.util.List; |
| 17 | */ | 17 | */ |
| 18 | @Api(tags = "优惠券管理") | 18 | @Api(tags = "优惠券管理") |
| 19 | @RestController | 19 | @RestController |
| 20 | @RequestMapping("/ucEngine/couponOperation") | 20 | @RequestMapping("/uce/couponOperation") |
| 21 | public class CouponOperationController { | 21 | public class CouponOperationController { |
| 22 | 22 | ||
| 23 | @Autowired | 23 | @Autowired | ... | ... |
| ... | @@ -22,7 +22,7 @@ import java.util.List; | ... | @@ -22,7 +22,7 @@ import java.util.List; |
| 22 | */ | 22 | */ |
| 23 | @Api(tags = "成长值管理") | 23 | @Api(tags = "成长值管理") |
| 24 | @RestController | 24 | @RestController |
| 25 | @RequestMapping("/ucEngine/expOperation") | 25 | @RequestMapping("/uce/expOperation") |
| 26 | public class ExpOperationController { | 26 | public class ExpOperationController { |
| 27 | 27 | ||
| 28 | @Autowired | 28 | @Autowired | ... | ... |
| ... | @@ -22,7 +22,7 @@ import java.util.Objects; | ... | @@ -22,7 +22,7 @@ import java.util.Objects; |
| 22 | 22 | ||
| 23 | @Api("会员处理") | 23 | @Api("会员处理") |
| 24 | @RestController | 24 | @RestController |
| 25 | @RequestMapping(value = "/ucEngine/api/memberOperation") | 25 | @RequestMapping(value = "/uce/memberOperation") |
| 26 | @CrossOrigin | 26 | @CrossOrigin |
| 27 | @Slf4j | 27 | @Slf4j |
| 28 | public class MemberOperationController { | 28 | public class MemberOperationController { | ... | ... |
| ... | @@ -32,7 +32,7 @@ import java.util.Objects; | ... | @@ -32,7 +32,7 @@ import java.util.Objects; |
| 32 | */ | 32 | */ |
| 33 | @Api(tags = "PointsOperation管理") | 33 | @Api(tags = "PointsOperation管理") |
| 34 | @RestController | 34 | @RestController |
| 35 | @RequestMapping("/ucEngine/api/pointsOperation") | 35 | @RequestMapping("/uce/pointsOperation") |
| 36 | public class PointsOperationController { | 36 | public class PointsOperationController { |
| 37 | 37 | ||
| 38 | @Autowired | 38 | @Autowired | ... | ... |
| ... | @@ -19,7 +19,7 @@ import java.util.List; | ... | @@ -19,7 +19,7 @@ import java.util.List; |
| 19 | */ | 19 | */ |
| 20 | @Api(tags = "Rights管理") | 20 | @Api(tags = "Rights管理") |
| 21 | @RestController | 21 | @RestController |
| 22 | @RequestMapping("/ucEngine/rightsOperation") | 22 | @RequestMapping("/uce/rightsOperation") |
| 23 | public class RightsOperationController { | 23 | public class RightsOperationController { |
| 24 | 24 | ||
| 25 | @Autowired | 25 | @Autowired | ... | ... |
| ... | @@ -15,7 +15,7 @@ import java.util.Arrays; | ... | @@ -15,7 +15,7 @@ import java.util.Arrays; |
| 15 | 15 | ||
| 16 | @Api("任务处理") | 16 | @Api("任务处理") |
| 17 | @RestController | 17 | @RestController |
| 18 | @RequestMapping(value = "/ucEngine/api/taskOperation") | 18 | @RequestMapping(value = "/uce/taskOperation") |
| 19 | public class TaskOperationController { | 19 | public class TaskOperationController { |
| 20 | 20 | ||
| 21 | @Autowired | 21 | @Autowired | ... | ... |
| ... | @@ -42,7 +42,7 @@ import java.util.*; | ... | @@ -42,7 +42,7 @@ import java.util.*; |
| 42 | 42 | ||
| 43 | @Api("账户处理") | 43 | @Api("账户处理") |
| 44 | @RestController | 44 | @RestController |
| 45 | @RequestMapping(value = "/ucEngine/api/userOperation") | 45 | @RequestMapping(value = "/uce/userOperation") |
| 46 | @Slf4j | 46 | @Slf4j |
| 47 | public class UserOperationController { | 47 | public class UserOperationController { |
| 48 | 48 | ... | ... |
-
Please register or sign in to post a comment