You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
349 B
18 lines
349 B
package roleapi
|
|
|
|
import (
|
|
"github.com/gin-gonic/gin"
|
|
)
|
|
|
|
// 获取角色列表
|
|
func (a *ApiModer) GetRoleContList(c *gin.Context) {
|
|
var requestData GetRoleCont
|
|
c.ShouldBindJSON(&requestData)
|
|
if requestData.Page == 0 {
|
|
requestData.Page = 1
|
|
}
|
|
if requestData.PageSize == 0 {
|
|
requestData.PageSize = 20
|
|
}
|
|
// gormDb := overall.CONSTANT_DB_HR
|
|
}
|
|
|