| | |
| | | |
| | | // check params |
| | | func checkServiceContractParams(serviceContract request.ServiceContract) (errCode int, result model.ServiceContract) { |
| | | if serviceContract.SignTime == "" { |
| | | return ecode.InvalidParams, result |
| | | } |
| | | |
| | | if serviceContract.Number == "" { |
| | | return ecode.InvalidParams, result |
| | | } |
| | | |
| | | if serviceContract.MemberId <= 0 { |
| | | return ecode.InvalidParams, result |
| | | } |
| | | //if serviceContract.SignTime == "" { |
| | | // return ecode.InvalidParams, result |
| | | //} |
| | | // |
| | | //if serviceContract.Number == "" { |
| | | // return ecode.InvalidParams, result |
| | | //} |
| | | // |
| | | //if serviceContract.MemberId <= 0 { |
| | | // return ecode.InvalidParams, result |
| | | //} |
| | | |
| | | t, err := checkTimeFormat(serviceContract.SignTime) |
| | | if err != nil { |