All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.base4j.mvc.sys.controller.SysDictItemController Maven / Gradle / Ivy

The newest version!
package com.base4j.mvc.sys.controller;

import com.base4j.mvc.base.controller.BaseController;
import com.base4j.mvc.sys.entity.SysDict;
import com.base4j.mvc.sys.entity.SysDictItem;
import com.base4j.mvc.sys.service.SysDictItemService;
import com.base4j.mvc.sys.service.SysDictService;
import com.base4j.mvc.util.ILoginUserTool;
import com.base4j.mvc.util.Res;
import com.base4j.mybatis.base.QueryParams;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("sys/dictItem")
public class SysDictItemController extends BaseController {
    @Autowired
    private SysDictItemService sysDictItemService;

    @RequestMapping("/insertItem")
    public Res insertItem(@RequestBody SysDictItem sysDictItem){
       /*List sysDictItems =*/ sysDictItemService.insert(sysDictItem);
        return Res.ok();
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy