From 13194e787d51e4ce07dfc35341d536fb5db7aaa3 Mon Sep 17 00:00:00 2001
From: zhangqian <zhangqian@123.com>
Date: 星期五, 13 十月 2023 15:05:29 +0800
Subject: [PATCH] 服务回访单简单数据权限

---
 docs/docs.go |  217 +++++++++++++++++++++++++++++++++++++++--------------
 1 files changed, 158 insertions(+), 59 deletions(-)

diff --git a/docs/docs.go b/docs/docs.go
index 5098c36..049bf2e 100644
--- a/docs/docs.go
+++ b/docs/docs.go
@@ -5520,22 +5520,6 @@
                 "summary": "鑾峰彇鏀舵鍗曞垪琛�",
                 "parameters": [
                     {
-                        "type": "string",
-                        "name": "keyword",
-                        "in": "query"
-                    },
-                    {
-                        "enum": [
-                            ""
-                        ],
-                        "type": "string",
-                        "x-enum-varnames": [
-                            "ReceiptKeywordCustomerName"
-                        ],
-                        "name": "keywordType",
-                        "in": "query"
-                    },
-                    {
                         "type": "integer",
                         "description": "椤电爜",
                         "name": "page",
@@ -5548,14 +5532,34 @@
                         "in": "query"
                     },
                     {
+                        "type": "integer",
+                        "name": "sourceId",
+                        "in": "query"
+                    },
+                    {
                         "enum": [
-                            ""
+                            1,
+                            2,
+                            3,
+                            4,
+                            5
                         ],
-                        "type": "string",
+                        "type": "integer",
+                        "x-enum-comments": {
+                            "ReceiptSourceTypeChuKuDan": "鍑哄簱鍗昳t",
+                            "ReceiptSourceTypeCollectionPlan": "鏀舵璁″垝",
+                            "ReceiptSourceTypeInvoice": "閿�鍞彂绁�",
+                            "ReceiptSourceTypeSalesDetails": "閿�鍞槑缁嗗崟",
+                            "ReceiptSourceTypeServiceContract": "鏈嶅姟鍚堝悓"
+                        },
                         "x-enum-varnames": [
-                            "ReceiptQueryClassExpireLessThen60Days"
+                            "ReceiptSourceTypeSalesDetails",
+                            "ReceiptSourceTypeServiceContract",
+                            "ReceiptSourceTypeInvoice",
+                            "ReceiptSourceTypeCollectionPlan",
+                            "ReceiptSourceTypeChuKuDan"
                         ],
-                        "name": "queryClass",
+                        "name": "sourceType",
                         "in": "query"
                     }
                 ],
@@ -7836,9 +7840,27 @@
                 "parameters": [
                     {
                         "type": "integer",
-                        "description": "鏈嶅姟鍚堝悓id",
-                        "name": "serviceContractId",
-                        "in": "query"
+                        "name": "sourceId",
+                        "in": "query",
+                        "required": true
+                    },
+                    {
+                        "enum": [
+                            1,
+                            2
+                        ],
+                        "type": "integer",
+                        "x-enum-comments": {
+                            "CollectionSourceTypeSaleDetails": "閿�鍞槑缁�",
+                            "CollectionSourceTypeServiceContract": "鏈嶅姟鍚堝悓"
+                        },
+                        "x-enum-varnames": [
+                            "CollectionSourceTypeSaleDetails",
+                            "CollectionSourceTypeServiceContract"
+                        ],
+                        "name": "sourceType",
+                        "in": "query",
+                        "required": true
                     }
                 ],
                 "responses": {
@@ -10391,24 +10413,6 @@
                 "PaymentTypeQueryClassExpireLessThen60Days"
             ]
         },
