导航,附件,拦截器
This commit is contained in:
25
src/main/java/com/lovenav/dao/NavDao.java
Normal file
25
src/main/java/com/lovenav/dao/NavDao.java
Normal file
@@ -0,0 +1,25 @@
|
||||
package com.lovenav.dao;
|
||||
|
||||
import com.lovenav.entity.Nav;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@Repository
|
||||
public interface NavDao {
|
||||
int deleteByNavName(String navName);
|
||||
|
||||
int insert(Nav record);
|
||||
|
||||
int insertSelective(Nav record);
|
||||
|
||||
Nav selectByPrimaryKey(Integer id);
|
||||
|
||||
int updateByName(Nav record);
|
||||
|
||||
int updateByPrimaryKey(Nav record);
|
||||
|
||||
Nav selectAlreadyExist(Nav nav);
|
||||
|
||||
List<Nav> selectAllNav();
|
||||
}
|
32
src/main/java/com/lovenav/entity/Nav.java
Normal file
32
src/main/java/com/lovenav/entity/Nav.java
Normal file
@@ -0,0 +1,32 @@
|
||||
package com.lovenav.entity;
|
||||
|
||||
import java.io.Serializable;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* ln_nav
|
||||
*/
|
||||
@Data
|
||||
public class Nav implements Serializable {
|
||||
/**
|
||||
* id
|
||||
*/
|
||||
private Integer id;
|
||||
|
||||
/**
|
||||
* 导航名称
|
||||
*/
|
||||
private String navName;
|
||||
|
||||
/**
|
||||
* 跳转地址
|
||||
*/
|
||||
private String url;
|
||||
|
||||
/**
|
||||
* 状态
|
||||
*/
|
||||
private Integer status;
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
}
|
Reference in New Issue
Block a user