提交 64f28d68 编写于 作者: ibizdev's avatar ibizdev

ibiz4j 发布系统代码 [ibiz-uaa,UAA鉴权]

上级 97e0ec5e
......@@ -11,6 +11,7 @@ export default {
expires_time: "管理账号token过期时间",
disabled: "是否禁用",
redirect_uri: "RedirectURI",
notify_url: "NotifyUrl",
agent_id: "AGENT_ID",
},
views: {
......@@ -40,6 +41,10 @@ export default {
secret_key: "SecretKey(AppSecret)",
redirect_uri: "RedirectURI",
region_id: "RegionId",
access_token: "管理账号token",
expires_time: "管理账号token过期时间",
notify_url: "NotifyUrl",
agent_id: "AGENT_ID",
disabled: "是否禁用",
accessid: "开放平台接入标识",
},
......
......@@ -10,6 +10,7 @@ export default {
expires_time: "管理账号token过期时间",
disabled: "是否禁用",
redirect_uri: "RedirectURI",
notify_url: "NotifyUrl",
agent_id: "AGENT_ID",
},
views: {
......@@ -39,6 +40,10 @@ export default {
secret_key: "SecretKey(AppSecret)",
redirect_uri: "RedirectURI",
region_id: "RegionId",
access_token: "管理账号token",
expires_time: "管理账号token过期时间",
notify_url: "NotifyUrl",
agent_id: "AGENT_ID",
disabled: "是否禁用",
accessid: "开放平台接入标识",
},
......
......@@ -88,6 +88,55 @@
</app-form-item>
</i-col>
<i-col v-show="detailsModel.access_token.visible" :style="{}" :lg="{ span: 24, offset: 0 }">
<app-form-item name='access_token' :itemRules="this.rules().access_token" class='' :caption="$t('entities.sysopenaccess.main_form.details.access_token')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.access_token.error" :isEmptyCaption="false" labelPos="LEFT">
<input-box
v-model="data.access_token"
@enter="onEnter($event)"
unit=""
:disabled="detailsModel.access_token.disabled"
type='text'
style="">
</input-box>
</app-form-item>
</i-col>
<i-col v-show="detailsModel.expires_time.visible" :style="{}" :lg="{ span: 24, offset: 0 }">
<app-form-item name='expires_time' :itemRules="this.rules().expires_time" class='' :caption="$t('entities.sysopenaccess.main_form.details.expires_time')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.expires_time.error" :isEmptyCaption="false" labelPos="LEFT">
<date-picker type="datetime" :transfer="true" format="yyyy-MM-dd HH:mm:ss" placeholder="请选择时间..." :value="data.expires_time" :disabled="detailsModel.expires_time.disabled" style="min-width: 150px; width:160px;" @on-change="(val1, val2) => { this.data.expires_time = val1 }"></date-picker>
</app-form-item>
</i-col>
<i-col v-show="detailsModel.notify_url.visible" :style="{}" :lg="{ span: 24, offset: 0 }">
<app-form-item name='notify_url' :itemRules="this.rules().notify_url" class='' :caption="$t('entities.sysopenaccess.main_form.details.notify_url')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.notify_url.error" :isEmptyCaption="false" labelPos="LEFT">
<input-box
v-model="data.notify_url"
@enter="onEnter($event)"
unit=""
:disabled="detailsModel.notify_url.disabled"
type='text'
style="">
</input-box>
</app-form-item>
</i-col>
<i-col v-show="detailsModel.agent_id.visible" :style="{}" :lg="{ span: 24, offset: 0 }">
<app-form-item name='agent_id' :itemRules="this.rules().agent_id" class='' :caption="$t('entities.sysopenaccess.main_form.details.agent_id')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.agent_id.error" :isEmptyCaption="false" labelPos="LEFT">
<input-box
v-model="data.agent_id"
@enter="onEnter($event)"
unit=""
:disabled="detailsModel.agent_id.disabled"
type='number'
style="">
</input-box>
</app-form-item>
</i-col>
<i-col v-show="detailsModel.disabled.visible" :style="{}" :lg="{ span: 24, offset: 0 }">
<app-form-item name='disabled' :itemRules="this.rules().disabled" class='' :caption="$t('entities.sysopenaccess.main_form.details.disabled')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.disabled.error" :isEmptyCaption="false" labelPos="LEFT">
......@@ -507,6 +556,10 @@ export default class MainBase extends Vue implements ControlInterface {
secret_key: null,
redirect_uri: null,
region_id: null,
access_token: null,
expires_time: null,
notify_url: null,
agent_id: null,
disabled: null,
accessid: null,
sysopenaccess:null,
......@@ -584,6 +637,22 @@ export default class MainBase extends Vue implements ControlInterface {
{ required: this.detailsModel.region_id.required, type: 'string', message: 'RegionId 值不能为空', trigger: 'change' },
{ required: this.detailsModel.region_id.required, type: 'string', message: 'RegionId 值不能为空', trigger: 'blur' },
],
access_token: [
{ required: this.detailsModel.access_token.required, type: 'string', message: '管理账号token 值不能为空', trigger: 'change' },
{ required: this.detailsModel.access_token.required, type: 'string', message: '管理账号token 值不能为空', trigger: 'blur' },
],
expires_time: [
{ required: this.detailsModel.expires_time.required, type: 'string', message: '管理账号token过期时间 值不能为空', trigger: 'change' },
{ required: this.detailsModel.expires_time.required, type: 'string', message: '管理账号token过期时间 值不能为空', trigger: 'blur' },
],
notify_url: [
{ required: this.detailsModel.notify_url.required, type: 'string', message: 'NotifyUrl 值不能为空', trigger: 'change' },
{ required: this.detailsModel.notify_url.required, type: 'string', message: 'NotifyUrl 值不能为空', trigger: 'blur' },
],
agent_id: [
{ required: this.detailsModel.agent_id.required, type: 'number', message: 'AGENT_ID 值不能为空', trigger: 'change' },
{ required: this.detailsModel.agent_id.required, type: 'number', message: 'AGENT_ID 值不能为空', trigger: 'blur' },
],
disabled: [
{ required: this.detailsModel.disabled.required, type: 'number', message: '是否禁用 值不能为空', trigger: 'change' },
{ required: this.detailsModel.disabled.required, type: 'number', message: '是否禁用 值不能为空', trigger: 'blur' },
......@@ -716,6 +785,14 @@ export default class MainBase extends Vue implements ControlInterface {
redirect_uri: new FormItemModel({ caption: 'RedirectURI', detailType: 'FORMITEM', name: 'redirect_uri', visible: true, isShowCaption: true, form: this, isControlledContent: false , required:false, disabled: false, enableCond: 3 })
,
region_id: new FormItemModel({ caption: 'RegionId', detailType: 'FORMITEM', name: 'region_id', visible: true, isShowCaption: true, form: this, isControlledContent: false , required:false, disabled: false, enableCond: 3 })
,
access_token: new FormItemModel({ caption: '管理账号token', detailType: 'FORMITEM', name: 'access_token', visible: true, isShowCaption: true, form: this, isControlledContent: false , required:false, disabled: false, enableCond: 3 })
,
expires_time: new FormItemModel({ caption: '管理账号token过期时间', detailType: 'FORMITEM', name: 'expires_time', visible: true, isShowCaption: true, form: this, isControlledContent: false , required:false, disabled: false, enableCond: 3 })
,
notify_url: new FormItemModel({ caption: 'NotifyUrl', detailType: 'FORMITEM', name: 'notify_url', visible: true, isShowCaption: true, form: this, isControlledContent: false , required:false, disabled: false, enableCond: 3 })
,
agent_id: new FormItemModel({ caption: 'AGENT_ID', detailType: 'FORMITEM', name: 'agent_id', visible: true, isShowCaption: true, form: this, isControlledContent: false , required:false, disabled: false, enableCond: 3 })
,
disabled: new FormItemModel({ caption: '是否禁用', detailType: 'FORMITEM', name: 'disabled', visible: true, isShowCaption: true, form: this, isControlledContent: false , required:false, disabled: false, enableCond: 3 })
,
......@@ -879,6 +956,54 @@ export default class MainBase extends Vue implements ControlInterface {
this.formDataChange({ name: 'region_id', newVal: newVal, oldVal: oldVal });
}
/**
* 监控表单属性 access_token 值
*
* @param {*} newVal
* @param {*} oldVal
* @memberof MainBase
*/
@Watch('data.access_token')
onAccess_tokenChange(newVal: any, oldVal: any) {
this.formDataChange({ name: 'access_token', newVal: newVal, oldVal: oldVal });
}
/**
* 监控表单属性 expires_time 值
*
* @param {*} newVal
* @param {*} oldVal
* @memberof MainBase
*/
@Watch('data.expires_time')
onExpires_timeChange(newVal: any, oldVal: any) {
this.formDataChange({ name: 'expires_time', newVal: newVal, oldVal: oldVal });
}
/**
* 监控表单属性 notify_url 值
*
* @param {*} newVal
* @param {*} oldVal
* @memberof MainBase
*/
@Watch('data.notify_url')
onNotify_urlChange(newVal: any, oldVal: any) {
this.formDataChange({ name: 'notify_url', newVal: newVal, oldVal: oldVal });
}
/**
* 监控表单属性 agent_id 值
*
* @param {*} newVal
* @param {*} oldVal
* @memberof MainBase
*/
@Watch('data.agent_id')
onAgent_idChange(newVal: any, oldVal: any) {
this.formDataChange({ name: 'agent_id', newVal: newVal, oldVal: oldVal });
}
/**
* 监控表单属性 disabled 值
*
......@@ -972,6 +1097,10 @@ export default class MainBase extends Vue implements ControlInterface {
}
......
......@@ -80,6 +80,26 @@ export default class MainModel {
prop: 'region_id',
dataType: 'TEXT',
},
{
name: 'access_token',
prop: 'access_token',
dataType: 'TEXT',
},
{
name: 'expires_time',
prop: 'expires_time',
dataType: 'DATETIME',
},
{
name: 'notify_url',
prop: 'notify_url',
dataType: 'TEXT',
},
{
name: 'agent_id',
prop: 'agent_id',
dataType: 'BIGINT',
},
{
name: 'disabled',
prop: 'disabled',
......
......@@ -124,6 +124,14 @@ public class SysOpenAccess extends EntityMP implements Serializable {
@JSONField(name = "redirect_uri")
@JsonProperty("redirect_uri")
private String redirectUri;
/**
* NotifyUrl
*/
@DEField(name = "notify_url")
@TableField(value = "notify_url")
@JSONField(name = "notify_url")
@JsonProperty("notify_url")
private String notifyUrl;
/**
* AGENT_ID
*/
......@@ -217,6 +225,14 @@ public class SysOpenAccess extends EntityMP implements Serializable {
this.modify("redirect_uri", redirectUri);
}
/**
* 设置 [NotifyUrl]
*/
public void setNotifyUrl(String notifyUrl) {
this.notifyUrl = notifyUrl;
this.modify("notify_url", notifyUrl);
}
/**
* 设置 [AGENT_ID]
*/
......
......@@ -6,7 +6,7 @@
<!--输出实体[SYS_AUTHLOG]数据结构 -->
<changeSet author="a_A_5d9d78509" id="tab-sys_authlog-1-1">
<changeSet author="root" id="tab-sys_authlog-1-1">
<createTable tableName="IBZAUTHLOG">
<column name="LOGID" remarks="" type="VARCHAR(100)">
<constraints primaryKey="true" primaryKeyName="PK_SYS_AUTHLOG_LOGID"/>
......@@ -32,7 +32,7 @@
<!--输出实体[SYS_OPEN_ACCESS]数据结构 -->
<changeSet author="a_A_5d9d78509" id="tab-sys_open_access-30-2">
<changeSet author="root" id="tab-sys_open_access-34-2">
<createTable tableName="IBZOPENACCESS">
<column name="ACCESSID" remarks="" type="VARCHAR(100)">
<constraints primaryKey="true" primaryKeyName="PK_SYS_OPEN_ACCESS_ACCESSID"/>
......@@ -55,6 +55,8 @@
</column>
<column name="REDIRECT_URI" remarks="" type="VARCHAR(500)">
</column>
<column name="NOTIFY_URL" remarks="" type="VARCHAR(500)">
</column>
<column name="AGENT_ID" remarks="" type="BIGINT">
</column>
</createTable>
......@@ -62,7 +64,7 @@
<!--输出实体[SYS_PSSYSTEM]数据结构 -->
<changeSet author="a_A_5d9d78509" id="tab-sys_pssystem-1-3">
<changeSet author="root" id="tab-sys_pssystem-1-3">
<createTable tableName="IBZPSSYSTEM">
<column name="PSSYSTEMID" remarks="" type="VARCHAR(100)">
<constraints primaryKey="true" primaryKeyName="PK_SYS_PSSYSTEM_PSSYSTEMID"/>
......@@ -82,7 +84,7 @@
<!--输出实体[SYS_PERMISSION]数据结构 -->
<changeSet author="a_A_5d9d78509" id="tab-sys_permission-1-4">
<changeSet author="root" id="tab-sys_permission-1-4">
<createTable tableName="IBZPERMISSION">
<column name="SYS_PERMISSIONID" remarks="" type="VARCHAR(200)">
<constraints primaryKey="true" primaryKeyName="PK_SYS_PERMISSION_SYS_PERMISSI"/>
......@@ -104,7 +106,7 @@
<!--输出实体[SYS_ROLE]数据结构 -->
<changeSet author="a_A_5d9d78509" id="tab-sys_role-4-5">
<changeSet author="root" id="tab-sys_role-4-5">
<createTable tableName="IBZROLE">
<column name="SYS_ROLEID" remarks="" type="VARCHAR(100)">
<constraints primaryKey="true" primaryKeyName="PK_SYS_ROLE_SYS_ROLEID"/>
......@@ -128,7 +130,7 @@
<!--输出实体[SYS_ROLE_PERMISSION]数据结构 -->
<changeSet author="a_A_5d9d78509" id="tab-sys_role_permission-1-6">
<changeSet author="root" id="tab-sys_role_permission-1-6">
<createTable tableName="IBZROLE_PERMISSION">
<column name="SYS_ROLE_PERMISSIONID" remarks="" type="VARCHAR(100)">
<constraints primaryKey="true" primaryKeyName="PK_SYS_ROLE_PERMISSION_SYS_ROL"/>
......@@ -148,7 +150,7 @@
<!--输出实体[SYS_USER_AUTH]数据结构 -->
<changeSet author="a_A_5d9d78509" id="tab-sys_user_auth-20-7">
<changeSet author="root" id="tab-sys_user_auth-20-7">
<createTable tableName="IBZUSERAUTH">
<column name="AUTHID" remarks="" type="VARCHAR(100)">
<constraints primaryKey="true" primaryKeyName="PK_SYS_USER_AUTH_AUTHID"/>
......@@ -166,7 +168,7 @@
<!--输出实体[SYS_USER_ROLE]数据结构 -->
<changeSet author="a_A_5d9d78509" id="tab-sys_user_role-1-8">
<changeSet author="root" id="tab-sys_user_role-1-8">
<createTable tableName="IBZUSER_ROLE">
<column name="SYS_USER_ROLEID" remarks="" type="VARCHAR(100)">
<constraints primaryKey="true" primaryKeyName="PK_SYS_USER_ROLE_SYS_USER_ROLE"/>
......@@ -187,16 +189,16 @@
<!--输出实体[SYS_PSSYSTEM]外键关系 -->
<!--输出实体[SYS_PERMISSION]外键关系 -->
<!--输出实体[SYS_ROLE]外键关系 -->
<changeSet author="a_A_5d9d78509" id="fk-sys_role-4-9">
<changeSet author="root" id="fk-sys_role-4-9">
<addForeignKeyConstraint baseColumnNames="PROLEID" baseTableName="IBZROLE" constraintName="DER1N_SYS_ROLE_SYS_ROLE_PROLEI" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="SYS_ROLEID" referencedTableName="IBZROLE" validate="true"/>
</changeSet>
<!--输出实体[SYS_ROLE_PERMISSION]外键关系 -->
<changeSet author="a_A_5d9d78509" id="fk-sys_role_permission-1-10">
<changeSet author="root" id="fk-sys_role_permission-1-10">
<addForeignKeyConstraint baseColumnNames="SYS_PERMISSIONID" baseTableName="IBZROLE_PERMISSION" constraintName="DER1N_SYS_ROLE_PERMISSION_SYS_" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="SYS_PERMISSIONID" referencedTableName="IBZPERMISSION" validate="true"/>
</changeSet>
<!--输出实体[SYS_USER_AUTH]外键关系 -->
<!--输出实体[SYS_USER_ROLE]外键关系 -->
<changeSet author="a_A_5d9d78509" id="fk-sys_user_role-1-12">
<changeSet author="root" id="fk-sys_user_role-1-12">
<addForeignKeyConstraint baseColumnNames="SYS_ROLEID" baseTableName="IBZUSER_ROLE" constraintName="DER1N_SYS_USER_ROLE_SYS_ROLE_S" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="SYS_ROLEID" referencedTableName="IBZROLE" validate="true"/>
</changeSet>
......
......@@ -8,7 +8,7 @@
<![CDATA[select t1.* from (SELECT t1.`ACCESSID`, t1.`ACCESSNAME`, t1.`ACCESS_KEY`, t1.`ACCESS_TOKEN`, t1.`AGENT_ID`, t1.`DISABLED`, t1.`EXPIRES_TIME`, t1.`OPEN_TYPE`, t1.`REDIRECT_URI`, t1.`REGION_ID`, t1.`SECRET_KEY` FROM `IBZOPENACCESS` t1 ) t1 where accessid=#{id}]]>
</select>
<select id="selectById" resultMap="SysOpenAccessResultMap" databaseId="oracle">
<![CDATA[select t1.* from (SELECT t1.ACCESSID, t1.ACCESSNAME, t1.ACCESS_KEY, t1.ACCESS_TOKEN, t1.DISABLED, t1.EXPIRES_TIME, t1.OPEN_TYPE, t1.REDIRECT_URI, t1.REGION_ID, t1.SECRET_KEY FROM IBZOPENACCESS t1 ) t1 where accessid=#{id}]]>
<![CDATA[select t1.* from (SELECT t1.ACCESSID, t1.ACCESSNAME, t1.ACCESS_KEY, t1.ACCESS_TOKEN, t1.AGENT_ID, t1.DISABLED, t1.EXPIRES_TIME, t1.NOTIFY_URL, t1.OPEN_TYPE, t1.REDIRECT_URI, t1.REGION_ID, t1.SECRET_KEY FROM IBZOPENACCESS t1 ) t1 where accessid=#{id}]]>
</select>
<select id="selectById" resultMap="SysOpenAccessResultMap" databaseId="postgresql">
<![CDATA[select t1.* from (SELECT t1.ACCESSID, t1.ACCESSNAME, t1.ACCESS_KEY, t1.ACCESS_TOKEN, t1.DISABLED, t1.EXPIRES_TIME, t1.OPEN_TYPE, t1.REDIRECT_URI, t1.REGION_ID, t1.SECRET_KEY FROM IBZOPENACCESS t1 ) t1 where accessid=#{id}]]>
......@@ -25,6 +25,7 @@
<result property="accessToken" column="access_token" />
<result property="expiresTime" column="expires_time" />
<result property="redirectUri" column="redirect_uri" />
<result property="notifyUrl" column="notify_url" />
<result property="agentId" column="agent_id" />
......@@ -47,7 +48,7 @@
</sql>
<!--数据查询[Default]-->
<sql id="Default" databaseId="oracle">
<![CDATA[ SELECT t1.ACCESSID, t1.ACCESSNAME, t1.ACCESS_KEY, t1.ACCESS_TOKEN, t1.DISABLED, t1.EXPIRES_TIME, t1.OPEN_TYPE, t1.REDIRECT_URI, t1.REGION_ID, t1.SECRET_KEY FROM IBZOPENACCESS t1
<![CDATA[ SELECT t1.ACCESSID, t1.ACCESSNAME, t1.ACCESS_KEY, t1.ACCESS_TOKEN, t1.AGENT_ID, t1.DISABLED, t1.EXPIRES_TIME, t1.NOTIFY_URL, t1.OPEN_TYPE, t1.REDIRECT_URI, t1.REGION_ID, t1.SECRET_KEY FROM IBZOPENACCESS t1
]]>
</sql>
<!--数据查询[Default]-->
......@@ -62,7 +63,7 @@
</sql>
<!--数据查询[View]-->
<sql id="View" databaseId="oracle">
<![CDATA[ SELECT t1.ACCESSID, t1.ACCESSNAME, t1.ACCESS_KEY, t1.ACCESS_TOKEN, t1.DISABLED, t1.EXPIRES_TIME, t1.OPEN_TYPE, t1.REDIRECT_URI, t1.REGION_ID, t1.SECRET_KEY FROM IBZOPENACCESS t1
<![CDATA[ SELECT t1.ACCESSID, t1.ACCESSNAME, t1.ACCESS_KEY, t1.ACCESS_TOKEN, t1.AGENT_ID, t1.DISABLED, t1.EXPIRES_TIME, t1.NOTIFY_URL, t1.OPEN_TYPE, t1.REDIRECT_URI, t1.REGION_ID, t1.SECRET_KEY FROM IBZOPENACCESS t1
]]>
</sql>
<!--数据查询[View]-->
......
......@@ -445,6 +445,20 @@
"major_field":0
},
{
"fieldname":"NOTIFY_URL" ,
"codename":"Notify_url",
"field_logic_name":"NotifyUrl",
"entity_name":"SysOpenAccess",
"field_type":"TEXT",
"nullable":1,
"physical_field":1,
"data_type":"VARCHAR",
"data_length":500,
"key_field":0,
"show_order":12,
"major_field":0
},
{
"fieldname":"AGENT_ID" ,
"codename":"Agent_id",
"field_logic_name":"AGENT_ID",
......@@ -455,7 +469,7 @@
"data_type":"BIGINT",
"data_length":20,
"key_field":0,
"show_order":1000,
"show_order":13,
"major_field":0
}
],
......
......@@ -118,6 +118,15 @@ public class SysOpenAccessDTO extends DTOBase implements Serializable {
@Size(min = 0, max = 500, message = "内容长度必须小于等于[500]")
private String redirectUri;
/**
* 属性 [NOTIFY_URL]
*
*/
@JSONField(name = "notify_url")
@JsonProperty("notify_url")
@Size(min = 0, max = 500, message = "内容长度必须小于等于[500]")
private String notifyUrl;
/**
* 属性 [AGENT_ID]
*
......@@ -200,6 +209,14 @@ public class SysOpenAccessDTO extends DTOBase implements Serializable {
this.modify("redirect_uri",redirectUri);
}
/**
* 设置 [NOTIFY_URL]
*/
public void setNotifyUrl(String notifyUrl){
this.notifyUrl = notifyUrl ;
this.modify("notify_url",notifyUrl);
}
/**
* 设置 [AGENT_ID]
*/
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册