23 lines
467 B
Go
23 lines
467 B
Go
package controller
|
|
|
|
import (
|
|
"net/http"
|
|
"yintai-api/app/api/request"
|
|
"yintai-api/app/api/service"
|
|
err2 "yintai-api/app/common/err"
|
|
"yintai-api/app/common/response"
|
|
|
|
"github.com/gin-gonic/gin"
|
|
)
|
|
|
|
type Process struct{}
|
|
|
|
func (r *Process) List(ctx *gin.Context) {
|
|
var req request.ProcessList2
|
|
if err := ctx.Bind(&req); err != nil {
|
|
err2.ParamErr(err)
|
|
}
|
|
res, count := new(service.Process).List(req)
|
|
ctx.JSON(http.StatusOK, response.NewListRsp(count, res))
|
|
}
|