Browse Source

Configure Continuous Integration ....

master
hypaas 11 months ago
parent
commit
1a5d45c7ed
  1. 2
      build.gradle
  2. 2
      modules/test/src/main/resources/domains/LogEntity.xml
  3. 10
      modules/test/src/main/resources/domains/UserAuth.xml
  4. 13
      modules/test/src/main/resources/views/SecurityAuditUser-grid.xml
  5. 13
      modules/test/src/main/resources/views/SecurityUser-grid.xml
  6. 13
      modules/test/src/main/resources/views/ServiceUser-grid.xml
  7. 13
      modules/test/src/main/resources/views/SystemManageUser-grid.xml
  8. 17
      modules/test/src/main/resources/views/actionGroup.xml
  9. 2
      modules/test/src/main/resources/views/menu.xml
  10. 1
      src/main/resources/application.properties

2
build.gradle

@ -45,6 +45,8 @@ configurations {
dependencies {
implementation project(":modules:test")
implementation 'com.alibaba:easyexcel:2.2.6'
implementation 'com.alibaba:fastjson:1.2.83'
}
wrapper {

2
modules/test/src/main/resources/domains/LogEntity.xml

@ -18,7 +18,7 @@
<string nullable="true" actOverwrite="false" copy="true" column="RESULTDESC" massUpdate="false" name="resultDesc" isJudg="false"/>
<integer nullable="true" column="STATUS" actOverwrite="false" massUpdate="false" name="status" copy="true" isJudg="false"/>
<datetime nullable="true" tz="false" column="TIME" actOverwrite="false" massUpdate="false" name="time" copy="true" isJudg="false"/>
<integer nullable="true" column="USERAUTH" actOverwrite="false" required="false" massUpdate="false" name="userAuth" copy="true" isJudg="false"/>
<enum column="USERAUTH" required="false" massUpdate="false" ref="module.UserAuth" name="userAuth" copy="true"/>
<string nullable="true" actOverwrite="false" copy="true" column="USERAUTHDESC" massUpdate="false" name="userAuthDesc" isJudg="false"/>
<string actOverwrite="false" copy="true" column="USERID" massUpdate="false" name="userId" isJudg="false"/>
<string actOverwrite="false" copy="true" massUpdate="false" name="address" isJudg="false"/>

10
modules/test/src/main/resources/domains/UserAuth.xml

@ -0,0 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
<domain-models xmlns="http://hypaas.com/xml/ns/domain-models" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://hypaas.com/xml/ns/domain-models http://hypaas.com/xml/ns/domain-models/domain-models_5.2.xsd">
<module name="com.module.enmus" package="module"/>
<enum name="UserAuth">
<item name="SystemManageUser" title="系统管理员" value="0"/>
<item name="SecurityUser" title="安全保密员" value="1"/>
<item name="SecurityAuditUser" title="安全审计员" value="2"/>
<item name="ServiceUser" title="业务用户" value="3"/>
</enum>
</domain-models>

13
modules/test/src/main/resources/views/SecurityAuditUser-grid.xml

@ -0,0 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
<object-views xmlns="http://hypaas.com/xml/ns/object-views" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://hypaas.com/xml/ns/object-views http://hypaas.com/xml/ns/object-views/object-views_5.3.xsd">
<grid title="安全审计员操作日志" model="Log.LogEntity" edit-icon="true" freeSearch="all" name="SecurityAuditUser-grid" width="large">
<field search-field="true" canSuggest="true" name="userId" title="用户ID"/>
<field search-field="true" canSuggest="true" name="levelNum" title="告警级别"/>
<field search-field="true" canSuggest="true" name="time" title="操作时间"/>
<field search-field="true" canSuggest="true" name="address" title="IP"/>
<field search-field="true" canSuggest="true" name="objectName" title="客体"/>
<field search-field="true" canSuggest="true" name="module" title="操作模块"/>
<field search-field="true" canSuggest="true" name="opType" title="操作类型"/>
<field search-field="true" canSuggest="true" name="content" title="操作内容"/>
</grid>
</object-views>

13
modules/test/src/main/resources/views/SecurityUser-grid.xml

@ -0,0 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
<object-views xmlns="http://hypaas.com/xml/ns/object-views" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://hypaas.com/xml/ns/object-views http://hypaas.com/xml/ns/object-views/object-views_5.3.xsd">
<grid title="安全保密员操作日志" model="Log.LogEntity" edit-icon="true" freeSearch="all" name="SecurityUser-grid" width="large">
<field search-field="true" canSuggest="true" name="userId" title="用户ID"/>
<field search-field="true" canSuggest="true" name="levelNum" title="告警级别"/>
<field search-field="true" canSuggest="true" name="time" title="操作时间"/>
<field search-field="true" canSuggest="true" name="address" title="IP"/>
<field search-field="true" canSuggest="true" name="objectName" title="客体"/>
<field search-field="true" canSuggest="true" name="module" title="操作模块"/>
<field search-field="true" canSuggest="true" name="opType" title="操作类型"/>
<field search-field="true" canSuggest="true" name="content" title="操作内容"/>
</grid>
</object-views>

13
modules/test/src/main/resources/views/ServiceUser-grid.xml

@ -0,0 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
<object-views xmlns="http://hypaas.com/xml/ns/object-views" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://hypaas.com/xml/ns/object-views http://hypaas.com/xml/ns/object-views/object-views_5.3.xsd">
<grid canMove="false" canEdit="false" canNew="false" title="业务用户操作日志" model="Log.LogEntity" canDelete="false" edit-icon="true" canArchive="false" editable="false" canSave="false" freeSearch="all" name="ServiceUser-grid" width="large" customSearch="true">
<field type="string" search-field="true" canSuggest="true" name="userId" title="用户ID"/>
<field search-field="true" canSuggest="true" name="levelNum" title="告警级别"/>
<field type="datetime" search-field="true" canSuggest="true" name="time" title="操作时间"/>
<field type="string" search-field="true" canSuggest="true" name="address" title="IP"/>
<field type="string" search-field="true" canSuggest="true" name="objectName" title="客体"/>
<field type="enum" search-field="true" canSuggest="true" name="module" canNew="false" title="操作模块" canView="false"/>
<field type="enum" search-field="true" canSuggest="true" name="opType" title="操作类型"/>
<field type="string" search-field="true" canSuggest="true" name="content" title="操作内容"/>
</grid>
</object-views>

13
modules/test/src/main/resources/views/SystemManageUser-grid.xml

@ -0,0 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
<object-views xmlns="http://hypaas.com/xml/ns/object-views" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://hypaas.com/xml/ns/object-views http://hypaas.com/xml/ns/object-views/object-views_5.3.xsd">
<grid title="系统管理员操作日志" model="Log.LogEntity" edit-icon="true" freeSearch="all" name="SystemManageUser-grid" width="large">
<field search-field="true" canSuggest="true" name="userId" title="用户ID"/>
<field search-field="true" canSuggest="true" name="levelNum" title="告警级别"/>
<field search-field="true" canSuggest="true" name="time" title="操作时间"/>
<field search-field="true" canSuggest="true" name="address" title="IP"/>
<field search-field="true" canSuggest="true" name="objectName" title="客体"/>
<field search-field="true" canSuggest="true" name="module" title="操作模块"/>
<field search-field="true" canSuggest="true" name="opType" title="操作类型"/>
<field search-field="true" canSuggest="true" name="content" title="操作内容"/>
</grid>
</object-views>

17
modules/test/src/main/resources/views/actionGroup.xml

@ -1,7 +1,20 @@
<?xml version="1.0" encoding="UTF-8"?>
<object-views xmlns="http://hypaas.com/xml/ns/object-views" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://hypaas.com/xml/ns/object-views http://hypaas.com/xml/ns/object-views/object-views_5.3.xsd">
<action-view name="action.view.LogManage.Log" model="Log.LogEntity" title="业务用户操作日志">
<view name="Log-ServiceUser-grid" type="grid"/>
<action-view name="action.view.ServiceUser.Log" model="Log.LogEntity" title="业务用户操作日志">
<view name="ServiceUser-grid" type="grid"/>
<view name="Log-ServiceUser-form" type="form"/>
<domain>self.userAuth=3</domain>
</action-view>
<action-view name="action.view.SecurityUser.Log" title="业务用户动作">
<view name="SecurityUser-grid" type="grid"/>
<domain>self.userAuth=1</domain>
</action-view>
<action-view name="action.view.SecurityAuditUser.Log" title="安全审计员动作">
<view name="SecurityAuditUser-grid" type="grid"/>
<domain>self.userAuth=2</domain>
</action-view>
<action-view name="action.view.SystemManageUser.Log" title="系统管理员动作">
<view name="SystemManageUser-grid" type="grid"/>
<domain>self.userAuth= 0</domain>
</action-view>
</object-views>

2
modules/test/src/main/resources/views/menu.xml

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<object-views xmlns="http://hypaas.com/xml/ns/object-views" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://hypaas.com/xml/ns/object-views http://hypaas.com/xml/ns/object-views/object-views_5.3.xsd">
<menuitem title="日志管理" left="true" name="menu-LogManage" action="action.view.LogManage.Log"/>
<menuitem parent="menu-LogManage" title="业务用户操作日志" left="true" name="menu-LogManage-Log" action="action.view.LogManage.Log"/>
<menuitem parent="menu-LogManage" title="安全保密员操作日志" left="true" name="menu-LogManage-Log" action="action.view.SecurityUser.Log"/>
</object-views>

1
src/main/resources/application.properties

@ -368,5 +368,6 @@ logging.level.com.hypaas=INFO

Loading…
Cancel
Save