Compare commits

..

No commits in common. "master" and "dev" have entirely different histories.
master ... dev

41 changed files with 44 additions and 157 deletions

View File

@ -1,20 +0,0 @@
package com.muyu.system.controller;
import com.muyu.common.core.web.controller.BaseController;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import lombok.extern.slf4j.Slf4j;
/**
* @Author:
* @Name: Atom
* @Description:
* @CreatedDate: 2024/8/27 9:57
* @FilePath: com.muyu.system.controller
*/
@Slf4j
@RestController
@RequestMapping("/Atom")
public class AtomController extends BaseController {
}

View File

@ -1,31 +0,0 @@
package com.muyu.system.domain;
import lombok.*;
/**
* @Author:
* @Name: Atom
* @Description:
* @CreatedDate: 2024/8/27 9:55
* @FilePath: com.muyu.quest.domain
*/
@Data
@Builder
@ToString
@NoArgsConstructor
@AllArgsConstructor
public class Atom {
/** 字段编码 */
private String key;
/** 字段值 */
private String value;
/** 字段名称 */
private String name;
/** 字段类型 */
private String type;
}

View File

@ -1,21 +0,0 @@
package com.muyu.system.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.muyu.system.domain.Atom;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;
/**
* @Author:
* @Name: Atom
* @Description:
* @CreatedDate: 2024/8/27 9:59
* @FilePath: com.muyu.system.mapper
*/
@Repository
@Mapper
public interface AtomMapper extends BaseMapper<Atom> {
}

View File

