刘光辉
6 小时以前 06f314545ac3514d7ce28939920866ae8188d31c
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 jnpf.tmsController;
 
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import jnpf.base.ActionResult;
import jnpf.tmsEntity.archive.TmsTrainArchiveDetailVO;
import jnpf.tmsService.TmsTrainArchiveService;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
 
/**
 * 个人培训档案(学员端)。网关 {@code /api/tms/train-archive/**} → {@code /train-archive/**}。
 *
 * <p>{@code /mine} 返回主档 + 履历 + 培训目录;目录数据来自已归档的 tms_person_train。</p>
 */
@Tag(name = "TMS个人培训档案", description = "TrainArchive")
@RestController
@RequestMapping("/train-archive")
@RequiredArgsConstructor
public class TmsTrainArchiveController {
 
    private final TmsTrainArchiveService trainArchiveService;
 
    @Operation(summary = "我的个人培训档案")
    @GetMapping("/mine")
    public ActionResult<TmsTrainArchiveDetailVO> mine() {
        return ActionResult.success(trainArchiveService.getMine());
    }
}