From 71ef9fb8b4de2160a05512047cb2a5d99d7dad16 Mon Sep 17 00:00:00 2001 From: jiangyong27 Date: Thu, 13 Mar 2025 20:36:09 +0800 Subject: [PATCH] extra --- server/api/salary.go | 2 ++ 1 file changed, 2 insertions(+) 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) {