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
751cc287
Commit
751cc287
authored
Oct 28, 2019
by
guojuxing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
账号分组接口
parent
f4e9872b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
180 additions
and
0 deletions
+180
-0
AccountGroupDTO.java
...h-api/src/main/java/com/gic/auth/dto/AccountGroupDTO.java
+124
-0
AccountGroupApiService.java
...ain/java/com/gic/auth/service/AccountGroupApiService.java
+56
-0
No files found.
gic-platform-auth-api/src/main/java/com/gic/auth/dto/AccountGroupDTO.java
0 → 100644
View file @
751cc287
package
com
.
gic
.
auth
.
dto
;
import
javax.validation.constraints.NotBlank
;
import
javax.validation.constraints.NotNull
;
import
java.io.Serializable
;
import
java.util.Date
;
/**
* 账号分组
* @ClassName: AccountGroupDTO
* @Description:
* @author guojuxing
* @date 2019/10/28 4:08 PM
*/
public
class
AccountGroupDTO
implements
Serializable
{
private
static
final
long
serialVersionUID
=
1726702207759707513L
;
/**
* 新增参数校验分组
*/
public
interface
SaveValid
{
}
/**
* 编辑参数校验分组
*/
public
interface
EditValid
{
}
/**
* ID
*/
@NotNull
(
message
=
"账号分组ID不能为空"
,
groups
=
{
EditValid
.
class
})
private
Integer
accountGroupId
;
/**
* 账号名称
*/
@NotBlank
(
message
=
"账号分组名称不能为空"
,
groups
=
{
SaveValid
.
class
,
EditValid
.
class
})
private
String
accountGroupName
;
/**
*
*/
@NotNull
(
message
=
"商户ID不能为空"
,
groups
=
{
SaveValid
.
class
})
private
Integer
enterpriseId
;
/**
* 1:有效 0:无效
*/
private
Integer
status
;
/**
* 排序
*/
private
Integer
sort
;
/**
* 创建时间
*/
private
Date
createTime
;
/**
* 更新时间
*/
private
Date
updateTime
;
public
Integer
getAccountGroupId
()
{
return
accountGroupId
;
}
public
void
setAccountGroupId
(
Integer
accountGroupId
)
{
this
.
accountGroupId
=
accountGroupId
;
}
public
String
getAccountGroupName
()
{
return
accountGroupName
;
}
public
void
setAccountGroupName
(
String
accountGroupName
)
{
this
.
accountGroupName
=
accountGroupName
;
}
public
Integer
getEnterpriseId
()
{
return
enterpriseId
;
}
public
void
setEnterpriseId
(
Integer
enterpriseId
)
{
this
.
enterpriseId
=
enterpriseId
;
}
public
Integer
getStatus
()
{
return
status
;
}
public
void
setStatus
(
Integer
status
)
{
this
.
status
=
status
;
}
public
Integer
getSort
()
{
return
sort
;
}
public
void
setSort
(
Integer
sort
)
{
this
.
sort
=
sort
;
}
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/service/AccountGroupApiService.java
0 → 100644
View file @
751cc287
package
com
.
gic
.
auth
.
service
;
import
com.gic.api.base.commons.ServiceResponse
;
import
com.gic.auth.dto.AccountGroupDTO
;
import
java.util.List
;
/**
* 账号分组
* @ClassName: AccountGroupApiService
* @Description:
* @author guojuxing
* @date 2019/10/28 4:09 PM
*/
public
interface
AccountGroupApiService
{
/**
* 账号分组新增
* @Title: save
* @Description:
* @author guojuxing
* @param dto
* @return com.gic.api.base.commons.ServiceResponse<java.lang.Integer>
*/
ServiceResponse
<
Integer
>
save
(
AccountGroupDTO
dto
);
/**
* 编辑账号分组
* @Title: update
* @Description:
* @author guojuxing
* @param dto
* @return com.gic.api.base.commons.ServiceResponse<java.lang.Integer>
*/
ServiceResponse
<
Integer
>
update
(
AccountGroupDTO
dto
);
/**
* 查询账号分组列表数据
* @Title: listAccountGroupByEnterpriseId
* @Description:
* @author guojuxing
* @param enterpriseId
* @return com.gic.api.base.commons.ServiceResponse<java.util.List<com.gic.auth.dto.AccountGroupDTO>>
*/
ServiceResponse
<
List
<
AccountGroupDTO
>>
listAccountGroupByEnterpriseId
(
Integer
enterpriseId
);
/**
* 删除账号分组,并且删除分组内的组员关系
* @Title: deleteByAccountGroupId
* @Description:
* @author guojuxing
* @param accountGroupId
* @return com.gic.api.base.commons.ServiceResponse<java.lang.Void>
*/
ServiceResponse
<
Void
>
deleteByAccountGroupId
(
Integer
accountGroupId
);
}
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