diff --git a/server/api/salary.go b/server/api/salary.go index 991ffbd..7505dea 100644 --- a/server/api/salary.go +++ b/server/api/salary.go @@ -27,6 +27,7 @@ type Salary struct { OtherDeduct string `json:"other_deduct,omitempty"` CreateTime string `json:"create_time,omitempty"` UpdateTime string `json:"update_time,omitempty"` + Extra string `json:"extra"` } type CreateSalaryReq struct { @@ -65,6 +66,7 @@ func (s *Salary) From(m *model.StaffSalary) { s.OtherDeduct = goutil.FormatFloat(m.OtherDeduct) s.CreateTime = goutil.TimeToDateTime(m.CreateTime) s.UpdateTime = goutil.TimeToDateTime(m.UpdateTime) + s.Extra = m.Extra } func (s *Salary) Add(o *Salary) {