package com.xhpc.general.controller;

import com.xhpc.common.core.web.domain.AjaxResult;
import com.xhpc.general.service.IXhpcServiceDataUpdateService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * program: ruoyi
 * User: HongYun
 * Date:2021-08-12 13
 */
@RestController
@RequestMapping("/wwdata")
public class XhpcServiceDataUpdateController {

    @Autowired
    IXhpcServiceDataUpdateService xhpcServiceDataUpdateService;

    @GetMapping("/list")
    public AjaxResult list(){

        return AjaxResult.success(xhpcServiceDataUpdateService.list());
    }

    @PostMapping("/update")
    public AjaxResult update(@RequestParam(required = false) String SOC, @RequestParam(required = false) String version, @RequestParam(required = false) String phone){

        return xhpcServiceDataUpdateService.update(SOC, version, phone);
    }
}
