1 changed files with 33 additions and 0 deletions
@ -0,0 +1,33 @@ |
|||||
|
package assessment |
||||
|
|
||||
|
import ( |
||||
|
"github.com/flipped-aurora/gin-vue-admin/server/commonus" |
||||
|
"github.com/flipped-aurora/gin-vue-admin/server/global" |
||||
|
"github.com/flipped-aurora/gin-vue-admin/server/model/common/response" |
||||
|
"github.com/flipped-aurora/gin-vue-admin/server/model/testpage" |
||||
|
"github.com/gin-gonic/gin" |
||||
|
) |
||||
|
|
||||
|
//考核入口
|
||||
|
func (a *Assessment) Index(c *gin.Context) { |
||||
|
outPut := commonus.MapOut() |
||||
|
response.Result(0, outPut, "用户端获取成功", c) |
||||
|
} |
||||
|
|
||||
|
//获取要考核的列表
|
||||
|
func (a *Assessment) MyAssEssMentList(c *gin.Context) { |
||||
|
var requestData getAssEssList |
||||
|
err := c.ShouldBindJSON(&requestData) |
||||
|
if err != nil { |
||||
|
// response.Result(101, err, "参数错误!请重新提交!", c)
|
||||
|
// return
|
||||
|
} |
||||
|
if requestData.PageSize == 0 { |
||||
|
requestData.PageSize = 20 |
||||
|
} |
||||
|
if requestData.Page <= 0 { |
||||
|
requestData.Page = 1 |
||||
|
} |
||||
|
offSetPage := commonus.CalculatePages(requestData.Page, requestData.PageSize) |
||||
|
gormDb := global.GVA_DB_Master.Model(&testpage.WorkMan{}) |
||||
|
} |
||||
Loading…
Reference in new issue