Search in sources :

Example 16 with LogAnnotation

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();
}
Also used : LoginAuthDto(com.paascloud.base.dto.LoginAuthDto) LogAnnotation(com.paascloud.core.annotation.LogAnnotation) ApiOperation(io.swagger.annotations.ApiOperation)

Example 17 with LogAnnotation

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();
}
Also used : MdcProductCategory(com.paascloud.provider.model.domain.MdcProductCategory) LoginAuthDto(com.paascloud.base.dto.LoginAuthDto) LogAnnotation(com.paascloud.core.annotation.LogAnnotation) ApiOperation(io.swagger.annotations.ApiOperation)

Example 18 with LogAnnotation

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();
}
Also used : LoginAuthDto(com.paascloud.base.dto.LoginAuthDto) LogAnnotation(com.paascloud.core.annotation.LogAnnotation) ApiOperation(io.swagger.annotations.ApiOperation)

Example 19 with LogAnnotation

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();
}
Also used : LoginAuthDto(com.paascloud.base.dto.LoginAuthDto) LogAnnotation(com.paascloud.core.annotation.LogAnnotation) ApiOperation(io.swagger.annotations.ApiOperation)

Example 20 with LogAnnotation

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();
}
Also used : UacMenu(com.paascloud.provider.model.domain.UacMenu) LoginAuthDto(com.paascloud.base.dto.LoginAuthDto) LogAnnotation(com.paascloud.core.annotation.LogAnnotation) ApiOperation(io.swagger.annotations.ApiOperation)

Aggregations

LogAnnotation (com.paascloud.core.annotation.LogAnnotation)24 LoginAuthDto (com.paascloud.base.dto.LoginAuthDto)22 ApiOperation (io.swagger.annotations.ApiOperation)22 ValidateAnnotation (com.paascloud.core.annotation.ValidateAnnotation)2 PostMapping (org.springframework.web.bind.annotation.PostMapping)2 OperationLogDto (com.paascloud.core.annotation.OperationLogDto)1 MdcProductCategory (com.paascloud.provider.model.domain.MdcProductCategory)1 TpcMqConsumer (com.paascloud.provider.model.domain.TpcMqConsumer)1 TpcMqProducer (com.paascloud.provider.model.domain.TpcMqProducer)1 TpcMqTag (com.paascloud.provider.model.domain.TpcMqTag)1 TpcMqTopic (com.paascloud.provider.model.domain.TpcMqTopic)1 UacAction (com.paascloud.provider.model.domain.UacAction)1 UacGroup (com.paascloud.provider.model.domain.UacGroup)1 UacMenu (com.paascloud.provider.model.domain.UacMenu)1 UacRole (com.paascloud.provider.model.domain.UacRole)1 UacRoleUser (com.paascloud.provider.model.domain.UacRoleUser)1 UacUser (com.paascloud.provider.model.domain.UacUser)1 UacBizException (com.paascloud.provider.model.exceptions.UacBizException)1 UserAgent (eu.bitwalker.useragentutils.UserAgent)1 Method (java.lang.reflect.Method)1