package com.whyc.service;
|
|
import com.whyc.dto.Response;
|
import com.whyc.mapper.BadbattMonFlagMapper;
|
import com.whyc.pojo.BadbattMonFlag;
|
import org.springframework.stereotype.Service;
|
|
import javax.annotation.Resource;
|
|
@Service
|
public class BadBattMonFlagService {
|
@Resource
|
private BadbattMonFlagMapper mapper;
|
|
public Response add(BadbattMonFlag entity){
|
mapper.insert(entity);
|
return new Response().set(1,true,"添加成功");
|
}
|
|
}
|