Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
I
ios1x
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
cemarose
ios1x
Commits
6c9ff8a5
Commit
6c9ff8a5
authored
7 years ago
by
lee
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改CoreData
parent
b9fcf3f5
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
2 deletions
+8
-2
KWMShopCartData.m
iCemarose/Class/CoreData/KWMShopCartData.m
+2
-0
KWMShopCartItem+CoreDataProperties.h
...arose/Class/CoreData/KWMShopCartItem+CoreDataProperties.h
+1
-0
KWMShopCartItem+CoreDataProperties.m
...arose/Class/CoreData/KWMShopCartItem+CoreDataProperties.m
+1
-0
contents
...DB_shopCart.xcdatamodeld/DB_shopCart.xcdatamodel/contents
+4
-2
No files found.
iCemarose/Class/CoreData/KWMShopCartData.m
View file @
6c9ff8a5
...
@@ -122,6 +122,7 @@
...
@@ -122,6 +122,7 @@
result
.
size
=
shopCartModel
.
size
;
result
.
size
=
shopCartModel
.
size
;
result
.
quantity
=
shopCartModel
.
quantity
;
result
.
quantity
=
shopCartModel
.
quantity
;
result
.
price
=
shopCartModel
.
price
;
result
.
price
=
shopCartModel
.
price
;
result
.
product_id
=
shopCartModel
.
product_id
.
stringValue
;
result
.
shopCartDict
=
shopCartModel
.
shopCartDict
;
result
.
shopCartDict
=
shopCartModel
.
shopCartDict
;
}
}
return
result
;
return
result
;
...
@@ -139,6 +140,7 @@
...
@@ -139,6 +140,7 @@
result
.
size
=
shopCartItem
.
size
;
result
.
size
=
shopCartItem
.
size
;
result
.
quantity
=
shopCartItem
.
quantity
;
result
.
quantity
=
shopCartItem
.
quantity
;
result
.
shopCartDict
=
shopCartItem
.
shopCartDict
;
result
.
shopCartDict
=
shopCartItem
.
shopCartDict
;
result
.
product_id
=
@
(
shopCartItem
.
product_id
.
integerValue
);
return
result
;
return
result
;
}
}
...
...
This diff is collapsed.
Click to expand it.
iCemarose/Class/CoreData/KWMShopCartItem+CoreDataProperties.h
View file @
6c9ff8a5
...
@@ -21,6 +21,7 @@ NS_ASSUME_NONNULL_BEGIN
...
@@ -21,6 +21,7 @@ NS_ASSUME_NONNULL_BEGIN
@property
(
nullable
,
nonatomic
,
copy
)
NSString
*
brand
;
@property
(
nullable
,
nonatomic
,
copy
)
NSString
*
brand
;
@property
(
nullable
,
nonatomic
,
copy
)
NSString
*
name
;
@property
(
nullable
,
nonatomic
,
copy
)
NSString
*
name
;
@property
(
nullable
,
nonatomic
,
copy
)
NSString
*
size
;
@property
(
nullable
,
nonatomic
,
copy
)
NSString
*
size
;
@property
(
nullable
,
nonatomic
,
copy
)
NSString
*
product_id
;
@property
(
nonatomic
)
NSInteger
quantity
;
@property
(
nonatomic
)
NSInteger
quantity
;
@property
(
nonatomic
)
float
price
;
@property
(
nonatomic
)
float
price
;
@property
(
nullable
,
nonatomic
,
retain
)
NSDictionary
*
shopCartDict
;
@property
(
nullable
,
nonatomic
,
retain
)
NSDictionary
*
shopCartDict
;
...
...
This diff is collapsed.
Click to expand it.
iCemarose/Class/CoreData/KWMShopCartItem+CoreDataProperties.m
View file @
6c9ff8a5
...
@@ -18,6 +18,7 @@
...
@@ -18,6 +18,7 @@
@dynamic
imageStr
;
@dynamic
imageStr
;
@dynamic
brand
;
@dynamic
brand
;
@dynamic
name
;
@dynamic
name
;
@dynamic
product_id
;
@dynamic
size
;
@dynamic
size
;
@dynamic
quantity
;
@dynamic
quantity
;
@dynamic
price
;
@dynamic
price
;
...
...
This diff is collapsed.
Click to expand it.
iCemarose/Class/DB_shopCart.xcdatamodeld/DB_shopCart.xcdatamodel/contents
View file @
6c9ff8a5
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<model
type=
"com.apple.IDECoreDataModeler.DataModel"
documentVersion=
"1.0"
lastSavedToolsVersion=
"1
1232"
systemVersion=
"15G1004
"
minimumToolsVersion=
"Automatic"
sourceLanguage=
"Objective-C"
userDefinedModelVersionIdentifier=
""
>
<model
type=
"com.apple.IDECoreDataModeler.DataModel"
documentVersion=
"1.0"
lastSavedToolsVersion=
"1
2141"
systemVersion=
"16E195
"
minimumToolsVersion=
"Automatic"
sourceLanguage=
"Objective-C"
userDefinedModelVersionIdentifier=
""
>
<entity
name=
"KWMShopCartItem"
representedClassName=
"KWMShopCartItem"
syncable=
"YES"
>
<entity
name=
"KWMShopCartItem"
representedClassName=
"KWMShopCartItem"
syncable=
"YES"
>
<attribute
name=
"brand"
optional=
"YES"
attributeType=
"String"
syncable=
"YES"
/>
<attribute
name=
"brand"
optional=
"YES"
attributeType=
"String"
syncable=
"YES"
/>
<attribute
name=
"identifier"
optional=
"YES"
attributeType=
"String"
syncable=
"YES"
/>
<attribute
name=
"identifier"
optional=
"YES"
attributeType=
"String"
syncable=
"YES"
/>
<attribute
name=
"imageStr"
optional=
"YES"
attributeType=
"String"
syncable=
"YES"
/>
<attribute
name=
"imageStr"
optional=
"YES"
attributeType=
"String"
syncable=
"YES"
/>
<attribute
name=
"name"
optional=
"YES"
attributeType=
"String"
syncable=
"YES"
/>
<attribute
name=
"name"
optional=
"YES"
attributeType=
"String"
syncable=
"YES"
/>
<attribute
name=
"price"
optional=
"YES"
attributeType=
"Float"
defaultValueString=
"0.0"
usesScalarValueType=
"YES"
syncable=
"YES"
/>
<attribute
name=
"price"
optional=
"YES"
attributeType=
"Float"
defaultValueString=
"0.0"
usesScalarValueType=
"YES"
syncable=
"YES"
/>
<attribute
name=
"product_id"
optional=
"YES"
attributeType=
"String"
syncable=
"YES"
/>
<attribute
name=
"quantity"
optional=
"YES"
attributeType=
"Integer 32"
defaultValueString=
"0"
usesScalarValueType=
"YES"
syncable=
"YES"
/>
<attribute
name=
"quantity"
optional=
"YES"
attributeType=
"Integer 32"
defaultValueString=
"0"
usesScalarValueType=
"YES"
syncable=
"YES"
/>
<attribute
name=
"shopCartDict"
optional=
"YES"
attributeType=
"Transformable"
syncable=
"YES"
/>
<attribute
name=
"shopCartDict"
optional=
"YES"
attributeType=
"Transformable"
syncable=
"YES"
/>
<attribute
name=
"size"
optional=
"YES"
attributeType=
"String"
syncable=
"YES"
/>
<attribute
name=
"size"
optional=
"YES"
attributeType=
"String"
syncable=
"YES"
/>
</entity>
</entity>
<elements>
<elements>
<element
name=
"KWMShopCartItem"
positionX=
"-63"
positionY=
"-18"
width=
"128"
height=
"1
65
"
/>
<element
name=
"KWMShopCartItem"
positionX=
"-63"
positionY=
"-18"
width=
"128"
height=
"1
80
"
/>
</elements>
</elements>
</model>
</model>
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment