| | |
| | | package test |
| | | |
| | | import ( |
| | | "github.com/flipped-aurora/gin-vue-admin/server/global" |
| | | "github.com/flipped-aurora/gin-vue-admin/server/model/common/request" |
| | | "github.com/flipped-aurora/gin-vue-admin/server/model/test" |
| | | testReq "github.com/flipped-aurora/gin-vue-admin/server/model/test/request" |
| | | "srm/global" |
| | | "srm/model/common/request" |
| | | "srm/model/test" |
| | | testReq "srm/model/test/request" |
| | | ) |
| | | |
| | | type ContractService struct { |
| | |
| | | // UpdateContract 更新Contract记录 |
| | | // Author [piexlmax](https://github.com/piexlmax) |
| | | func (conService *ContractService) UpdateContract(con test.Contract) (err error) { |
| | | err = global.GVA_DB.Save(&con).Error |
| | | err = global.GVA_DB.Updates(&con).Error |
| | | return err |
| | | } |
| | | |