| | |
| | | |
| | | import com.ruoyi.common.core.domain.AjaxResult; |
| | | import com.ruoyi.common.utils.MessageUtils; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | |
| | | * |
| | | * @author Lion Li |
| | | */ |
| | | @Api(value = "测试国际化控制器", tags = {"测试国际化管理"}) |
| | | @RestController |
| | | @RequestMapping("/demo/i18n") |
| | | public class TestI18nController { |
| | |
| | | * |
| | | * 测试使用 user.register.success |
| | | */ |
| | | @ApiOperation("通过code获取国际化内容") |
| | | @GetMapping() |
| | | public AjaxResult<Void> get(String code) { |
| | | return AjaxResult.success(MessageUtils.message(code)); |