接口文档整理
This commit is contained in:
@ -21,7 +21,7 @@ import io.swagger.annotations.*;
|
||||
* @author xuwenbo
|
||||
* @date 2019-12-22
|
||||
*/
|
||||
@Api(tags = "YxStoreBargain管理")
|
||||
@Api(tags = "砍价管理")
|
||||
@RestController
|
||||
@RequestMapping("api")
|
||||
public class YxStoreBargainController {
|
||||
@ -29,8 +29,8 @@ public class YxStoreBargainController {
|
||||
@Autowired
|
||||
private YxStoreBargainService yxStoreBargainService;
|
||||
|
||||
@Log("查询YxStoreBargain")
|
||||
@ApiOperation(value = "查询YxStoreBargain")
|
||||
@Log("查询砍价")
|
||||
@ApiOperation(value = "查询砍价")
|
||||
@GetMapping(value = "/yxStoreBargain")
|
||||
@PreAuthorize("hasAnyRole('ADMIN','YXSTOREBARGAIN_ALL','YXSTOREBARGAIN_SELECT')")
|
||||
public ResponseEntity getYxStoreBargains(YxStoreBargainQueryCriteria criteria, Pageable pageable){
|
||||
@ -39,8 +39,8 @@ public class YxStoreBargainController {
|
||||
|
||||
|
||||
|
||||
@Log("修改YxStoreBargain")
|
||||
@ApiOperation(value = "修改YxStoreBargain")
|
||||
@Log("修改砍价")
|
||||
@ApiOperation(value = "修改砍价")
|
||||
@PutMapping(value = "/yxStoreBargain")
|
||||
@PreAuthorize("hasAnyRole('ADMIN','YXSTOREBARGAIN_ALL','YXSTOREBARGAIN_EDIT')")
|
||||
public ResponseEntity update(@Validated @RequestBody YxStoreBargain resources){
|
||||
@ -62,8 +62,8 @@ public class YxStoreBargainController {
|
||||
}
|
||||
}
|
||||
|
||||
@Log("删除YxStoreBargain")
|
||||
@ApiOperation(value = "删除YxStoreBargain")
|
||||
@Log("删除砍价")
|
||||
@ApiOperation(value = "删除砍价")
|
||||
@DeleteMapping(value = "/yxStoreBargain/{id}")
|
||||
@PreAuthorize("hasAnyRole('ADMIN','YXSTOREBARGAIN_ALL','YXSTOREBARGAIN_DELETE')")
|
||||
public ResponseEntity delete(@PathVariable Integer id){
|
||||
|
@ -17,7 +17,7 @@ import io.swagger.annotations.*;
|
||||
* @author hupeng
|
||||
* @date 2019-11-09
|
||||
*/
|
||||
@Api(tags = "YxStoreCouponIssueUser管理")
|
||||
@Api(tags = "优惠券前台用户领取记录管理")
|
||||
@RestController
|
||||
@RequestMapping("api")
|
||||
public class YxStoreCouponIssueUserController {
|
||||
@ -25,24 +25,24 @@ public class YxStoreCouponIssueUserController {
|
||||
@Autowired
|
||||
private YxStoreCouponIssueUserService yxStoreCouponIssueUserService;
|
||||
|
||||
@Log("查询YxStoreCouponIssueUser")
|
||||
@ApiOperation(value = "查询YxStoreCouponIssueUser")
|
||||
@Log("查询")
|
||||
@ApiOperation(value = "查询")
|
||||
@GetMapping(value = "/yxStoreCouponIssueUser")
|
||||
@PreAuthorize("hasAnyRole('ADMIN','YXSTORECOUPONISSUEUSER_ALL','YXSTORECOUPONISSUEUSER_SELECT')")
|
||||
public ResponseEntity getYxStoreCouponIssueUsers(YxStoreCouponIssueUserQueryCriteria criteria, Pageable pageable){
|
||||
return new ResponseEntity(yxStoreCouponIssueUserService.queryAll(criteria,pageable),HttpStatus.OK);
|
||||
}
|
||||
|
||||
@Log("新增YxStoreCouponIssueUser")
|
||||
@ApiOperation(value = "新增YxStoreCouponIssueUser")
|
||||
@Log("新增")
|
||||
@ApiOperation(value = "新增")
|
||||
@PostMapping(value = "/yxStoreCouponIssueUser")
|
||||
@PreAuthorize("hasAnyRole('ADMIN','YXSTORECOUPONISSUEUSER_ALL','YXSTORECOUPONISSUEUSER_CREATE')")
|
||||
public ResponseEntity create(@Validated @RequestBody YxStoreCouponIssueUser resources){
|
||||
return new ResponseEntity(yxStoreCouponIssueUserService.create(resources),HttpStatus.CREATED);
|
||||
}
|
||||
|
||||
@Log("修改YxStoreCouponIssueUser")
|
||||
@ApiOperation(value = "修改YxStoreCouponIssueUser")
|
||||
@Log("修改")
|
||||
@ApiOperation(value = "修改")
|
||||
@PutMapping(value = "/yxStoreCouponIssueUser")
|
||||
@PreAuthorize("hasAnyRole('ADMIN','YXSTORECOUPONISSUEUSER_ALL','YXSTORECOUPONISSUEUSER_EDIT')")
|
||||
public ResponseEntity update(@Validated @RequestBody YxStoreCouponIssueUser resources){
|
||||
@ -50,8 +50,8 @@ public class YxStoreCouponIssueUserController {
|
||||
return new ResponseEntity(HttpStatus.NO_CONTENT);
|
||||
}
|
||||
|
||||
@Log("删除YxStoreCouponIssueUser")
|
||||
@ApiOperation(value = "删除YxStoreCouponIssueUser")
|
||||
@Log("删除")
|
||||
@ApiOperation(value = "删除")
|
||||
@DeleteMapping(value = "/yxStoreCouponIssueUser/{id}")
|
||||
@PreAuthorize("hasAnyRole('ADMIN','YXSTORECOUPONISSUEUSER_ALL','YXSTORECOUPONISSUEUSER_DELETE')")
|
||||
public ResponseEntity delete(@PathVariable Integer id){
|
||||
|
@ -1,61 +1,61 @@
|
||||
package co.yixiang.modules.activity.rest;
|
||||
|
||||
import co.yixiang.aop.log.Log;
|
||||
import co.yixiang.modules.activity.domain.YxStoreVisit;
|
||||
import co.yixiang.modules.activity.service.YxStoreVisitService;
|
||||
import co.yixiang.modules.activity.service.dto.YxStoreVisitQueryCriteria;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.data.domain.Pageable;
|
||||
import org.springframework.http.HttpStatus;
|
||||
import org.springframework.http.ResponseEntity;
|
||||
import org.springframework.security.access.prepost.PreAuthorize;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
import io.swagger.annotations.*;
|
||||
|
||||
/**
|
||||
* @author hupeng
|
||||
* @date 2019-11-18
|
||||
*/
|
||||
@Api(tags = "YxStoreVisit管理")
|
||||
@RestController
|
||||
@RequestMapping("api")
|
||||
public class YxStoreVisitController {
|
||||
|
||||
@Autowired
|
||||
private YxStoreVisitService yxStoreVisitService;
|
||||
|
||||
@Log("查询YxStoreVisit")
|
||||
@ApiOperation(value = "查询YxStoreVisit")
|
||||
@GetMapping(value = "/yxStoreVisit")
|
||||
@PreAuthorize("hasAnyRole('ADMIN','YXSTOREVISIT_ALL','YXSTOREVISIT_SELECT')")
|
||||
public ResponseEntity getYxStoreVisits(YxStoreVisitQueryCriteria criteria, Pageable pageable){
|
||||
return new ResponseEntity(yxStoreVisitService.queryAll(criteria,pageable),HttpStatus.OK);
|
||||
}
|
||||
|
||||
@Log("新增YxStoreVisit")
|
||||
@ApiOperation(value = "新增YxStoreVisit")
|
||||
@PostMapping(value = "/yxStoreVisit")
|
||||
@PreAuthorize("hasAnyRole('ADMIN','YXSTOREVISIT_ALL','YXSTOREVISIT_CREATE')")
|
||||
public ResponseEntity create(@Validated @RequestBody YxStoreVisit resources){
|
||||
return new ResponseEntity(yxStoreVisitService.create(resources),HttpStatus.CREATED);
|
||||
}
|
||||
|
||||
@Log("修改YxStoreVisit")
|
||||
@ApiOperation(value = "修改YxStoreVisit")
|
||||
@PutMapping(value = "/yxStoreVisit")
|
||||
@PreAuthorize("hasAnyRole('ADMIN','YXSTOREVISIT_ALL','YXSTOREVISIT_EDIT')")
|
||||
public ResponseEntity update(@Validated @RequestBody YxStoreVisit resources){
|
||||
yxStoreVisitService.update(resources);
|
||||
return new ResponseEntity(HttpStatus.NO_CONTENT);
|
||||
}
|
||||
|
||||
@Log("删除YxStoreVisit")
|
||||
@ApiOperation(value = "删除YxStoreVisit")
|
||||
@DeleteMapping(value = "/yxStoreVisit/{id}")
|
||||
@PreAuthorize("hasAnyRole('ADMIN','YXSTOREVISIT_ALL','YXSTOREVISIT_DELETE')")
|
||||
public ResponseEntity delete(@PathVariable Integer id){
|
||||
yxStoreVisitService.delete(id);
|
||||
return new ResponseEntity(HttpStatus.OK);
|
||||
}
|
||||
}
|
||||
//package co.yixiang.modules.activity.rest;
|
||||
//
|
||||
//import co.yixiang.aop.log.Log;
|
||||
//import co.yixiang.modules.activity.domain.YxStoreVisit;
|
||||
//import co.yixiang.modules.activity.service.YxStoreVisitService;
|
||||
//import co.yixiang.modules.activity.service.dto.YxStoreVisitQueryCriteria;
|
||||
//import org.springframework.beans.factory.annotation.Autowired;
|
||||
//import org.springframework.data.domain.Pageable;
|
||||
//import org.springframework.http.HttpStatus;
|
||||
//import org.springframework.http.ResponseEntity;
|
||||
//import org.springframework.security.access.prepost.PreAuthorize;
|
||||
//import org.springframework.validation.annotation.Validated;
|
||||
//import org.springframework.web.bind.annotation.*;
|
||||
//import io.swagger.annotations.*;
|
||||
//
|
||||
///**
|
||||
//* @author hupeng
|
||||
//* @date 2019-11-18
|
||||
//*/
|
||||
//@Api(tags = "fang管理")
|
||||
//@RestController
|
||||
//@RequestMapping("api")
|
||||
//public class YxStoreVisitController {
|
||||
//
|
||||
// @Autowired
|
||||
// private YxStoreVisitService yxStoreVisitService;
|
||||
//
|
||||
// @Log("查询YxStoreVisit")
|
||||
// @ApiOperation(value = "查询YxStoreVisit")
|
||||
// @GetMapping(value = "/yxStoreVisit")
|
||||
// @PreAuthorize("hasAnyRole('ADMIN','YXSTOREVISIT_ALL','YXSTOREVISIT_SELECT')")
|
||||
// public ResponseEntity getYxStoreVisits(YxStoreVisitQueryCriteria criteria, Pageable pageable){
|
||||
// return new ResponseEntity(yxStoreVisitService.queryAll(criteria,pageable),HttpStatus.OK);
|
||||
// }
|
||||
//
|
||||
// @Log("新增YxStoreVisit")
|
||||
// @ApiOperation(value = "新增YxStoreVisit")
|
||||
// @PostMapping(value = "/yxStoreVisit")
|
||||
// @PreAuthorize("hasAnyRole('ADMIN','YXSTOREVISIT_ALL','YXSTOREVISIT_CREATE')")
|
||||
// public ResponseEntity create(@Validated @RequestBody YxStoreVisit resources){
|
||||
// return new ResponseEntity(yxStoreVisitService.create(resources),HttpStatus.CREATED);
|
||||
// }
|
||||
//
|
||||
// @Log("修改YxStoreVisit")
|
||||
// @ApiOperation(value = "修改YxStoreVisit")
|
||||
// @PutMapping(value = "/yxStoreVisit")
|
||||
// @PreAuthorize("hasAnyRole('ADMIN','YXSTOREVISIT_ALL','YXSTOREVISIT_EDIT')")
|
||||
// public ResponseEntity update(@Validated @RequestBody YxStoreVisit resources){
|
||||
// yxStoreVisitService.update(resources);
|
||||
// return new ResponseEntity(HttpStatus.NO_CONTENT);
|
||||
// }
|
||||
//
|
||||
// @Log("删除YxStoreVisit")
|
||||
// @ApiOperation(value = "删除YxStoreVisit")
|
||||
// @DeleteMapping(value = "/yxStoreVisit/{id}")
|
||||
// @PreAuthorize("hasAnyRole('ADMIN','YXSTOREVISIT_ALL','YXSTOREVISIT_DELETE')")
|
||||
// public ResponseEntity delete(@PathVariable Integer id){
|
||||
// yxStoreVisitService.delete(id);
|
||||
// return new ResponseEntity(HttpStatus.OK);
|
||||
// }
|
||||
//}
|
@ -26,7 +26,7 @@ import io.swagger.annotations.*;
|
||||
* @author hupeng
|
||||
* @date 2019-11-14
|
||||
*/
|
||||
@Api(tags = "YxUserExtract管理")
|
||||
@Api(tags = "提现管理")
|
||||
@RestController
|
||||
@RequestMapping("api")
|
||||
public class YxUserExtractController {
|
||||
@ -40,8 +40,8 @@ public class YxUserExtractController {
|
||||
@Autowired
|
||||
private YxUserBillService yxUserBillService;
|
||||
|
||||
@Log("查询YxUserExtract")
|
||||
@ApiOperation(value = "查询YxUserExtract")
|
||||
@Log("查询")
|
||||
@ApiOperation(value = "查询")
|
||||
@GetMapping(value = "/yxUserExtract")
|
||||
@PreAuthorize("hasAnyRole('ADMIN','YXUSEREXTRACT_ALL','YXUSEREXTRACT_SELECT')")
|
||||
public ResponseEntity getYxUserExtracts(YxUserExtractQueryCriteria criteria, Pageable pageable){
|
||||
@ -51,7 +51,7 @@ public class YxUserExtractController {
|
||||
|
||||
|
||||
@Log("修改")
|
||||
@ApiOperation(value = "修改")
|
||||
@ApiOperation(value = "修改审核")
|
||||
@PutMapping(value = "/yxUserExtract")
|
||||
@PreAuthorize("hasAnyRole('ADMIN','YXUSEREXTRACT_ALL','YXUSEREXTRACT_EDIT')")
|
||||
public ResponseEntity update(@Validated @RequestBody YxUserExtract resources){
|
||||
|
@ -19,7 +19,7 @@ import io.swagger.annotations.*;
|
||||
* @author hupeng
|
||||
* @date 2019-12-12
|
||||
*/
|
||||
@Api(tags = "YxExpress管理")
|
||||
@Api(tags = "快递管理")
|
||||
@RestController
|
||||
@RequestMapping("api")
|
||||
public class YxExpressController {
|
||||
@ -27,16 +27,16 @@ public class YxExpressController {
|
||||
@Autowired
|
||||
private YxExpressService yxExpressService;
|
||||
|
||||
@Log("查询YxExpress")
|
||||
@ApiOperation(value = "查询YxExpress")
|
||||
@Log("查询快递")
|
||||
@ApiOperation(value = "查询快递")
|
||||
@GetMapping(value = "/yxExpress")
|
||||
@PreAuthorize("hasAnyRole('ADMIN','YXEXPRESS_ALL','YXEXPRESS_SELECT')")
|
||||
public ResponseEntity getYxExpresss(YxExpressQueryCriteria criteria, Pageable pageable){
|
||||
return new ResponseEntity(yxExpressService.queryAll(criteria,pageable),HttpStatus.OK);
|
||||
}
|
||||
|
||||
@Log("新增YxExpress")
|
||||
@ApiOperation(value = "新增YxExpress")
|
||||
@Log("新增快递")
|
||||
@ApiOperation(value = "新增快递")
|
||||
@PostMapping(value = "/yxExpress")
|
||||
@PreAuthorize("hasAnyRole('ADMIN','YXEXPRESS_ALL','YXEXPRESS_CREATE')")
|
||||
public ResponseEntity create(@Validated @RequestBody YxExpress resources){
|
||||
@ -44,8 +44,8 @@ public class YxExpressController {
|
||||
return new ResponseEntity(yxExpressService.create(resources),HttpStatus.CREATED);
|
||||
}
|
||||
|
||||
@Log("修改YxExpress")
|
||||
@ApiOperation(value = "修改YxExpress")
|
||||
@Log("修改快递")
|
||||
@ApiOperation(value = "修改快递")
|
||||
@PutMapping(value = "/yxExpress")
|
||||
@PreAuthorize("hasAnyRole('ADMIN','YXEXPRESS_ALL','YXEXPRESS_EDIT')")
|
||||
public ResponseEntity update(@Validated @RequestBody YxExpress resources){
|
||||
@ -54,8 +54,8 @@ public class YxExpressController {
|
||||
return new ResponseEntity(HttpStatus.NO_CONTENT);
|
||||
}
|
||||
|
||||
@Log("删除YxExpress")
|
||||
@ApiOperation(value = "删除YxExpress")
|
||||
@Log("删除快递")
|
||||
@ApiOperation(value = "删除快递")
|
||||
@DeleteMapping(value = "/yxExpress/{id}")
|
||||
@PreAuthorize("hasAnyRole('ADMIN','YXEXPRESS_ALL','YXEXPRESS_DELETE')")
|
||||
public ResponseEntity delete(@PathVariable Integer id){
|
||||
|
@ -20,7 +20,7 @@ import io.swagger.annotations.*;
|
||||
* @author hupeng
|
||||
* @date 2019-12-04
|
||||
*/
|
||||
@Api(tags = "YxSystemUserLevel管理")
|
||||
@Api(tags = "用户等级管理")
|
||||
@RestController
|
||||
@RequestMapping("api")
|
||||
public class YxSystemUserLevelController {
|
||||
@ -46,8 +46,8 @@ public class YxSystemUserLevelController {
|
||||
return new ResponseEntity(yxSystemUserLevelService.create(resources),HttpStatus.CREATED);
|
||||
}
|
||||
|
||||
@Log("修改YxSystemUserLevel")
|
||||
@ApiOperation(value = "修改YxSystemUserLevel")
|
||||
@Log("修改")
|
||||
@ApiOperation(value = "修改")
|
||||
@PutMapping(value = "/yxSystemUserLevel")
|
||||
@PreAuthorize("hasAnyRole('ADMIN','YXSYSTEMUSERLEVEL_ALL','YXSYSTEMUSERLEVEL_EDIT')")
|
||||
public ResponseEntity update(@Validated @RequestBody YxSystemUserLevel resources){
|
||||
@ -56,8 +56,8 @@ public class YxSystemUserLevelController {
|
||||
return new ResponseEntity(HttpStatus.NO_CONTENT);
|
||||
}
|
||||
|
||||
@Log("删除YxSystemUserLevel")
|
||||
@ApiOperation(value = "删除YxSystemUserLevel")
|
||||
@Log("删除")
|
||||
@ApiOperation(value = "删除")
|
||||
@DeleteMapping(value = "/yxSystemUserLevel/{id}")
|
||||
@PreAuthorize("hasAnyRole('ADMIN','YXSYSTEMUSERLEVEL_ALL','YXSYSTEMUSERLEVEL_DELETE')")
|
||||
public ResponseEntity delete(@PathVariable Integer id){
|
||||
|
@ -21,7 +21,7 @@ import io.swagger.annotations.*;
|
||||
* @author hupeng
|
||||
* @date 2019-12-04
|
||||
*/
|
||||
@Api(tags = "YxSystemUserTask管理")
|
||||
@Api(tags = "用户任务管理")
|
||||
@RestController
|
||||
@RequestMapping("api")
|
||||
public class YxSystemUserTaskController {
|
||||
@ -29,8 +29,8 @@ public class YxSystemUserTaskController {
|
||||
@Autowired
|
||||
private YxSystemUserTaskService yxSystemUserTaskService;
|
||||
|
||||
@Log("查询YxSystemUserTask")
|
||||
@ApiOperation(value = "查询YxSystemUserTask")
|
||||
@Log("查询")
|
||||
@ApiOperation(value = "查询")
|
||||
@GetMapping(value = "/yxSystemUserTask")
|
||||
@PreAuthorize("hasAnyRole('ADMIN','YXSYSTEMUSERTASK_ALL','YXSYSTEMUSERTASK_SELECT')")
|
||||
public ResponseEntity getYxSystemUserTasks(YxSystemUserTaskQueryCriteria criteria,
|
||||
@ -43,16 +43,16 @@ public class YxSystemUserTaskController {
|
||||
HttpStatus.OK);
|
||||
}
|
||||
|
||||
@Log("新增YxSystemUserTask")
|
||||
@ApiOperation(value = "新增YxSystemUserTask")
|
||||
@Log("新增")
|
||||
@ApiOperation(value = "新增")
|
||||
@PostMapping(value = "/yxSystemUserTask")
|
||||
@PreAuthorize("hasAnyRole('ADMIN','YXSYSTEMUSERTASK_ALL','YXSYSTEMUSERTASK_CREATE')")
|
||||
public ResponseEntity create(@Validated @RequestBody YxSystemUserTask resources){
|
||||
return new ResponseEntity(yxSystemUserTaskService.create(resources),HttpStatus.CREATED);
|
||||
}
|
||||
|
||||
@Log("修改YxSystemUserTask")
|
||||
@ApiOperation(value = "修改YxSystemUserTask")
|
||||
@Log("修改")
|
||||
@ApiOperation(value = "修改")
|
||||
@PutMapping(value = "/yxSystemUserTask")
|
||||
@PreAuthorize("hasAnyRole('ADMIN','YXSYSTEMUSERTASK_ALL','YXSYSTEMUSERTASK_EDIT')")
|
||||
public ResponseEntity update(@Validated @RequestBody YxSystemUserTask resources){
|
||||
@ -61,8 +61,8 @@ public class YxSystemUserTaskController {
|
||||
return new ResponseEntity(HttpStatus.NO_CONTENT);
|
||||
}
|
||||
|
||||
@Log("删除YxSystemUserTask")
|
||||
@ApiOperation(value = "删除YxSystemUserTask")
|
||||
@Log("删除")
|
||||
@ApiOperation(value = "删除")
|
||||
@DeleteMapping(value = "/yxSystemUserTask/{id}")
|
||||
@PreAuthorize("hasAnyRole('ADMIN','YXSYSTEMUSERTASK_ALL','YXSYSTEMUSERTASK_DELETE')")
|
||||
public ResponseEntity delete(@PathVariable Integer id){
|
||||
|
@ -17,7 +17,7 @@ import io.swagger.annotations.*;
|
||||
* @author hupeng
|
||||
* @date 2019-11-06
|
||||
*/
|
||||
@Api(tags = "YxUserBill管理")
|
||||
@Api(tags = "用户账单管理")
|
||||
@RestController
|
||||
@RequestMapping("api")
|
||||
public class YxUserBillController {
|
||||
@ -25,8 +25,8 @@ public class YxUserBillController {
|
||||
@Autowired
|
||||
private YxUserBillService yxUserBillService;
|
||||
|
||||
@Log("查询YxUserBill")
|
||||
@ApiOperation(value = "查询YxUserBill")
|
||||
@Log("查询")
|
||||
@ApiOperation(value = "查询")
|
||||
@GetMapping(value = "/yxUserBill")
|
||||
@PreAuthorize("hasAnyRole('ADMIN','YXUSERBILL_ALL','YXUSERBILL_SELECT')")
|
||||
public ResponseEntity getYxUserBills(YxUserBillQueryCriteria criteria, Pageable pageable){
|
||||
|
@ -23,7 +23,7 @@ import io.swagger.annotations.*;
|
||||
* @author hupeng
|
||||
* @date 2019-10-10
|
||||
*/
|
||||
@Api(tags = "YxSystemConfig管理")
|
||||
@Api(tags = "配置管理")
|
||||
@RestController
|
||||
@RequestMapping("api")
|
||||
public class YxSystemConfigController {
|
||||
@ -31,7 +31,7 @@ public class YxSystemConfigController {
|
||||
@Autowired
|
||||
private YxSystemConfigService yxSystemConfigService;
|
||||
|
||||
@Log("查询YxSystemConfig")
|
||||
@Log("查询")
|
||||
@ApiOperation(value = "查询YxSystemConfig")
|
||||
@GetMapping(value = "/yxSystemConfig")
|
||||
@PreAuthorize("hasAnyRole('ADMIN','YXSYSTEMCONFIG_ALL','YXSYSTEMCONFIG_SELECT')")
|
||||
@ -39,7 +39,7 @@ public class YxSystemConfigController {
|
||||
return new ResponseEntity(yxSystemConfigService.queryAll(criteria,pageable),HttpStatus.OK);
|
||||
}
|
||||
|
||||
@Log("新增YxSystemConfig")
|
||||
@Log("新增或修改")
|
||||
@ApiOperation(value = "新增YxSystemConfig")
|
||||
@PostMapping(value = "/yxSystemConfig")
|
||||
@PreAuthorize("hasAnyRole('ADMIN','YXSYSTEMCONFIG_ALL','YXSYSTEMCONFIG_CREATE')")
|
||||
|
@ -1,61 +1,61 @@
|
||||
package co.yixiang.modules.wechat.rest;
|
||||
|
||||
import co.yixiang.aop.log.Log;
|
||||
import co.yixiang.modules.wechat.domain.YxWechatUser;
|
||||
import co.yixiang.modules.wechat.service.YxWechatUserService;
|
||||
import co.yixiang.modules.wechat.service.dto.YxWechatUserQueryCriteria;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.data.domain.Pageable;
|
||||
import org.springframework.http.HttpStatus;
|
||||
import org.springframework.http.ResponseEntity;
|
||||
import org.springframework.security.access.prepost.PreAuthorize;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
import io.swagger.annotations.*;
|
||||
|
||||
/**
|
||||
* @author hupeng
|
||||
* @date 2019-12-13
|
||||
*/
|
||||
@Api(tags = "YxWechatUser管理")
|
||||
@RestController
|
||||
@RequestMapping("api")
|
||||
public class YxWechatUserController {
|
||||
|
||||
@Autowired
|
||||
private YxWechatUserService yxWechatUserService;
|
||||
|
||||
@Log("查询YxWechatUser")
|
||||
@ApiOperation(value = "查询YxWechatUser")
|
||||
@GetMapping(value = "/yxWechatUser")
|
||||
@PreAuthorize("hasAnyRole('ADMIN','YXWECHATUSER_ALL','YXWECHATUSER_SELECT')")
|
||||
public ResponseEntity getYxWechatUsers(YxWechatUserQueryCriteria criteria, Pageable pageable){
|
||||
return new ResponseEntity(yxWechatUserService.queryAll(criteria,pageable),HttpStatus.OK);
|
||||
}
|
||||
|
||||
@Log("新增YxWechatUser")
|
||||
@ApiOperation(value = "新增YxWechatUser")
|
||||
@PostMapping(value = "/yxWechatUser")
|
||||
@PreAuthorize("hasAnyRole('ADMIN','YXWECHATUSER_ALL','YXWECHATUSER_CREATE')")
|
||||
public ResponseEntity create(@Validated @RequestBody YxWechatUser resources){
|
||||
return new ResponseEntity(yxWechatUserService.create(resources),HttpStatus.CREATED);
|
||||
}
|
||||
|
||||
@Log("修改YxWechatUser")
|
||||
@ApiOperation(value = "修改YxWechatUser")
|
||||
@PutMapping(value = "/yxWechatUser")
|
||||
@PreAuthorize("hasAnyRole('ADMIN','YXWECHATUSER_ALL','YXWECHATUSER_EDIT')")
|
||||
public ResponseEntity update(@Validated @RequestBody YxWechatUser resources){
|
||||
yxWechatUserService.update(resources);
|
||||
return new ResponseEntity(HttpStatus.NO_CONTENT);
|
||||
}
|
||||
|
||||
@Log("删除YxWechatUser")
|
||||
@ApiOperation(value = "删除YxWechatUser")
|
||||
@DeleteMapping(value = "/yxWechatUser/{uid}")
|
||||
@PreAuthorize("hasAnyRole('ADMIN','YXWECHATUSER_ALL','YXWECHATUSER_DELETE')")
|
||||
public ResponseEntity delete(@PathVariable Integer uid){
|
||||
yxWechatUserService.delete(uid);
|
||||
return new ResponseEntity(HttpStatus.OK);
|
||||
}
|
||||
}
|
||||
//package co.yixiang.modules.wechat.rest;
|
||||
//
|
||||
//import co.yixiang.aop.log.Log;
|
||||
//import co.yixiang.modules.wechat.domain.YxWechatUser;
|
||||
//import co.yixiang.modules.wechat.service.YxWechatUserService;
|
||||
//import co.yixiang.modules.wechat.service.dto.YxWechatUserQueryCriteria;
|
||||
//import org.springframework.beans.factory.annotation.Autowired;
|
||||
//import org.springframework.data.domain.Pageable;
|
||||
//import org.springframework.http.HttpStatus;
|
||||
//import org.springframework.http.ResponseEntity;
|
||||
//import org.springframework.security.access.prepost.PreAuthorize;
|
||||
//import org.springframework.validation.annotation.Validated;
|
||||
//import org.springframework.web.bind.annotation.*;
|
||||
//import io.swagger.annotations.*;
|
||||
//
|
||||
///**
|
||||
//* @author hupeng
|
||||
//* @date 2019-12-13
|
||||
//*/
|
||||
//@Api(tags = "YxWechatUser管理")
|
||||
//@RestController
|
||||
//@RequestMapping("api")
|
||||
//public class YxWechatUserController {
|
||||
//
|
||||
// @Autowired
|
||||
// private YxWechatUserService yxWechatUserService;
|
||||
//
|
||||
// @Log("查询YxWechatUser")
|
||||
// @ApiOperation(value = "查询YxWechatUser")
|
||||
// @GetMapping(value = "/yxWechatUser")
|
||||
// @PreAuthorize("hasAnyRole('ADMIN','YXWECHATUSER_ALL','YXWECHATUSER_SELECT')")
|
||||
// public ResponseEntity getYxWechatUsers(YxWechatUserQueryCriteria criteria, Pageable pageable){
|
||||
// return new ResponseEntity(yxWechatUserService.queryAll(criteria,pageable),HttpStatus.OK);
|
||||
// }
|
||||
//
|
||||
// @Log("新增YxWechatUser")
|
||||
// @ApiOperation(value = "新增YxWechatUser")
|
||||
// @PostMapping(value = "/yxWechatUser")
|
||||
// @PreAuthorize("hasAnyRole('ADMIN','YXWECHATUSER_ALL','YXWECHATUSER_CREATE')")
|
||||
// public ResponseEntity create(@Validated @RequestBody YxWechatUser resources){
|
||||
// return new ResponseEntity(yxWechatUserService.create(resources),HttpStatus.CREATED);
|
||||
// }
|
||||
//
|
||||
// @Log("修改YxWechatUser")
|
||||
// @ApiOperation(value = "修改YxWechatUser")
|
||||
// @PutMapping(value = "/yxWechatUser")
|
||||
// @PreAuthorize("hasAnyRole('ADMIN','YXWECHATUSER_ALL','YXWECHATUSER_EDIT')")
|
||||
// public ResponseEntity update(@Validated @RequestBody YxWechatUser resources){
|
||||
// yxWechatUserService.update(resources);
|
||||
// return new ResponseEntity(HttpStatus.NO_CONTENT);
|
||||
// }
|
||||
//
|
||||
// @Log("删除YxWechatUser")
|
||||
// @ApiOperation(value = "删除YxWechatUser")
|
||||
// @DeleteMapping(value = "/yxWechatUser/{uid}")
|
||||
// @PreAuthorize("hasAnyRole('ADMIN','YXWECHATUSER_ALL','YXWECHATUSER_DELETE')")
|
||||
// public ResponseEntity delete(@PathVariable Integer uid){
|
||||
// yxWechatUserService.delete(uid);
|
||||
// return new ResponseEntity(HttpStatus.OK);
|
||||
// }
|
||||
//}
|
Reference in New Issue
Block a user