lisy
2023-07-07 942bd1345a126d6c088ad5c89f58856f9c172ce5
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
package com.dsh.account.controller;
 
 
import com.dsh.account.entity.Coach;
import com.dsh.account.service.CoachService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
 
@RestController
@RequestMapping("")
public class CoachController {
 
    @Autowired
    private CoachService service;
 
    /**
     * 根据门店
     * @param id
     * @return
     */
    @ResponseBody
    @PostMapping("/coach/queryCoachById")
    public Coach queryCoachById( Integer id){
        try {
            return service.getById(id);
        }catch (Exception e){
            e.printStackTrace();
            return null;
        }
    }
}