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

com.github.javaclub.base.service.UserRoleService Maven / Gradle / Ivy

/* Automatic generated by CrudCodeGenerator wirtten by Gerald Chen
 *
 * @(#)UserRoleService.java	 2023-09-06
 *
 * Copyright (c) 2023 - 2099. All Rights Reserved.
 *
 */

package com.github.javaclub.base.service;

import java.util.List;

import com.baomidou.mybatisplus.extension.service.IService;
import com.github.javaclub.base.domain.UserRole;
import com.github.javaclub.base.domain.query.UserRoleQuery;
import com.github.javaclub.sword.domain.QueryResult;
import com.github.javaclub.sword.domain.ResultDO;

/**
 * UserRoleService 业务层
 *
 * @version $Id: UserRoleService.java 2023-09-06 19:11:12 Exp $
 */
public interface UserRoleService extends IService {

 	/**
	 * 创建或更新业务实体(UserRole)
	 * 
	 * @param userRole 业务实体
	 * @return 操作结果
	 */
	ResultDO saveEntity(UserRole userRole);

	/**
	 * 创建业务实体(UserRole)
	 * 
	 * @param userRole 业务实体
	 * @return 创建结果
	 */
	Long create(UserRole userRole);
	
	/**
	 * 更新业务实体(UserRole)
	 * 
	 * @param userRole 业务实体
	 * @return 更新结果
	 */
	boolean update(UserRole userRole);
	
	UserRole selectById(Long id);
	
	UserRole selectOne(UserRoleQuery query);

	/**
	 * 根据一组查询条件统计总数
	 * 
	 * @param query 查询条件
	 * @return 满足查询条件的记录总数
	 */
	int count(UserRoleQuery query);
	
	/**
	 * 根据一组查询条件查询业务实体列表
	 * 
	 * @param query 查询条件
	 * @return 业务实体列表集合
	 */
	List findList(UserRoleQuery query);
	
	/**
	 * 根据一组查询条件查询业务实体列表,同时返回总记录数
	 * 
	 * @param query 查询条件
	 * @return 查询结果(含总记录数)
	 */
	QueryResult findListWithCount(UserRoleQuery query);
	
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy