Showing
1 changed file
with
5 additions
and
37 deletions
@@ -39,47 +39,15 @@ shopRelation的json格式为: | @@ -39,47 +39,15 @@ shopRelation的json格式为: | ||
39 | "agreementEndTime":1482076800 | 39 | "agreementEndTime":1482076800 |
40 | } | 40 | } |
41 | ] | 41 | ] |
42 | - | 42 | +``` |
43 | + | ||
43 | ### 返回 | 44 | ### 返回 |
45 | +返回码code为200就是成功,其余为失败。 | ||
44 | 46 | ||
45 | ``` json | 47 | ``` json |
46 | { | 48 | { |
47 | - "code":200, | ||
48 | - "message":"创建成功", | ||
49 | - "data":{ | ||
50 | - "shopId":12 | ||
51 | - } | ||
52 | -} | ||
53 | -{ | ||
54 | - "code":500, | ||
55 | - "message":"创建失败", | ||
56 | - "data":{ | ||
57 | - "shopId":-12 | ||
58 | - } | ||
59 | -} | ||
60 | -{ | ||
61 | - "code":500 | ||
62 | - "message":"shop_name is null" | ||
63 | -} | ||
64 | -{ | ||
65 | - "code":500 | ||
66 | - "message":"Sorry,店铺名已存在" | ||
67 | -} | ||
68 | -{ | ||
69 | - "code":500 | ||
70 | - "message":"shop_domain is null" | ||
71 | -} | ||
72 | -{ | ||
73 | - "code":500 | ||
74 | - "message":"Sorry,店铺域名已存在" | ||
75 | -} | ||
76 | -{ | ||
77 | - "code":500 | ||
78 | - "message":"shop_admin is null" | ||
79 | -} | ||
80 | -{ | ||
81 | - "code":500 | ||
82 | - "message":"shop_relation is null" | 49 | + "code": 200, |
50 | + "message": "success." | ||
83 | } | 51 | } |
84 | ``` | 52 | ``` |
85 | 53 |
-
Please register or login to post a comment