FHLController.java 926 字节
package com.tianbo.analysis.controller;



import com.tianbo.analysis.model.Originmanifestsecondary;
import com.tianbo.analysis.model.ResultJson;
import com.tianbo.analysis.service.FHLResolve;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/fhl")
@Slf4j
public class FHLController {

    @Autowired
    FHLResolve resolve;

    @PostMapping("resolve")
    public ResultJson resolve(@RequestParam String ffm){
        Originmanifestsecondary fhlInfo = new Originmanifestsecondary();
        fhlInfo.text = ffm;
        ResultJson result = resolve.resolve(fhlInfo);
        return result;
    }
}