lhj-tools 0.2.29 → 0.2.31
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/lhj/helper/dingtalk_helper.rb +8 -2
- data/lib/lhj/helper/yapi/yapi_helper.rb +10 -0
- data/lib/lhj/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 076d5ec66856ced7568622e7e19e173d6d7f08dd6d51de147719aca07a78948a
|
|
4
|
+
data.tar.gz: d9a323338b67946d2c507964aa7de067b23ae25a9ed95b4b66335cc8dafa8a4b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f78f99f701be41cef12335157d335a4173362b76c232cdd2f5200799e71ddb4e3ceae6ad6d3a8e022e6852b6a9ee72fe7c519a02cf2d12bcb774da8384b9557a
|
|
7
|
+
data.tar.gz: af1b07e7bf8f7f059f9044e78514155d5ba8916ac801a3f0d9dd3baaacbc70187b202a00ed053ea9a41790d6da6eaee2ea4378da6eddc9c1bb3dd3e569d39da7
|
|
@@ -241,7 +241,13 @@ module Lhj
|
|
|
241
241
|
send_group_message(token, msg_body) if msg_body
|
|
242
242
|
end
|
|
243
243
|
|
|
244
|
-
def self.
|
|
244
|
+
def self.update_file_with_api(conversation_id, upload_file, user_ids)
|
|
245
|
+
key = Lhj::IOSRobotConfig.app_key
|
|
246
|
+
secret = Lhj::IOSRobotConfig.app_secret
|
|
247
|
+
upload_file_and_notify(key, secret, upload_file, conversation_id, user_ids)
|
|
248
|
+
end
|
|
249
|
+
|
|
250
|
+
def self.send_markdown_message_with_api(conversation_id, title, markdown, user_ids)
|
|
245
251
|
key = Lhj::IOSRobotConfig.app_key
|
|
246
252
|
secret = Lhj::IOSRobotConfig.app_secret
|
|
247
253
|
token = get_token(key, secret)
|
|
@@ -251,7 +257,7 @@ module Lhj
|
|
|
251
257
|
send_group_message(token, msg_body)
|
|
252
258
|
end
|
|
253
259
|
|
|
254
|
-
def self.
|
|
260
|
+
def self.send_text_message_with_api(conversation_id, content, user_ids)
|
|
255
261
|
key = Lhj::IOSRobotConfig.app_key
|
|
256
262
|
secret = Lhj::IOSRobotConfig.app_secret
|
|
257
263
|
token = get_token(key, secret)
|
|
@@ -49,6 +49,16 @@ module Lhj
|
|
|
49
49
|
print_http_method(res_body['data'], project_info)
|
|
50
50
|
# print request mock data
|
|
51
51
|
print_mock_request_data(req_models) if !req_models.nil? && !req_models.empty?
|
|
52
|
+
model_result
|
|
53
|
+
end
|
|
54
|
+
|
|
55
|
+
def model_result
|
|
56
|
+
{
|
|
57
|
+
interface: @h_file_array.join("\n"),
|
|
58
|
+
implement: @m_file_array.join("\n"),
|
|
59
|
+
service: @service_content,
|
|
60
|
+
mock: @req_mock_array.join("\n")
|
|
61
|
+
}
|
|
52
62
|
end
|
|
53
63
|
|
|
54
64
|
def save_to_file
|
data/lib/lhj/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: lhj-tools
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.2.
|
|
4
|
+
version: 0.2.31
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- lihaijian
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2023-03-
|
|
11
|
+
date: 2023-03-27 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: xcodeproj
|