Merge #4 into master from cc_20251027_new2
fix:小程序菜单 * cc_20251027_new2: (3 commits squashed) - feat:小程序菜单配置 - Merge branch 'refs/heads/master' into cc_20251027_new2 - fix:小程序菜单 Signed-off-by: 王非凡 <accounts_67eba0c5fee9c49c80c8e2b4@mail.teambition.com> Reviewed-by: 苏竹红 <accounts_68551bf01395375227aee211@mail.teambition.com> Merged-by: 苏竹红 <accounts_68551bf01395375227aee211@mail.teambition.com> CR-link: https://codeup.aliyun.com/692ea314dec569489f6f167c/hangzhou/java/custom_zxjp/change/4
This commit is contained in:
@@ -0,0 +1,35 @@
|
||||
package com.cool.store.controller.webc;
|
||||
|
||||
import com.cool.store.response.ResponseResult;
|
||||
import com.cool.store.service.menu.MiniMenuService;
|
||||
import com.cool.store.vo.menu.MiniMenuConfigVO;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 小程序菜单配置 前端控制器
|
||||
* </p>
|
||||
*
|
||||
* @author wangff
|
||||
* @since 2025/10/31
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping({"/mini/menu"})
|
||||
@Api(tags = "Mini菜单配置")
|
||||
@RequiredArgsConstructor
|
||||
public class MiniMenuController {
|
||||
private final MiniMenuService miniMenuService;
|
||||
|
||||
@ApiOperation("当前用户菜单配置")
|
||||
@GetMapping("/userConfig")
|
||||
public ResponseResult<List<MiniMenuConfigVO>> getCurrentUserConfig() {
|
||||
return ResponseResult.success(miniMenuService.getUserMiniMenu());
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user