com.wl4g.iam.data.ContactChannelDao Maven / Gradle / Ivy
The newest version!
/*
* Copyright 2017 ~ 2025 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.wl4g.iam.data;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import static org.springframework.web.bind.annotation.RequestMethod.*;
import com.wl4g.component.integration.feign.core.annotation.FeignConsumer;
import com.wl4g.iam.common.bean.ContactChannel;
/**
* {@link ContactChannelDao}
*
* @author Wangl.sir <[email protected], [email protected]>
* @version v1.0 2020-0520
* @sine v1.0
* @see
*/
@FeignConsumer("${provider.serviceId.iam-data:iam-data}")
@RequestMapping("/contactChannel-dao")
public interface ContactChannelDao {
@RequestMapping(value = "/deleteByPrimaryKey", method = { POST })
int deleteByPrimaryKey(@RequestParam("id") Long id);
@RequestMapping(method = POST, value = "/deleteByContactId")
int deleteByContactId(@RequestParam("id") Long id);
@RequestMapping(method = POST, value = "/insert")
int insert(@RequestBody ContactChannel record);
@RequestMapping(method = POST, value = "/insertSelective")
int insertSelective(@RequestBody ContactChannel record);
@RequestMapping(method = GET, value = "/selectByPrimaryKey")
ContactChannel selectByPrimaryKey(@RequestParam("id") Long id);
@RequestMapping(method = POST, value = "/updateByPrimaryKeySelective")
int updateByPrimaryKeySelective(@RequestBody ContactChannel record);
@RequestMapping(method = POST, value = "/updateByPrimaryKey")
int updateByPrimaryKey(@RequestBody ContactChannel record);
}