优化代码
This commit is contained in:
@@ -4,6 +4,7 @@ import com.starry.admin.common.oss.service.IOssFileService;
|
|||||||
import com.starry.admin.modules.clerk.module.entity.PlayAvatarFrameInfoEntity;
|
import com.starry.admin.modules.clerk.module.entity.PlayAvatarFrameInfoEntity;
|
||||||
import com.starry.admin.modules.clerk.module.vo.PlayAvatarFrameInfoAddVo;
|
import com.starry.admin.modules.clerk.module.vo.PlayAvatarFrameInfoAddVo;
|
||||||
import com.starry.admin.modules.clerk.module.vo.PlayAvatarFrameInfoQueryVo;
|
import com.starry.admin.modules.clerk.module.vo.PlayAvatarFrameInfoQueryVo;
|
||||||
|
import com.starry.admin.modules.clerk.module.vo.PlayAvatarFrameSendVo;
|
||||||
import com.starry.admin.modules.clerk.service.IPlayAvatarFrameInfoService;
|
import com.starry.admin.modules.clerk.service.IPlayAvatarFrameInfoService;
|
||||||
import com.starry.admin.utils.SecurityUtils;
|
import com.starry.admin.utils.SecurityUtils;
|
||||||
import com.starry.common.annotation.Log;
|
import com.starry.common.annotation.Log;
|
||||||
@@ -90,4 +91,15 @@ public class PlayAvatarFrameInfoController {
|
|||||||
public R remove(@PathVariable String[] ids) {
|
public R remove(@PathVariable String[] ids) {
|
||||||
return R.ok(playAvatarFrameInfoService.deletePlayAvatarFrameInfoByIds(ids));
|
return R.ok(playAvatarFrameInfoService.deletePlayAvatarFrameInfoByIds(ids));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增店员头像框
|
||||||
|
*/
|
||||||
|
@Log(title = "赠送店员头像框", businessType = BusinessType.INSERT)
|
||||||
|
@PostMapping("/sendAvatarFrame")
|
||||||
|
public R sendAvatarFrame(@Validated @RequestBody PlayAvatarFrameSendVo vo) {
|
||||||
|
System.out.println(vo);
|
||||||
|
return R.error("添加失败");
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -0,0 +1,20 @@
|
|||||||
|
package com.starry.admin.modules.clerk.module.vo;
|
||||||
|
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
import javax.validation.constraints.NotNull;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author admin
|
||||||
|
* @since 2024/6/6 下午11:13
|
||||||
|
**/
|
||||||
|
@Data
|
||||||
|
public class PlayAvatarFrameSendVo {
|
||||||
|
|
||||||
|
|
||||||
|
private String clerkId;
|
||||||
|
|
||||||
|
|
||||||
|
@NotNull(message = "头像框获取方式不能为空")
|
||||||
|
private String avatarFrameId;
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user