-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
241 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,81 @@ | ||
package org.huifer.rbac.entity.db; | ||
|
||
import com.baomidou.mybatisplus.annotation.IdType; | ||
import com.baomidou.mybatisplus.annotation.TableField; | ||
import com.baomidou.mybatisplus.annotation.TableId; | ||
import com.baomidou.mybatisplus.annotation.TableLogic; | ||
import com.baomidou.mybatisplus.annotation.TableName; | ||
import com.baomidou.mybatisplus.annotation.Version; | ||
import lombok.AllArgsConstructor; | ||
import lombok.Data; | ||
import lombok.NoArgsConstructor; | ||
|
||
import java.io.Serializable; | ||
import java.time.LocalDateTime; | ||
|
||
/** | ||
* 按钮表 | ||
*/ | ||
@Data | ||
@AllArgsConstructor | ||
@NoArgsConstructor | ||
@TableName(value = "rbac.t_btn") | ||
public class TBtn implements Serializable { | ||
public static final String COL_ID = "id"; | ||
public static final String COL_NAME = "name"; | ||
public static final String COL_TYPE = "type"; | ||
public static final String COL_CREATE_TIME = "create_time"; | ||
public static final String COL_CREATE_USER = "create_user"; | ||
public static final String COL_UPDATE_TIME = "update_time"; | ||
public static final String COL_UPDATE_USER = "update_user"; | ||
public static final String COL_VERSION = "version"; | ||
public static final String COL_IS_DELETE = "is_delete"; | ||
private static final long serialVersionUID = 1L; | ||
/** | ||
* 主键 | ||
*/ | ||
@TableId(value = "id", type = IdType.AUTO) | ||
private Long id; | ||
/** | ||
* 名称 | ||
*/ | ||
@TableField(value = "name") | ||
private String name; | ||
/** | ||
* 终端类型 PC , IOS , ANDROID | ||
*/ | ||
@TableField(value = "type") | ||
private String type; | ||
/** | ||
* 创建时间 | ||
*/ | ||
@TableField(value = "create_time") | ||
private LocalDateTime createTime; | ||
/** | ||
* 创建人 | ||
*/ | ||
@TableField(value = "create_user") | ||
private Long createUser; | ||
/** | ||
* 修改时间 | ||
*/ | ||
@TableField(value = "update_time") | ||
private LocalDateTime updateTime; | ||
/** | ||
* 修改人 | ||
*/ | ||
@TableField(value = "update_user") | ||
private Long updateUser; | ||
/** | ||
* 版本 | ||
*/ | ||
@TableField(value = "version") | ||
@Version | ||
private Long version; | ||
/** | ||
* 是否删除标记 | ||
*/ | ||
@TableField(value = "is_delete") | ||
@TableLogic | ||
private Integer isDelete; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
package org.huifer.rbac.mapper; | ||
|
||
import com.baomidou.mybatisplus.core.mapper.BaseMapper; | ||
import org.apache.ibatis.annotations.Mapper; | ||
import org.huifer.rbac.entity.db.Demo; | ||
|
||
@Mapper | ||
public interface DemoMapper extends BaseMapper<Demo> { | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
package com.huifer.struts.action; | ||
|
||
import com.opensymphony.xwork2.ActionSupport; | ||
|
||
/** | ||
* 描述: | ||
* | ||
* @author huifer | ||
* @date 2019-02-21 | ||
*/ | ||
public class UserAction extends ActionSupport { | ||
public String find() { | ||
System.out.println("find user"); | ||
return NONE; | ||
} | ||
|
||
public String update() { | ||
System.out.println("find update"); | ||
return NONE; | ||
} | ||
|
||
public String delete() { | ||
System.out.println("find delete"); | ||
return NONE; | ||
} | ||
|
||
public String save() { | ||
System.out.println("find save"); | ||
return NONE; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
package com.huifer.security; | ||
|
||
import com.huifer.security.properties.SecurityProperties; | ||
import org.springframework.boot.context.properties.EnableConfigurationProperties; | ||
import org.springframework.context.annotation.Configuration; | ||
|
||
/** | ||
* 描述: | ||
* | ||
* @author: huifer | ||
* @date: 2019-11-17 | ||
*/ | ||
@Configuration | ||
@EnableConfigurationProperties(SecurityProperties.class) | ||
public class SecurityCoreConfig { | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
/** | ||
* Copyright 2009-2018 the original author or authors. | ||
* <p> | ||
* 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 | ||
* <p> | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* <p> | ||
* 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 org.apache.ibatis.submitted.discriminator; | ||
|
||
public class Vehicle { | ||
protected Integer id; | ||
protected String maker; | ||
|
||
public Integer getId() { | ||
return id; | ||
} | ||
|
||
public void setId(Integer id) { | ||
this.id = id; | ||
} | ||
|
||
public String getMaker() { | ||
return maker; | ||
} | ||
|
||
public void setMaker(String maker) { | ||
this.maker = maker; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
/** | ||
* Copyright 2009-2019 the original author or authors. | ||
* <p> | ||
* 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 | ||
* <p> | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* <p> | ||
* 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 org.apache.ibatis.submitted.serializecircular; | ||
|
||
public interface DepartmentMapper { | ||
Department getById(Integer anId); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
package org.huifer.spring.demo; | ||
|
||
import org.huifer.spring.annotation.HFService; | ||
|
||
@HFService(name = "demoService") | ||
public class IDemoServiceImpl implements IDemoService { | ||
|
||
public String call(String name, int age) { | ||
return name + age; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
/** | ||
* Copyright 2009-2015 the original author or authors. | ||
* <p> | ||
* 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 | ||
* <p> | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* <p> | ||
* 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 org.apache.ibatis.submitted.manyanno; | ||
|
||
public class AnnoPostTag { | ||
|
||
private int id; | ||
private String name; | ||
|
||
public AnnoPostTag(int id, String name) { | ||
this.id = id; | ||
this.name = name; | ||
} | ||
|
||
public int getId() { | ||
return id; | ||
} | ||
|
||
public String getName() { | ||
return name; | ||
} | ||
} |