lhj-tools 0.2.29 → 0.2.31

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c152ebec555059e05a8fe9ab9496de443546851059e51ae9799b3e8918dfee41
4
- data.tar.gz: f73adfd0888a178b7b8d2ed60411fdd3b1b7a0673038b7e975173b7d4d375bc3
3
+ metadata.gz: 076d5ec66856ced7568622e7e19e173d6d7f08dd6d51de147719aca07a78948a
4
+ data.tar.gz: d9a323338b67946d2c507964aa7de067b23ae25a9ed95b4b66335cc8dafa8a4b
5
5
  SHA512:
6
- metadata.gz: 659978a2a7ce730bed42798f2ba53e178dfb8078b468286374efdbfc2d6849e6fe86f76b5d1300815904409670231a286b1a9b6dc8f37903c1647b24565fc979
7
- data.tar.gz: e3162198e303cf3a5298d0ca8b417807adc6b71f4317c40ef16c9d7d60091557bc876ecd4292141f2ab41d21555d0d235a251380fa6c84ee38f44de8c368a81e
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.markdown_notify(conversation_id, user_ids, title, markdown)
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.text_notify(conversation_id, user_ids, content)
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Lhj
4
- VERSION = '0.2.29'
4
+ VERSION = '0.2.31'
5
5
  end
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.29
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-15 00:00:00.000000000 Z
11
+ date: 2023-03-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: xcodeproj