use of com.paascloud.core.annotation.LogAnnotation in project paascloud-master by paascloud.
the class MdcProductCategoryMainController method updateMdcCategoryStatusById.
/**
* 根据id修改商品分类的禁用状态
*
* @return the wrapper
*/
@PostMapping(value = "/modifyStatus")
@ApiOperation(httpMethod = "POST", value = "根据id修改商品分类的禁用状态")
@LogAnnotation
public Wrapper updateMdcCategoryStatusById(@ApiParam(name = "mdcCategoryStatusDto", value = "修改商品分类状态Dto") @RequestBody UpdateStatusDto updateStatusDto) {
logger.info("根据id修改商品分类的禁用状态 updateStatusDto={}", updateStatusDto);
LoginAuthDto loginAuthDto = getLoginAuthDto();
mdcProductCategoryService.updateMdcCategoryStatusById(updateStatusDto, loginAuthDto);
return WrapMapper.ok();
}
use of com.paascloud.core.annotation.LogAnnotation in project paascloud-master by paascloud.
the class MdcProductCategoryMainController method saveCategory.
@PostMapping(value = "/save")
@ApiOperation(httpMethod = "POST", value = "编辑商品分类")
@LogAnnotation
public Wrapper saveCategory(@ApiParam(name = "saveCategory", value = "编辑商品分类") @RequestBody MdcEditCategoryDto mdcCategoryAddDto) {
MdcProductCategory mdcCategory = new MdcProductCategory();
LoginAuthDto loginAuthDto = getLoginAuthDto();
BeanUtils.copyProperties(mdcCategoryAddDto, mdcCategory);
mdcProductCategoryService.saveMdcCategory(mdcCategory, loginAuthDto);
return WrapMapper.ok();
}
use of com.paascloud.core.annotation.LogAnnotation in project paascloud-master by paascloud.
the class UacUserCommonController method modifyUserEmail.
/**
* 修改用户邮箱
*
* @param email the email
* @param emailCode the email code
*
* @return the wrapper
*/
@LogAnnotation
@PostMapping(value = "/modifyUserEmail/{email}/{emailCode}")
@ApiOperation(httpMethod = "POST", value = "修改用户信息")
public Wrapper<Integer> modifyUserEmail(@PathVariable String email, @PathVariable String emailCode) {
logger.info(" 修改用户信息 email={}, emailCode={}", email, emailCode);
LoginAuthDto loginAuthDto = getLoginAuthDto();
uacUserService.modifyUserEmail(email, emailCode, loginAuthDto);
return WrapMapper.ok();
}
use of com.paascloud.core.annotation.LogAnnotation in project paascloud-master by paascloud.
the class UacUserMainController method addUacUser.
/**
* 新增用户
*
* @param user the user
*
* @return the wrapper
*/
@LogAnnotation
@PostMapping(value = "/save")
@ApiOperation(httpMethod = "POST", value = "新增用户")
public Wrapper<Integer> addUacUser(@ApiParam(name = "user", value = "新增用户Dto") @RequestBody UacUser user) {
logger.info(" 新增用户 user={}", user);
LoginAuthDto loginAuthDto = getLoginAuthDto();
uacUserService.saveUacUser(user, loginAuthDto);
return WrapMapper.ok();
}
use of com.paascloud.core.annotation.LogAnnotation in project paascloud-master by paascloud.
the class UacMenuMainController method saveMenu.
/**
* 新增菜单.
*
* @param uacMenuAddDto the uac menu add dto
*
* @return the wrapper
*/
@PostMapping(value = "/save")
@ApiOperation(httpMethod = "POST", value = "新增菜单")
@LogAnnotation
public Wrapper saveMenu(@ApiParam(name = "saveMenu", value = "保存菜单") @RequestBody UacEditMenuDto uacMenuAddDto) {
UacMenu uacMenu = new UacMenu();
LoginAuthDto loginAuthDto = getLoginAuthDto();
BeanUtils.copyProperties(uacMenuAddDto, uacMenu);
uacMenuService.saveUacMenu(uacMenu, loginAuthDto);
return WrapMapper.ok();
}
Aggregations