Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
I
ibzuaa
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
ibiz4jteam
ibzuaa
提交
64f28d68
提交
64f28d68
编写于
11月 13, 2020
作者:
ibizdev
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
ibiz4j 发布系统代码 [ibiz-uaa,UAA鉴权]
上级
97e0ec5e
变更
9
显示空白字符变更
内嵌
并排
正在显示
9 个修改的文件
包含
224 行增加
和
15 行删除
+224
-15
sys-open-access_en_US.ts
.../lanres/entities/sys-open-access/sys-open-access_en_US.ts
+5
-0
sys-open-access_zh_CN.ts
.../lanres/entities/sys-open-access/sys-open-access_zh_CN.ts
+5
-0
main-form-base.vue
.../src/widgets/sys-open-access/main-form/main-form-base.vue
+129
-0
main-form-model.ts
.../src/widgets/sys-open-access/main-form/main-form-model.ts
+20
-0
SysOpenAccess.java
...c/main/java/cn/ibizlab/core/uaa/domain/SysOpenAccess.java
+16
-0
h2_table.xml
ibzuaa-core/src/main/resources/liquibase/h2_table.xml
+13
-11
SysOpenAccessMapper.xml
...esources/mapper/uaa/sysopenaccess/SysOpenAccessMapper.xml
+4
-3
ibzuaa.json
ibzuaa-core/src/main/resources/sysmodel/ibzuaa.json
+15
-1
SysOpenAccessDTO.java
...pi/src/main/java/cn/ibizlab/api/dto/SysOpenAccessDTO.java
+17
-0
未找到文件。
app_web/src/locale/lanres/entities/sys-open-access/sys-open-access_en_US.ts
浏览文件 @
64f28d68
...
...
@@ -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
:
"开放平台接入标识"
,
},
...
...
app_web/src/locale/lanres/entities/sys-open-access/sys-open-access_zh_CN.ts
浏览文件 @
64f28d68
...
...
@@ -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
:
"开放平台接入标识"
,
},
...
...
app_web/src/widgets/sys-open-access/main-form/main-form-base.vue
浏览文件 @
64f28d68
...
...
@@ -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 {
}
...
...
app_web/src/widgets/sys-open-access/main-form/main-form-model.ts
浏览文件 @
64f28d68
...
...
@@ -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'
,
...
...
ibzuaa-core/src/main/java/cn/ibizlab/core/uaa/domain/SysOpenAccess.java
浏览文件 @
64f28d68
...
...
@@ -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]
*/
...
...
ibzuaa-core/src/main/resources/liquibase/h2_table.xml
浏览文件 @
64f28d68
...
...
@@ -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>
...
...
ibzuaa-core/src/main/resources/mapper/uaa/sysopenaccess/SysOpenAccessMapper.xml
浏览文件 @
64f28d68
...
...
@@ -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]-->
...
...
ibzuaa-core/src/main/resources/sysmodel/ibzuaa.json
浏览文件 @
64f28d68
...
...
@@ -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"
:
1
000
,
"show_order"
:
1
3
,
"major_field"
:
0
}
],
...
...
ibzuaa-provider/ibzuaa-provider-api/src/main/java/cn/ibizlab/api/dto/SysOpenAccessDTO.java
浏览文件 @
64f28d68
...
...
@@ -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
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录