-        "constvar.ReceiptKeywordType": {
-            "type": "string",
-            "enum": [
-                ""
-            ],
-            "x-enum-varnames": [
-                "ReceiptKeywordCustomerName"
-            ]
-        },
-        "constvar.ReceiptQueryClass": {
-            "type": "string",
-            "enum": [
-                ""
-            ],
-            "x-enum-varnames": [
-                "ReceiptQueryClassExpireLessThen60Days"
-            ]
-        },
         "constvar.ReceiptSourceType": {
             "type": "integer",
             "enum": [
@@ -10418,6 +10422,13 @@
                 4,
                 5
             ],
+            "x-enum-comments": {
+                "ReceiptSourceTypeChuKuDan": "鍑哄簱鍗昳t",
+                "ReceiptSourceTypeCollectionPlan": "鏀舵璁″垝",
+                "ReceiptSourceTypeInvoice": "閿�鍞彂绁�",
+                "ReceiptSourceTypeSalesDetails": "閿�鍞槑缁嗗崟",
+                "ReceiptSourceTypeServiceContract": "鏈嶅姟鍚堝悓"
+            },
             "x-enum-varnames": [
                 "ReceiptSourceTypeSalesDetails",
                 "ReceiptSourceTypeServiceContract",
@@ -10825,10 +10836,6 @@
         "model.Client": {
             "type": "object",
             "properties": {
-                "_": {
-                    "description": "The date when the item was deleted\nexample: 2023-08-10 15:48:25",
-                    "type": "string"
-                },
                 "business_scope": {
                     "type": "string"
                 },
@@ -10874,8 +10881,10 @@
                 "country_id": {
                     "type": "integer"
                 },
-                "created_at": {
-                    "description": "The date when the item was created\nexample: 2023-08-10 15:48:25",
+                "createTime": {
+                    "type": "string"
+                },
+                "creatorName": {
                     "type": "string"
                 },
                 "creator_id": {
@@ -10903,7 +10912,6 @@
                     }
                 },
                 "id": {
-                    "description": "The ID of the item\nexample: 1",
                     "type": "integer"
                 },
                 "industry": {
@@ -10960,8 +10968,7 @@
                 "service_member_id": {
                     "type": "integer"
                 },
-                "updated_at": {
-                    "description": "The date when the item was last updated\nexample: 2023-08-10 15:48:25",
+                "updateTime": {
                     "type": "string"
                 }
             }
@@ -11013,10 +11020,6 @@
         "model.CollectionProjection": {
             "type": "object",
             "properties": {
-                "_": {
-                    "description": "The date when the item was deleted\nexample: 2023-08-10 15:48:25",
-                    "type": "string"
-                },
                 "created_at": {
                     "description": "The date when the item was created\nexample: 2023-08-10 15:48:25",
                     "type": "string"
@@ -11205,10 +11208,6 @@
         "model.Contract": {
             "type": "object",
             "properties": {
-                "_": {
-                    "description": "The date when the item was deleted\nexample: 2023-08-10 15:48:25",
-                    "type": "string"
-                },
                 "client": {
                     "$ref": "#/definitions/model.Client"
                 },
@@ -11869,6 +11868,12 @@
                     "description": "瀹㈡埛id",
                     "type": "integer"
                 },
+                "createTime": {
+                    "type": "string"
+                },
+                "creatorName": {
+                    "type": "string"
+                },
                 "fileId": {
                     "description": "闄勪欢id",
                     "type": "integer"
@@ -11878,6 +11883,9 @@
                 },
                 "moneyType": {
                     "description": "甯佺",
+                    "type": "string"
+                },
+                "number": {
                     "type": "string"
                 },
                 "paymentType": {
@@ -11918,6 +11926,9 @@
                             "$ref": "#/definitions/constvar.ReceiptSourceType"
                         }
                     ]
+                },
+                "updateTime": {
+                    "type": "string"
                 }
             }
         },
@@ -12291,6 +12302,9 @@
                 "desc": {
                     "type": "string"
                 },
+                "detail_address": {
+                    "type": "string"
+                },
                 "followRecord": {
                     "type": "array",
                     "items": {
@@ -12341,6 +12355,9 @@
         "model.SalesRefund": {
             "type": "object",
             "properties": {
+                "Source": {
+                    "$ref": "#/definitions/model.SalesReturn"
+                },
                 "amountTotal": {
                     "description": "浠风◣鍚堣",
                     "type": "number"
@@ -12480,6 +12497,9 @@
                     "description": "閫�璐х姸鎬乮d",
                     "type": "integer"
                 },
+                "source": {
+                    "$ref": "#/definitions/model.SalesDetails"
+                },
                 "sourceId": {
                     "description": "婧愬崟id",
                     "type": "integer"
@@ -12571,6 +12591,14 @@
                 "percent": {
                     "description": "姣斾緥",
                     "type": "number"
+                },
+                "principal": {
+                    "description": "鏀舵璐熻矗浜篒D",
+                    "allOf": [
+                        {
+                            "$ref": "#/definitions/model.User"
+                        }
+                    ]
                 },
                 "principalId": {
                     "description": "鏀舵璐熻矗浜篒D",
@@ -12909,6 +12937,9 @@
                 "id": {
                     "type": "integer"
                 },
+                "number": {
+                    "type": "string"
+                },
                 "priorityLevel": {
                     "$ref": "#/definitions/model.PriorityLevel"
                 },
@@ -13204,11 +13235,19 @@
                     "description": "鐗╂枡绫诲瀷",
                     "type": "string"
                 },
+                "MaxInventory": {
+                    "description": "鏈�澶у簱瀛�",
+                    "type": "integer"
+                },
                 "MinInventory": {
                     "description": "瀹夊叏搴撳瓨",
                     "type": "integer"
                 },
                 "Name": {
+                    "type": "string"
+                },
+                "Node": {
+                    "description": "澶囨敞",
                     "type": "string"
                 },
                 "Number": {
@@ -13221,6 +13260,14 @@
                 "SalePrice": {
                     "description": "閿�鍞环鏍�",
                     "type": "number"
+                },
+                "Specs": {
+                    "description": "瑙勬牸",
+                    "type": "string"
+                },
+                "Type": {
+                    "description": "鍨嬪彿",
+                    "type": "string"
                 },
                 "Unit": {
                     "type": "string"
@@ -13945,6 +13992,12 @@
                     "description": "瀹㈡埛id",
                     "type": "integer"
                 },
+                "createTime": {
+                    "type": "string"
+                },
+                "creatorName": {
+                    "type": "string"
+                },
                 "fileId": {
                     "description": "闄勪欢id",
                     "type": "integer"
@@ -13954,6 +14007,9 @@
                 },
                 "moneyType": {
                     "description": "甯佺",
+                    "type": "string"
+                },
+                "number": {
                     "type": "string"
                 },
                 "paymentType": {
@@ -13994,6 +14050,9 @@
                             "$ref": "#/definitions/constvar.ReceiptSourceType"
                         }
                     ]
+                },
+                "updateTime": {
+                    "type": "string"
                 }
             }
         },
@@ -14271,6 +14330,10 @@
                     "description": "澶囨敞",
                     "type": "string"
                 },
+                "detail_address": {
+                    "description": "璇︾粏鍦板潃",
+                    "type": "string"
+                },
                 "member_id": {
                     "description": "閿�鍞礋璐d汉ID",
                     "type": "integer"
@@ -14395,6 +14458,12 @@
                     "type": "integer"
                 },
                 "salesDetailsId": {
+                    "type": "integer"
+                },
+                "serviceContractStatusId": {
+                    "type": "integer"
+                },
+                "serviceContractTypeId": {
                     "type": "integer"
                 },
                 "serviceTimes": {
@@ -15241,7 +15310,7 @@
                     "type": "integer"
                 },
                 "search_map": {
-                    "description": "鎼滅储鏉′欢: map[string]interface{}{\"name\": \"xxx\"}; {\"name\": \"瀹㈡埛鍚嶇О\", \"phone\": \"鎵嬫満鍙风爜\", \"detail_address\":\"璇︾粏鍦板潃\", \"next_visit_time\":\"涓嬪洖鍥炶鏃ユ湡\", \"member_name\": \"閿�鍞礋璐d汉\", \"client_status\": \"瀹㈡埛鐘舵�乗", \"client_level\": \"閲嶈绾у埆\"}",
+                    "description": "鎼滅储鏉′欢: map[string]interface{}{\"name\": \"xxx\"}; {\"name\": \"瀹㈡埛鍚嶇О\", \"phone\": \"鎵嬫満鍙风爜\", \"detail_address\":\"璇︾粏鍦板潃\", \"next_visit_time\":\"涓嬪洖鍥炶鏃ユ湡\", \"member_name\": \"閿�鍞礋璐d汉\", \"client_status\": \"瀹㈡埛鐘舵�乗", \"client_level\": \"閲嶈绾у埆\",\"representative\": \"娉曞畾浠h〃浜篭", \"registration_time\": \"娉ㄥ唽鏃堕棿\", \"business_scope\": \"缁忚惀鑼冨洿\", \"remark\": \"澶囨敞\", \"not_admin\":\"1:鎴戠殑瀹㈡埛; 2:admin瀹㈡埛\"}",
                     "type": "object",
                     "additionalProperties": true
                 }
@@ -17006,6 +17075,12 @@
                     "description": "瀹㈡埛id",
                     "type": "integer"
                 },
+                "createTime": {
+                    "type": "string"
+                },
+                "creatorName": {
+                    "type": "string"
+                },
                 "fileId": {
                     "description": "闄勪欢id",
                     "type": "integer"
@@ -17015,6 +17090,9 @@
                 },
                 "moneyType": {
                     "description": "甯佺",
+                    "type": "string"
+                },
+                "number": {
                     "type": "string"
                 },
                 "paymentType": {
@@ -17055,6 +17133,9 @@
                             "$ref": "#/definitions/constvar.ReceiptSourceType"
                         }
                     ]
+                },
+                "updateTime": {
+                    "type": "string"
                 }
             }
         },
@@ -17429,6 +17510,10 @@
                     "description": "澶囨敞",
                     "type": "string"
                 },
+                "detail_address": {
+                    "description": "璇︾粏鍦板潃",
+                    "type": "string"
+                },
                 "id": {
                     "type": "integer"
                 },
@@ -17604,6 +17689,14 @@
                     "description": "姣斾緥",
                     "type": "number"
                 },
+                "principal": {
+                    "description": "鏀舵璐熻矗浜篒D",
+                    "allOf": [
+                        {
+                            "$ref": "#/definitions/model.User"
+                        }
+                    ]
+                },
                 "principalId": {
                     "description": "鏀舵璐熻矗浜篒D",
                     "type": "integer"
@@ -17680,6 +17773,12 @@
                 "salesDetailsId": {
                     "type": "integer"
                 },
+                "serviceContractStatusId": {
+                    "type": "integer"
+                },
+                "serviceContractTypeId": {
+                    "type": "integer"
+                },
                 "serviceTimes": {
                     "type": "integer"
                 },

--
Gitblit v1.8.0