分销店铺确认信息
This commit is contained in:
@@ -1,7 +1,9 @@
|
||||
package com.czg.controller.user;
|
||||
|
||||
import cn.hutool.core.bean.BeanUtil;
|
||||
import com.czg.account.dto.shopuser.ShopUserAddDTO;
|
||||
import com.czg.account.dto.shopuser.ShopUserDetailDTO;
|
||||
import com.czg.account.dto.shopuser.ShopUserEditDTO;
|
||||
import com.czg.account.dto.shopuser.ShopUserVipCardDTO;
|
||||
import com.czg.account.entity.ShopInfo;
|
||||
import com.czg.account.entity.ShopUser;
|
||||
@@ -75,6 +77,19 @@ public class UShopUserController {
|
||||
return CzgResult.success(shopUserService.join(StpKit.USER.getShopId(), StpKit.USER.getLoginIdAsLong(), shopUserAddDTO));
|
||||
}
|
||||
|
||||
/**
|
||||
* 确认信息
|
||||
* @return 是否成功
|
||||
*/
|
||||
@PostMapping("/confirm")
|
||||
public CzgResult<Boolean> confirm(@RequestBody @Validated ShopUserEditDTO shopUserEditDTO) {
|
||||
ShopUser shopUser = new ShopUser();
|
||||
BeanUtil.copyProperties(shopUserEditDTO, shopUser);
|
||||
shopUserService.getService().updateInfo(shopUser);
|
||||
return CzgResult.success();
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* 获取余额余额明细
|
||||
|
||||
Reference in New Issue
Block a user