FFMController.java 686 字节
package com.tianbo.analysis.controller;


import com.tianbo.analysis.model.FFMInfo;
import com.tianbo.analysis.model.ResultJson;
import com.tianbo.analysis.service.FFMResolve;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/ffm")
@Slf4j
public class FFMController {

    @Autowired
    FFMResolve ffmResolve;

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