Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
jz-dmp-service
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
姚本章
jz-dmp-service
Commits
e340e546
Commit
e340e546
authored
Dec 21, 2020
by
mcb
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
b7cfadf6
Changes
4
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
1073 additions
and
0 deletions
+1073
-0
DmpAgentResult.java
src/main/java/com/jz/dmp/agent/DmpAgentResult.java
+74
-0
ResultCode.java
src/main/java/com/jz/dmp/agent/ResultCode.java
+57
-0
DmpProject.java
src/main/java/com/jz/dmp/modules/model/DmpProject.java
+300
-0
DmpProjectSystemInfo.java
...n/java/com/jz/dmp/modules/model/DmpProjectSystemInfo.java
+642
-0
No files found.
src/main/java/com/jz/dmp/agent/DmpAgentResult.java
0 → 100644
View file @
e340e546
package
com
.
jz
.
dmp
.
agent
;
import
java.io.Serializable
;
public
class
DmpAgentResult
implements
Serializable
{
private
static
final
long
serialVersionUID
=
-
7601078775407397787L
;
private
Long
id
;
private
ResultCode
code
;
private
String
message
;
private
Object
result
;
public
DmpAgentResult
()
{
this
.
setCode
(
ResultCode
.
SUCCESS
);
this
.
setMessage
(
"成功!"
);
}
public
DmpAgentResult
(
ResultCode
code
)
{
this
.
setCode
(
code
);
this
.
setMessage
(
code
.
msg
());
}
public
DmpAgentResult
(
ResultCode
code
,
String
message
)
{
this
.
setCode
(
code
);
this
.
setMessage
(
message
);
}
public
DmpAgentResult
(
ResultCode
code
,
Object
data
)
{
this
.
setCode
(
code
);
this
.
setMessage
(
code
.
msg
());
this
.
setResult
(
result
);
}
public
DmpAgentResult
(
ResultCode
code
,
String
message
,
Object
data
)
{
this
.
setCode
(
code
);
this
.
setMessage
(
message
);
this
.
setResult
(
result
);
}
public
Long
getId
()
{
return
id
;
}
public
void
setId
(
Long
id
)
{
this
.
id
=
id
;
}
public
ResultCode
getCode
()
{
return
code
;
}
public
void
setCode
(
ResultCode
code
)
{
this
.
code
=
code
;
}
public
String
getMessage
()
{
return
message
;
}
public
void
setMessage
(
String
message
)
{
this
.
message
=
message
;
}
public
Object
getResult
()
{
return
result
;
}
public
void
setResult
(
Object
result
)
{
this
.
result
=
result
;
}
}
src/main/java/com/jz/dmp/agent/ResultCode.java
0 → 100644
View file @
e340e546
package
com
.
jz
.
dmp
.
agent
;
public
enum
ResultCode
{
/** 成功 */
SUCCESS
(
"200"
,
"成功"
),
/** 没有登录 */
NOT_LOGIN
(
"400"
,
"没有登录"
),
/** 发生异常 */
EXCEPTION
(
"401"
,
"发生异常"
),
/** 系统错误 */
SYS_ERROR
(
"402"
,
"系统错误"
),
/** 参数错误 */
PARAMS_ERROR
(
"403"
,
"参数错误 "
),
/** 不支持当前请求方法 */
METHOD_NOT_ALLOWED
(
"405"
,
"不支持当前请求方法 "
),
/** 不支持或已经废弃 */
NOT_SUPPORTED
(
"410"
,
"不支持或已经废弃"
),
/** 不支持当前媒体类型 */
UNSUPPORTED_MEDIA_TYPE
(
"415"
,
"不支持当前媒体类型"
),
/** AuthCode错误 */
INVALID_AUTHCODE
(
"444"
,
"无效的AuthCode"
),
/** 太频繁的调用 */
TOO_FREQUENT
(
"445"
,
"太频繁的调用"
),
/** 未知的错误 */
UNKNOWN_ERROR
(
"499"
,
"未知错误"
),
/** 内部服务出错 */
INTERNAL_SERVER_ERROR
(
"500"
,
"内部服务出错-逻辑异常"
);
private
String
val
;
private
String
msg
;
private
ResultCode
(
String
value
,
String
msg
)
{
this
.
val
=
value
;
this
.
msg
=
msg
;
}
public
String
val
()
{
return
val
;
}
public
String
msg
()
{
return
msg
;
}
}
src/main/java/com/jz/dmp/modules/model/DmpProject.java
0 → 100644
View file @
e340e546
package
com
.
jz
.
dmp
.
modules
.
model
;
import
java.io.Serializable
;
import
java.util.Date
;
/**
* 项目信息(DmpProject)实体类
*
* @author makejava
* @since 2020-12-21 18:56:33
*/
public
class
DmpProject
implements
Serializable
{
private
static
final
long
serialVersionUID
=
-
21825960415558182L
;
/**
* ID
*/
private
Integer
id
;
/**
* 管理员帐号
*/
private
String
ownerId
;
/**
* 生产帐号
*/
private
String
productionId
;
/**
* 数据仓库帐号
*/
private
String
dataWarehouseId
;
/**
* 项目名称
*/
private
String
name
;
/**
* 项目显示名称
*/
private
String
displayName
;
/**
* 项目描述
*/
private
String
projectDesc
;
/**
* 发布目标
*/
private
Integer
publishTargetId
;
/**
* 启动调度周期
*/
private
String
isEnableScheduler
;
/**
* 允许在本项目中直接编辑任务和代码
*/
private
String
isEditTaskCode
;
/**
* 能否下载select结果
*/
private
String
isEnableSelect
;
/**
* 数据仓库项目名称
*/
private
String
dwName
;
/**
* 数据仓库访问身份类型
*/
private
String
dwAccessType
;
/**
* 使用ACL授权
*/
private
String
dwIsEnableAcl
;
/**
* 允许对象创建者访问对象
*/
private
String
dwIsEnableAccessObj
;
/**
* 允许对象创建者授权对象
*/
private
String
dwIsEnableAuthObj
;
/**
* 项目空间数据保护
*/
private
String
dwIsProtectData
;
/**
* 数据状态
*/
private
String
dataStatus
;
/**
* 创建用户ID
*/
private
String
createUserId
;
/**
* 数据创建时间
*/
private
Date
createTime
;
/**
* 创建用户ID
*/
private
String
updateUserId
;
private
String
impalaJdbcUrl
;
private
String
impalaMasterFqdn
;
/**
* 数据更新时间
*/
private
Date
updateTime
;
public
Integer
getId
()
{
return
id
;
}
public
void
setId
(
Integer
id
)
{
this
.
id
=
id
;
}
public
String
getOwnerId
()
{
return
ownerId
;
}
public
void
setOwnerId
(
String
ownerId
)
{
this
.
ownerId
=
ownerId
;
}
public
String
getProductionId
()
{
return
productionId
;
}
public
void
setProductionId
(
String
productionId
)
{
this
.
productionId
=
productionId
;
}
public
String
getDataWarehouseId
()
{
return
dataWarehouseId
;
}
public
void
setDataWarehouseId
(
String
dataWarehouseId
)
{
this
.
dataWarehouseId
=
dataWarehouseId
;
}
public
String
getName
()
{
return
name
;
}
public
void
setName
(
String
name
)
{
this
.
name
=
name
;
}
public
String
getDisplayName
()
{
return
displayName
;
}
public
void
setDisplayName
(
String
displayName
)
{
this
.
displayName
=
displayName
;
}
public
String
getProjectDesc
()
{
return
projectDesc
;
}
public
void
setProjectDesc
(
String
projectDesc
)
{
this
.
projectDesc
=
projectDesc
;
}
public
Integer
getPublishTargetId
()
{
return
publishTargetId
;
}
public
void
setPublishTargetId
(
Integer
publishTargetId
)
{
this
.
publishTargetId
=
publishTargetId
;
}
public
String
getIsEnableScheduler
()
{
return
isEnableScheduler
;
}
public
void
setIsEnableScheduler
(
String
isEnableScheduler
)
{
this
.
isEnableScheduler
=
isEnableScheduler
;
}
public
String
getIsEditTaskCode
()
{
return
isEditTaskCode
;
}
public
void
setIsEditTaskCode
(
String
isEditTaskCode
)
{
this
.
isEditTaskCode
=
isEditTaskCode
;
}
public
String
getIsEnableSelect
()
{
return
isEnableSelect
;
}
public
void
setIsEnableSelect
(
String
isEnableSelect
)
{
this
.
isEnableSelect
=
isEnableSelect
;
}
public
String
getDwName
()
{
return
dwName
;
}
public
void
setDwName
(
String
dwName
)
{
this
.
dwName
=
dwName
;
}
public
String
getDwAccessType
()
{
return
dwAccessType
;
}
public
void
setDwAccessType
(
String
dwAccessType
)
{
this
.
dwAccessType
=
dwAccessType
;
}
public
String
getDwIsEnableAcl
()
{
return
dwIsEnableAcl
;
}
public
void
setDwIsEnableAcl
(
String
dwIsEnableAcl
)
{
this
.
dwIsEnableAcl
=
dwIsEnableAcl
;
}
public
String
getDwIsEnableAccessObj
()
{
return
dwIsEnableAccessObj
;
}
public
void
setDwIsEnableAccessObj
(
String
dwIsEnableAccessObj
)
{
this
.
dwIsEnableAccessObj
=
dwIsEnableAccessObj
;
}
public
String
getDwIsEnableAuthObj
()
{
return
dwIsEnableAuthObj
;
}
public
void
setDwIsEnableAuthObj
(
String
dwIsEnableAuthObj
)
{
this
.
dwIsEnableAuthObj
=
dwIsEnableAuthObj
;
}
public
String
getDwIsProtectData
()
{
return
dwIsProtectData
;
}
public
void
setDwIsProtectData
(
String
dwIsProtectData
)
{
this
.
dwIsProtectData
=
dwIsProtectData
;
}
public
String
getDataStatus
()
{
return
dataStatus
;
}
public
void
setDataStatus
(
String
dataStatus
)
{
this
.
dataStatus
=
dataStatus
;
}
public
String
getCreateUserId
()
{
return
createUserId
;
}
public
void
setCreateUserId
(
String
createUserId
)
{
this
.
createUserId
=
createUserId
;
}
public
Date
getCreateTime
()
{
return
createTime
;
}
public
void
setCreateTime
(
Date
createTime
)
{
this
.
createTime
=
createTime
;
}
public
String
getUpdateUserId
()
{
return
updateUserId
;
}
public
void
setUpdateUserId
(
String
updateUserId
)
{
this
.
updateUserId
=
updateUserId
;
}
public
String
getImpalaJdbcUrl
()
{
return
impalaJdbcUrl
;
}
public
void
setImpalaJdbcUrl
(
String
impalaJdbcUrl
)
{
this
.
impalaJdbcUrl
=
impalaJdbcUrl
;
}
public
String
getImpalaMasterFqdn
()
{
return
impalaMasterFqdn
;
}
public
void
setImpalaMasterFqdn
(
String
impalaMasterFqdn
)
{
this
.
impalaMasterFqdn
=
impalaMasterFqdn
;
}
public
Date
getUpdateTime
()
{
return
updateTime
;
}
public
void
setUpdateTime
(
Date
updateTime
)
{
this
.
updateTime
=
updateTime
;
}
}
\ No newline at end of file
src/main/java/com/jz/dmp/modules/model/DmpProjectSystemInfo.java
0 → 100644
View file @
e340e546
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment