package com.unis.base.client;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestBody;

import com.unis.base.common.vo.TyLqmxxxVO;
import com.unis.common.utils.ResponseWrapper;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;

/**
 * @author zhengbodang
 * @version 1.0
 * @Title TyLqmxxxController
 * @ProjectName 粮情信息 TyLqmxxxController
 * @Description
 * @date 2019/07/22 17点26分
 */
@FeignClient(name = "base-server")
@Component
@Api(value = "粮情明细信息 ", tags = "粮情明细信息 维护")
public interface GrainSituationDetailController {


	/**
	 * @author zhengbodang
	 * @Description 获取粮情列表
	 * @param
	 * @return 粮情列表
	 */
	@ApiOperation(value = "粮情列表", notes = "参数：")
	@PostMapping(value = "/grainSituationDetailList")
    public ResponseWrapper getTyLqmxxxList(@RequestBody TyLqmxxxVO tyLqmxxxVO);

	/**
	 * @author zhengbodang
	 * @Description 分页获取粮情信息列表
	 * @param
	 * @return
	 */
	@ApiOperation(value = "分页获取粮情信息列表", notes = "参数：")
	@PostMapping(value = "/grainSituationDetailPage/{pageNum}/{pageSize}")
    public ResponseWrapper getTyLqmxxxPage(@RequestBody TyLqmxxxVO tyLqmxxxVO ,@PathVariable("pageNum")Integer pageNum,@PathVariable("pageSize") Integer pageSize);

	/**
	 * @author zhengbodang
	 * @Description 新增粮情信息
	 * @param 廒间信息实体 models
	 * @return 新增状态
	 */
	@PostMapping(value = "/grainSituationDetail")
	@ApiOperation(value = "新增粮情信息", notes = "参数：")
    public ResponseWrapper insert(@RequestBody TyLqmxxxVO tyLqmxxxVO);

	/**
	 * @author zhengbodang
	 * @Description 更新粮情信息
	 * @param
	 * @return 新增状态
	 */
	@PutMapping(value = "/grainSituationDetail")
	@ApiOperation(value = "更新粮情信息", notes = "参数：")
    public ResponseWrapper update(@RequestBody TyLqmxxxVO tyLqmxxxVO);

	/**
	 * @author zhengbodang
	 * @Description 删除粮情信息
	 * @param
	 * @return 状态
	 */
	@DeleteMapping(value="/grainSituationDetail/{lqid}")
	@ApiOperation(value = "根据粮情信息编号删除粮情信息", notes = "参数：")
	public ResponseWrapper delete(@PathVariable("lqid") String lqid);

	/**
	 * @author zhengbodang
	 * @Description 删除粮情信息
	 * @param
	 * @return 状态
	 */
	@GetMapping(value="/grainSituationDetail/{lqid}")
	@ApiOperation(value = "获取粮情信息", notes = "参数：")
	public ResponseWrapper getTyLqmxxxByLqid(@PathVariable("lqid") String lqid);

}