@ -11,7 +11,7 @@ import java.util.List;
*
* @author muyu
*/
public interface SysDeptMapper {
public interface SysDeptMapper extends BaseMapper<SysDept> {
/**
*
*

View File

@ -11,7 +11,7 @@ import java.util.List;
*
* @author muyu
*/
public interface SysDictDataMapper {
public interface SysDictDataMapper extends BaseMapper<SysDictData> {
/**
*
*

View File

@ -10,7 +10,7 @@ import java.util.List;
*
* @author muyu
*/
public interface SysDictTypeMapper {
public interface SysDictTypeMapper extends BaseMapper<SysDictType> {
/**
*
*

View File

@ -10,7 +10,7 @@ import java.util.List;
*
* @author muyu
*/
public interface SysLogininforMapper {
public interface SysLogininforMapper extends BaseMapper<SysLogininfor> {
/**
*
*

View File

@ -11,7 +11,7 @@ import java.util.List;
*
* @author muyu
*/
public interface SysMenuMapper {
public interface SysMenuMapper extends BaseMapper<SysMenu> {
/**
*
*

View File

@ -14,7 +14,7 @@ import java.util.List;
*
* @author muyu
*/
public interface SysNoticeMapper {
public interface SysNoticeMapper extends BaseMapper<SysNotice> {
/**
*
*

View File

@ -10,7 +10,7 @@ import java.util.List;
*
* @author muyu
*/
public interface SysOperLogMapper {
public interface SysOperLogMapper extends BaseMapper<SysOperLog> {
/**
*
*

View File

@ -10,7 +10,7 @@ import java.util.List;
*
* @author muyu
*/
public interface SysPostMapper {
public interface SysPostMapper extends BaseMapper<SysPost> {
/**
*
*

View File

@ -11,7 +11,7 @@ import java.util.List;
*
* @author muyu
*/
public interface SysRoleDeptMapper {
public interface SysRoleDeptMapper extends BaseMapper<SysRoleDept> {
/**
* ID
*

View File

@ -10,7 +10,7 @@ import java.util.List;
*
* @author muyu
*/
public interface SysRoleMapper {
public interface SysRoleMapper extends BaseMapper<SysRole> {
/**
*
*

View File

@ -11,7 +11,7 @@ import java.util.List;
*
* @author muyu
*/
public interface SysRoleMenuMapper{
public interface SysRoleMenuMapper extends BaseMapper<SysRoleMenu> {
/**
* 使
*

View File

@ -11,7 +11,7 @@ import java.util.List;
*
* @author muyu
*/
public interface SysUserMapper {
public interface SysUserMapper extends BaseMapper<SysUser> {
/**
*
*

View File

@ -10,7 +10,7 @@ import java.util.List;
*
* @author muyu
*/
public interface SysUserPostMapper{
public interface SysUserPostMapper extends BaseMapper<SysUserPost> {
/**
* ID
*

View File

@ -11,7 +11,7 @@ import java.util.List;
*
* @author muyu
*/
public interface SysUserRoleMapper {
public interface SysUserRoleMapper extends BaseMapper<SysUserRole> {
/**
* ID
*

View File

@ -1,16 +0,0 @@
package com.muyu.system.service;
import com.baomidou.mybatisplus.extension.service.IService;
import com.muyu.system.domain.Atom;
import com.muyu.system.domain.SysConfig;
/**
* @Author:
* @Name: Atom
* @Description:
* @CreatedDate: 2024/8/27 10:00
* @FilePath: com.muyu.system.service
*/
public interface AtomService extends IService<Atom> {
}

View File

@ -12,7 +12,7 @@ import java.util.List;
*
* @author muyu
*/
public interface SysDeptService{
public interface SysDeptService extends IService<SysDept> {
/**
*
*

View File

@ -10,7 +10,7 @@ import java.util.List;
*
* @author muyu
*/
public interface SysDictDataService {
public interface SysDictDataService extends IService<SysDictData> {
/**
*
*

View File

@ -11,7 +11,7 @@ import java.util.List;
*
* @author muyu
*/
public interface SysDictTypeService{
public interface SysDictTypeService extends IService<SysDictType> {
/**
*
*

View File

@ -10,7 +10,7 @@ import java.util.List;
*
* @author muyu
*/
public interface SysLogininforService{
public interface SysLogininforService extends IService<SysLogininfor> {
/**
*
*

View File

@ -13,7 +13,7 @@ import java.util.Set;
*
* @author muyu
*/
public interface SysMenuService{
public interface SysMenuService extends IService<SysMenu> {
/**
*
*

View File

@ -14,7 +14,7 @@ import java.util.List;
*
* @author muyu
*/
public interface SysNoticeService{
public interface SysNoticeService extends IService<SysNotice> {
/**
*
*

View File

@ -10,7 +10,7 @@ import java.util.List;
*
* @author muyu
*/
public interface SysOperLogService{
public interface SysOperLogService extends IService<SysOperLog> {
/**
*
*

View File

@ -10,7 +10,7 @@ import java.util.List;
*
* @author muyu
*/
public interface SysPostService {
public interface SysPostService extends IService<SysPost> {
/**
*
*

View File

@ -12,7 +12,7 @@ import java.util.Set;
*
* @author muyu
*/
public interface SysRoleService {
public interface SysRoleService extends IService<SysRole> {
/**
*
*

View File

@ -10,7 +10,7 @@ import java.util.List;
*
* @author muyu
*/
public interface SysUserService{
public interface SysUserService extends IService<SysUser> {
/**
*
*

View File

@ -1,23 +0,0 @@
package com.muyu.system.service.impl;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.muyu.system.domain.Atom;
import com.muyu.system.mapper.AtomMapper;
import com.muyu.system.service.AtomService;
import org.springframework.stereotype.Service;
import lombok.extern.slf4j.Slf4j;
/**
* @Author:
* @Name: Atom
* @Description:
* @CreatedDate: 2024/8/27 10:00
* @FilePath: com.muyu.system.service.impl
*/
@Slf4j
@Service
public class AtomServiceImpl extends ServiceImpl<AtomMapper, Atom>
implements AtomService {
}

View File

@ -30,7 +30,7 @@ import java.util.stream.Collectors;
* @author muyu
*/
@Service
public class SysDeptServiceImpl implements SysDeptService {
public class SysDeptServiceImpl extends ServiceImpl<SysDeptMapper, SysDept> implements SysDeptService {
@Autowired
private SysDeptMapper deptMapper;

View File

@ -8,7 +8,6 @@ import com.muyu.system.service.SysDictDataService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.List;
/**
@ -17,8 +16,8 @@ import java.util.List;
* @author muyu
*/
@Service
public class SysDictDataServiceImpl implements SysDictDataService {
@Resource
public class SysDictDataServiceImpl extends ServiceImpl<SysDictDataMapper, SysDictData> implements SysDictDataService {
@Autowired
private SysDictDataMapper dictDataMapper;
/**

View File

@ -26,7 +26,7 @@ import java.util.stream.Collectors;
* @author muyu
*/
@Service
public class SysDictTypeServiceImpl implements SysDictTypeService {
public class SysDictTypeServiceImpl extends ServiceImpl<SysDictTypeMapper, SysDictType> implements SysDictTypeService {
@Autowired
private SysDictTypeMapper dictTypeMapper;

View File

@ -15,7 +15,7 @@ import java.util.List;
* @author muyu
*/
@Service
public class SysLogininforServiceImpl implements SysLogininforService {
public class SysLogininforServiceImpl extends ServiceImpl<SysLogininforMapper, SysLogininfor> implements SysLogininforService {
@Autowired
private SysLogininforMapper logininforMapper;

View File

@ -27,7 +27,7 @@ import java.util.stream.Collectors;
* @author muyu
*/
@Service
public class SysMenuServiceImpl implements SysMenuService {
public class SysMenuServiceImpl extends ServiceImpl<SysMenuMapper, SysMenu> implements SysMenuService {
public static final String PREMISSION_STRING = "perms[\"{0}\"]";
@Autowired

View File

@ -20,7 +20,7 @@ import java.util.List;
* @author muyu
*/
@Service
public class SysNoticeServiceImpl implements SysNoticeService {
public class SysNoticeServiceImpl extends ServiceImpl<SysNoticeMapper, SysNotice> implements SysNoticeService {
@Autowired
private SysNoticeMapper noticeMapper;

View File

@ -15,7 +15,7 @@ import java.util.List;
* @author muyu
*/
@Service
public class SysOperLogServiceImpl implements SysOperLogService {
public class SysOperLogServiceImpl extends ServiceImpl<SysOperLogMapper, SysOperLog> implements SysOperLogService {
@Autowired
private SysOperLogMapper operLogMapper;

View File

@ -19,7 +19,7 @@ import java.util.List;
* @author muyu
*/
@Service
public class SysPostServiceImpl implements SysPostService {
public class SysPostServiceImpl extends ServiceImpl<SysPostMapper, SysPost> implements SysPostService {
@Autowired
private SysPostMapper postMapper;

View File

@ -29,7 +29,7 @@ import java.util.*;
* @author muyu
*/
@Service
public class SysRoleServiceImpl implements SysRoleService {
public class SysRoleServiceImpl extends ServiceImpl<SysRoleMapper, SysRole> implements SysRoleService {
@Autowired
private SysRoleMapper roleMapper;

View File

@ -34,7 +34,7 @@ import java.util.stream.Collectors;
* @author muyu
*/
@Service
public class SysUserServiceImpl implements SysUserService {
public class SysUserServiceImpl extends ServiceImpl<SysUserMapper, SysUser> implements SysUserService {
private static final Logger log = LoggerFactory.getLogger(SysUserServiceImpl.class);
@Autowired
protected Validator validator;
@ -243,9 +243,7 @@ public class SysUserServiceImpl implements SysUserService {
// 新增用户与角色管理
insertUserRole(user);
// 新增用户与公告关联
if (noticeIds !=null && !noticeIds.isEmpty()){
userMapper.insertUserNotice(user.getUserId(), noticeIds);
}
userMapper.insertUserNotice(user.getUserId(), noticeIds);
return rows;
}

View File

@ -25,11 +25,19 @@ spring:
discovery:
# 服务注册地址
server-addr: ${nacos.addr}
# nacos用户名
username: ${nacos.user-name}
# nacos密码
password: ${nacos.password}
# 命名空间
namespace: ${nacos.namespace}
config:
# 服务注册地址
server-addr: ${nacos.addr}
# nacos用户名
username: ${nacos.user-name}
# nacos密码
password: ${nacos.password}
# 命名空间
namespace: ${nacos.namespace}
# 配置文件格式

View File

@ -1,7 +0,0 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Config 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.muyu.system.mapper.AtomMapper">
</mapper>