提交 e39b0fe5 authored 作者: liruixin's avatar liruixin

承运司机端字典接口

上级 76da253c
package com.clx.performance.controller.app;
import com.clx.performance.service.DictionaryService;
import com.msl.common.result.Result;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.AllArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
@Slf4j
@RestController
@RequestMapping(value="/app/dictionary")
@Validated
@Api(tags = "承运司机端-字典")
@AllArgsConstructor
public class DictionaryController {
private final DictionaryService dictionaryService;
@ApiOperation(value = "字典",notes = "<br>By:李瑞新")
@GetMapping("/getOneByKey")
public Result<String> getOneByKey(String key) {
return Result.ok(dictionaryService.getOneByKey(key));
}
}
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论