github.com/s7techlab/cckit@v0.10.5/examples/insurance/fixtures.go (about) 1 package insurance 2 3 import ( 4 "time" 5 6 "github.com/s7techlab/cckit/examples/insurance/app" 7 ) 8 9 var ( 10 // ContractType fixture 11 ContractType1 = ContractTypeDTO{ 12 UUID: `12345`, 13 ContractType: &app.ContractType{ 14 ShopType: `shop-type-1`, 15 FormulaPerDay: `aaa`, 16 MaxSumInsured: 12345, 17 TheftInsured: true, 18 Description: `some_description`, 19 Conditions: `some_conditions`, 20 Active: true, 21 MinDurationDays: 1, 22 MaxDurationDays: 5, 23 }} 24 25 ContractType2 = ContractTypeDTO{ 26 UUID: `7890`, 27 ContractType: &app.ContractType{ 28 ShopType: `shop-type-2`, 29 FormulaPerDay: `bbb`, 30 MaxSumInsured: 777, 31 TheftInsured: false, 32 Description: `once more description`, 33 Conditions: `once more conditions`, 34 Active: false, 35 MinDurationDays: 2, 36 MaxDurationDays: 10, 37 }} 38 39 // Contract fixture 40 Contract1 = CreateContractDTO{ 41 UUID: `xxx-aaa-bbb`, 42 ContractTypeUUID: `xxx-ddd-ccc`, 43 Username: `vitiko`, 44 Password: `Root123AsUsual`, 45 FirstName: `Victor`, 46 LastName: `Nosov`, 47 Item: app.Item{ 48 ID: 1, 49 Brand: `NoName`, 50 Model: `Model-XYZ`, 51 Price: 123.45, 52 Description: `Coolest thing ever`, 53 SerialNo: `ooo-999-222`, 54 }, 55 StartDate: time.Now(), 56 EndDate: time.Now(), 57 } 58 )