package com.dk.mdm.controller.mst;

import com.dk.common.model.vo.mst.OrgVO;
import com.dk.common.response.ResponseResultVO;
import com.dk.mdm.model.pojo.mst.MenuFrequency;
import com.dk.common.controller.BaseController;
import com.dk.common.service.BaseService;
import com.dk.mdm.model.vo.mst.MenuFrequencyVO;
import io.swagger.annotations.ApiOperation;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RestController;
import io.swagger.annotations.Api;
import com.dk.mdm.service.mst.MenuFrequencyService;

@Api(tags = "用户功能频率API接口")
@RestController
@RequestMapping("/mst/menuFrequency")
public class MenuFrequencyController{

    public BaseService<MenuFrequency> getService() {
        return menuFrequencyService;
    }

    @Autowired
    private MenuFrequencyService menuFrequencyService;

    /**
     * @desc   : 保存用户功能频率
     * @author : 周兴
     * @date   : 2024/3/28 9:13
     */
    @ApiOperation( value = "保存用户功能频率", notes = "保存用户功能频率" )
    @PostMapping({"save"})
    public ResponseResultVO<?> save(@RequestBody MenuFrequencyVO menuFrequencyVO) {
        return menuFrequencyService.save(menuFrequencyVO);
    }
}
