json
This commit is contained in:
parent
6725d84806
commit
ce50880530
|
@ -33,15 +33,15 @@ type SyncCheckin struct {
|
||||||
}
|
}
|
||||||
|
|
||||||
type Checkin struct {
|
type Checkin struct {
|
||||||
Id string
|
Id string `json:"id"`
|
||||||
Username string
|
Username string `json:"username"`
|
||||||
Day string
|
Day string `json:"day"`
|
||||||
Month string
|
Month string `json:"month"`
|
||||||
Exception string
|
Exception string `json:"exception"`
|
||||||
Rawdata string
|
Rawdata string `json:"rawdata"`
|
||||||
StartTime string
|
StartTime string `json:"start_time"`
|
||||||
EndTime string
|
EndTime string `json:"end_time"`
|
||||||
CreateTime string
|
CreateTime string `json:"create_time"`
|
||||||
}
|
}
|
||||||
|
|
||||||
func (c *Checkin) From(m *model.Checkin) {
|
func (c *Checkin) From(m *model.Checkin) {
|
||||||
|
|
|
@ -12,7 +12,7 @@ type Checkin struct {
|
||||||
}
|
}
|
||||||
|
|
||||||
func (c *Checkin) List(sess *session.AdminSession, req *api.ListCheckin) (int64, interface{}) {
|
func (c *Checkin) List(sess *session.AdminSession, req *api.ListCheckin) (int64, interface{}) {
|
||||||
|
req.Default()
|
||||||
checkts, total, err := dao.NewCheckinDao().QueryAdmin(req.Page, req.Size, sess.GetCorpId(), req.Username, req.StartDay, req.EndDay)
|
checkts, total, err := dao.NewCheckinDao().QueryAdmin(req.Page, req.Size, sess.GetCorpId(), req.Username, req.StartDay, req.EndDay)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
panic(config.ErrDb.New().Append(err))
|
panic(config.ErrDb.New().Append(err))
|
||||||
|
|
Loading…
Reference in New Issue