package com.cool.store.controller;

import com.cool.store.exception.ApiException;
import com.cool.store.request.GetTipsInfoReq;
import com.cool.store.response.ResponseResult;
import com.cool.store.service.CommonService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author: young.yu
 * @Date: 2023-06-28  21:33
 * @Description:
 */

@RestController
@RequestMapping("/common")
@Api(tags = "通用信息")
public class CommonController {

    @Autowired
    private CommonService commonService;
    @PostMapping("/getTipsInfo")
    @ApiOperation("获取面试最新更新信息")
    public ResponseResult getTipsInfo(@RequestBody GetTipsInfoReq request) throws ApiException {
        String res = commonService.getTipsInfo(request);
        return ResponseResult.success(res);
    }
}
