xuhy
2026-04-28 502c2c7a7ff6d6cec19eb34086e2430ecbbdcdc7
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
package com.xiaopeng.account.controller;
 
 
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.xiaopeng.account.service.IXpUserRoutePlanRuleService;
import com.xiaopeng.api.model.account.XpUserRoutePlanRule;
import com.xiaopeng.common.core.domain.R;
import org.springframework.web.bind.annotation.*;
 
import javax.annotation.Resource;
 
 
/**
 * 用户规划线路偏好
 */
@RestController
@RequestMapping("")
public class XpUserRoutePlanRuleController {
 
    @Resource
    private IXpUserRoutePlanRuleService xpUserRoutePlanRuleService;
 
 
    /**
     * 根据用户id获取导航偏好设置
     * @param uid
     * @return
     */
    @GetMapping("/logan/inner/userRoutePlanRule/getXpUserRoutePlanRule/{uid}")
    public R<XpUserRoutePlanRule> getXpUserRoutePlanRule(@PathVariable("uid") String uid){
        XpUserRoutePlanRule one = xpUserRoutePlanRuleService.getOne(new LambdaQueryWrapper<XpUserRoutePlanRule>().eq(XpUserRoutePlanRule::getUserId, uid)
                .eq(XpUserRoutePlanRule::getDeleted, 0));
        return R.ok(one);
    }
 
}