Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gic-platform-auth
Overview
Overview
Details
Activity
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
base_platform_enterprise
gic-platform-auth
Commits
dd9fed5f
Commit
dd9fed5f
authored
Nov 04, 2019
by
guojuxing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
协作人接口
parent
b0e2cfd5
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
399 additions
and
0 deletions
+399
-0
CollaboratorDTO.java
...h-api/src/main/java/com/gic/auth/dto/CollaboratorDTO.java
+173
-0
CollaboratorListDTO.java
...i/src/main/java/com/gic/auth/dto/CollaboratorListDTO.java
+141
-0
CollaboratorListQO.java
...api/src/main/java/com/gic/auth/qo/CollaboratorListQO.java
+48
-0
CollaboratorApiService.java
...ain/java/com/gic/auth/service/CollaboratorApiService.java
+37
-0
No files found.
gic-platform-auth-api/src/main/java/com/gic/auth/dto/CollaboratorDTO.java
0 → 100644
View file @
dd9fed5f
package
com
.
gic
.
auth
.
dto
;
import
javax.validation.constraints.NotBlank
;
import
javax.validation.constraints.NotNull
;
import
java.io.Serializable
;
import
java.util.Date
;
/**
* 协作人
* @ClassName: CollaboratorDTO
* @Description:
* @author guojuxing
* @date 2019/11/1 4:12 PM
*/
public
class
CollaboratorDTO
implements
Serializable
{
private
static
final
long
serialVersionUID
=
2462517418806290625L
;
/**
* 新增参数校验分组
*/
public
interface
SaveValid
{
}
/**
* ID
*/
private
Integer
collaboratorId
;
/**
* 名称
*/
@NotBlank
(
message
=
"协作人名称不能为空"
,
groups
=
{
SaveValid
.
class
})
private
String
collaboratorName
;
/**
* 商户
*/
@NotNull
(
message
=
"商户ID不能为空"
,
groups
=
{
SaveValid
.
class
})
private
Integer
enterpriseId
;
/**
* 手机号码
*/
@NotBlank
(
message
=
"手机号码不能为空"
,
groups
=
{
SaveValid
.
class
})
private
String
phone
;
/**
* 应用ID
*/
@NotNull
(
message
=
"协作应用ID不能为空"
,
groups
=
{
SaveValid
.
class
})
private
String
appId
;
/**
* 应用名称
*/
@NotBlank
(
message
=
"协作应用名称不能为空"
,
groups
=
{
SaveValid
.
class
})
private
String
appName
;
/**
* 添加人名称
*/
@NotBlank
(
message
=
"添加人名称不能为空"
,
groups
=
{
SaveValid
.
class
})
private
String
creator
;
/**
* 子应用ids,可以多选,用_隔开_2_3_
*/
private
String
subAppIds
;
/**
* 状态: 0:无效 1:youxiao
*/
private
Integer
status
;
/**
* 创建时间
*/
private
Date
createTime
;
/**
* 更新时间
*/
private
Date
updateTime
;
public
Integer
getCollaboratorId
()
{
return
collaboratorId
;
}
public
void
setCollaboratorId
(
Integer
collaboratorId
)
{
this
.
collaboratorId
=
collaboratorId
;
}
public
String
getCollaboratorName
()
{
return
collaboratorName
;
}
public
void
setCollaboratorName
(
String
collaboratorName
)
{
this
.
collaboratorName
=
collaboratorName
;
}
public
Integer
getEnterpriseId
()
{
return
enterpriseId
;
}
public
void
setEnterpriseId
(
Integer
enterpriseId
)
{
this
.
enterpriseId
=
enterpriseId
;
}
public
String
getPhone
()
{
return
phone
;
}
public
void
setPhone
(
String
phone
)
{
this
.
phone
=
phone
;
}
public
String
getAppId
()
{
return
appId
;
}
public
void
setAppId
(
String
appId
)
{
this
.
appId
=
appId
;
}
public
String
getAppName
()
{
return
appName
;
}
public
void
setAppName
(
String
appName
)
{
this
.
appName
=
appName
;
}
public
String
getCreator
()
{
return
creator
;
}
public
void
setCreator
(
String
creator
)
{
this
.
creator
=
creator
;
}
public
String
getSubAppIds
()
{
return
subAppIds
;
}
public
void
setSubAppIds
(
String
subAppIds
)
{
this
.
subAppIds
=
subAppIds
;
}
public
Integer
getStatus
()
{
return
status
;
}
public
void
setStatus
(
Integer
status
)
{
this
.
status
=
status
;
}
public
Date
getCreateTime
()
{
return
createTime
;
}
public
void
setCreateTime
(
Date
createTime
)
{
this
.
createTime
=
createTime
;
}
public
Date
getUpdateTime
()
{
return
updateTime
;
}
public
void
setUpdateTime
(
Date
updateTime
)
{
this
.
updateTime
=
updateTime
;
}
}
gic-platform-auth-api/src/main/java/com/gic/auth/dto/CollaboratorListDTO.java
0 → 100644
View file @
dd9fed5f
package
com
.
gic
.
auth
.
dto
;
import
java.io.Serializable
;
import
java.util.Date
;
/**
* 协作人列表
* @ClassName: CollaboratorListDTO
* @Description:
* @author guojuxing
* @date 2019/11/4 10:16 AM
*/
public
class
CollaboratorListDTO
implements
Serializable
{
private
static
final
long
serialVersionUID
=
1004985676652598819L
;
/**
* ID
*/
private
Integer
collaboratorId
;
/**
* 名称
*/
private
String
collaboratorName
;
/**
* 商户
*/
private
Integer
enterpriseId
;
private
String
enterpriseName
;
/**
* 手机号码
*/
private
String
phone
;
/**
* 应用ID
*/
private
String
appId
;
/**
* 应用名称
*/
private
String
appName
;
/**
* 添加人名称
*/
private
String
creator
;
/**
* 状态: 0:无效 1:youxiao
*/
private
Integer
status
;
/**
* 创建时间
*/
private
Date
createTime
;
public
Integer
getCollaboratorId
()
{
return
collaboratorId
;
}
public
void
setCollaboratorId
(
Integer
collaboratorId
)
{
this
.
collaboratorId
=
collaboratorId
;
}
public
String
getCollaboratorName
()
{
return
collaboratorName
;
}
public
void
setCollaboratorName
(
String
collaboratorName
)
{
this
.
collaboratorName
=
collaboratorName
;
}
public
Integer
getEnterpriseId
()
{
return
enterpriseId
;
}
public
void
setEnterpriseId
(
Integer
enterpriseId
)
{
this
.
enterpriseId
=
enterpriseId
;
}
public
String
getEnterpriseName
()
{
return
enterpriseName
;
}
public
void
setEnterpriseName
(
String
enterpriseName
)
{
this
.
enterpriseName
=
enterpriseName
;
}
public
String
getPhone
()
{
return
phone
;
}
public
void
setPhone
(
String
phone
)
{
this
.
phone
=
phone
;
}
public
String
getAppId
()
{
return
appId
;
}
public
void
setAppId
(
String
appId
)
{
this
.
appId
=
appId
;
}
public
String
getAppName
()
{
return
appName
;
}
public
void
setAppName
(
String
appName
)
{
this
.
appName
=
appName
;
}
public
String
getCreator
()
{
return
creator
;
}
public
void
setCreator
(
String
creator
)
{
this
.
creator
=
creator
;
}
public
Integer
getStatus
()
{
return
status
;
}
public
void
setStatus
(
Integer
status
)
{
this
.
status
=
status
;
}
public
Date
getCreateTime
()
{
return
createTime
;
}
public
void
setCreateTime
(
Date
createTime
)
{
this
.
createTime
=
createTime
;
}
}
gic-platform-auth-api/src/main/java/com/gic/auth/qo/CollaboratorListQO.java
0 → 100644
View file @
dd9fed5f
package
com
.
gic
.
auth
.
qo
;
import
com.gic.enterprise.qo.PageQO
;
/**
* 协作人列表查询参数
* @ClassName: CollaboratorListQO
* @Description:
* @author guojuxing
* @date 2019/11/4 10:21 AM
*/
public
class
CollaboratorListQO
extends
PageQO
{
private
static
final
long
serialVersionUID
=
-
4366009449691269184L
;
/**
* 协作人名称/手机号码/商户名称
*/
private
String
search
;
/**
* 应用Id,多选,英文逗号隔开
*/
private
String
appId
;
private
Integer
status
;
public
String
getSearch
()
{
return
search
;
}
public
void
setSearch
(
String
search
)
{
this
.
search
=
search
;
}
public
String
getAppId
()
{
return
appId
;
}
public
void
setAppId
(
String
appId
)
{
this
.
appId
=
appId
;
}
public
Integer
getStatus
()
{
return
status
;
}
public
void
setStatus
(
Integer
status
)
{
this
.
status
=
status
;
}
}
gic-platform-auth-api/src/main/java/com/gic/auth/service/CollaboratorApiService.java
0 → 100644
View file @
dd9fed5f
package
com
.
gic
.
auth
.
service
;
import
com.gic.api.base.commons.Page
;
import
com.gic.api.base.commons.ServiceResponse
;
import
com.gic.auth.dto.CollaboratorDTO
;
import
com.gic.auth.dto.CollaboratorListDTO
;
import
com.gic.auth.qo.CollaboratorListQO
;
/**
* 协作人接口
* @ClassName: CollaboratorApiService
* @Description:
* @author guojuxing
* @date 2019/11/1 4:15 PM
*/
public
interface
CollaboratorApiService
{
/**
* 新增协作人
* @Title: save
* @Description:
* @author guojuxing
* @param dto
* @return com.gic.api.base.commons.ServiceResponse<java.lang.Integer>
*/
ServiceResponse
<
Integer
>
save
(
CollaboratorDTO
dto
);
/**
* 分页查询协作人泪奔
* @Title: page
* @Description:
* @author guojuxing
* @param params
* @return com.gic.api.base.commons.ServiceResponse<com.gic.api.base.commons.Page<com.gic.auth.dto.CollaboratorListDTO>>
*/
ServiceResponse
<
Page
<
CollaboratorListDTO
>>
page
(
CollaboratorListQO
params
);
}
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