!29 merge fix_anno into master

fix annotation

Created-by: ding_hong_4
Commit-by: dinghong
Merged-by: openharmony_ci
Description: ### 一、内容说明(相关的Issue)

[#21](https://gitcode.com/openharmony-sig/graphic_graphic_cangjie_wrapper/issues/21) 

### 二、建议测试周期和提测地址  
  建议测试完成时间:xxxx.xx.xx  
  投产上线时间:xxxx.xx.xx  
  提测地址:CI环境/压测环境  
  测试账号:  

### 三、变更内容
  * 3.1 关联PR列表

  * 3.2 数据库和部署说明  
    1. 常规更新 
    2. 重启unicorn
    3. 重启sidekiq
    4. 迁移任务:是否有迁移任务,没有写 "无"
    5. rake脚本:`bundle exec xxx RAILS_ENV = production`;没有写 "无"

  * 3.4 其他技术优化内容(做了什么,变更了什么)
    - 重构了 xxxx 代码
    - xxxx 算法优化


  * 3.5 废弃通知(什么字段、方法弃用?)



  * 3.6  后向不兼容变更(是否有无法向后兼容的变更?)


  
### 四、研发自测点(自测哪些?冒烟用例全部自测?)
  自测测试结论:


### 五、测试关注点(需要提醒QA重点关注的、可能会忽略的地方)
  检查点:

| 需求名称 | 是否影响xx公共模块 | 是否需要xx功能 | 需求升级是否依赖其他子产品 |
|------|------------|----------|---------------|
| xxx  | 否          | 需要       | 不需要           |
|      |            |          |               |

  接口测试:

  性能测试:

  并发测试:

  其他:


See merge request: openharmony-sig/notification_notification_cangjie_wrapper!29
This commit is contained in:
openharmony_ci
2025-10-14 10:48:25 +08:00
5 changed files with 195 additions and 13 deletions
@@ -23,6 +23,7 @@ import ohos.value_type.{ValueType, CArrParameters, Parameters}
/**
* Common event data.
*
*/
@!APILevel[
22,
@@ -31,6 +32,7 @@ import ohos.value_type.{ValueType, CArrParameters, Parameters}
public class CommonEventData {
/**
* Name of the common event that is being received.
*
*/
@!APILevel[
22,
@@ -39,6 +41,7 @@ public class CommonEventData {
public var event: String
/**
* Bundle name. This parameter is left empty by default.
*
*/
@!APILevel[
22,
@@ -49,6 +52,7 @@ public class CommonEventData {
* Common event data received by the subscriber. The value of this field is the same as that of the code field in
* CommonEventPublishData when the publisher uses commonEventManager.publish to publish a common event. The default
* value is 0.
*
*/
@!APILevel[
22,
@@ -58,6 +62,7 @@ public class CommonEventData {
/**
* Common event data received by the subscriber. The value of this field is the same as that of the data field in
* CommonEventPublishData when the publisher uses commonEventManager.publish to publish a common event.
*
*/
@!APILevel[
22,
@@ -68,6 +73,7 @@ public class CommonEventData {
* Additional information about the common event received by the subscriber. The value of this field is the same as
* that of the parameters field in CommonEventPublishData when the publisher uses commonEventManager.publish to
* publish a common event.
*
*/
@!APILevel[
22,
@@ -43,9 +43,9 @@ public class CommonEventManager {
* @param { String } event - Name of the common event to publish.
* @param { CommonEventPublishData } options - Attributes of the common event to publish.
* @throws { BusinessException } 1500003 - The common event sending frequency too high.
* @throws { BusinessException } 1500007 - If error sending message to Common Event Service.
* @throws { BusinessException } 1500008 - If Common Event Service does not complete initialization.
* @throws { BusinessException } 1500009 - If error obtaining system parameters.
* @throws { BusinessException } 1500007 - Failed to send the message to the common event service.
* @throws { BusinessException } 1500008 - Failed to initialize the common event service.
* @throws { BusinessException } 1500009 - Failed to obtain system parameters.
*/
@!APILevel[
22,
@@ -64,10 +64,11 @@ public class CommonEventManager {
}
/**
* create the CommonEventSubscriber for the SubscriberInfo.
* Create the CommonEventSubscriber for the SubscriberInfo.
*
* @param { CommonEventSubscribeInfo } subscribeInfo - Indicates the information of the subscriber.
* @returns { CommonEventSubscriber } CommonEventSubscriber instance.
* @throws { BusinessException } 1500008 - Common Event Service does not complete initialization.
*/
@!APILevel[
22,
@@ -83,12 +84,13 @@ public class CommonEventManager {
}
/**
* subscribe an ordered, sticky, or standard common event.
* Subscribe an ordered, sticky, or standard common event.
*
* @param { CommonEventSubscriber } subscriber - Indicate the subscriber of the common event.
* @throws { BusinessException } 801 - capability not supported
* @throws { BusinessException } 1500007 - If error sending message to Common Event Service.
* @throws { BusinessException } 1500008 - If Common Event Service does not complete initialization.
* @param { AsyncCallback<CommonEventData> } callback - Callback used to return the result.
* @throws { BusinessException } 801 - Capability not supported.
* @throws { BusinessException } 1500007 - Failed to send the message to the common event service.
* @throws { BusinessException } 1500008 - Failed to initialize the common event service.
* @throws { BusinessException } 1500010 - The count of subscriber exceed system specification.
*/
@!APILevel[
@@ -107,12 +109,12 @@ public class CommonEventManager {
}
/**
* unsubscribe from an ordered, sticky, or standard common event.
* Unsubscribe from an ordered, sticky, or standard common event.
*
* @param { CommonEventSubscriber } subscriber - Indicate the subscriber of the common event.
* @throws { BusinessException } 801 - capability not supported
* @throws { BusinessException } 1500007 - If error sending message to Common Event Service.
* @throws { BusinessException } 1500008 - If Common Event Service does not complete initialization.
* @throws { BusinessException } 801 - Capability not supported.
* @throws { BusinessException } 1500007 - Failed to send the message to the common event service.
* @throws { BusinessException } 1500008 - Failed to initialize the common event service.
*/
@!APILevel[
22,
File diff suppressed because it is too large Load Diff
@@ -24,6 +24,7 @@ import ohos.ffi.{CArrString, CTypeResource}
/**
* The CommonEventPublishData module provides APIs for defining common event content and attributes.
*
*/
@!APILevel[
22,
@@ -32,6 +33,7 @@ import ohos.ffi.{CArrString, CTypeResource}
public class CommonEventPublishData {
/**
* Bundle name of the subscriber that can receive the common event.
*
*/
@!APILevel[
22,
@@ -40,6 +42,7 @@ public class CommonEventPublishData {
public var bundleName: String
/**
* Common event data transferred by the publisher. The data size cannot exceed 64 KB.
*
*/
@!APILevel[
22,
@@ -48,6 +51,7 @@ public class CommonEventPublishData {
public var data: String
/**
* Common event data transferred by the publisher. The default value is 0.
*
*/
@!APILevel[
22,
@@ -56,6 +60,7 @@ public class CommonEventPublishData {
public var code: Int32
/**
* Permissions required for subscribers to receive the common event.
*
*/
@!APILevel[
22,
@@ -64,6 +69,7 @@ public class CommonEventPublishData {
public var subscriberPermissions: Array<String>
/**
* Whether the common event is an ordered one.
*
*/
@!APILevel[
22,
@@ -73,6 +79,7 @@ public class CommonEventPublishData {
/**
* Whether the common event is a sticky one. Only system applications and system services are allowed to
* send sticky events.
*
*/
@!APILevel[
22,
@@ -82,6 +89,7 @@ public class CommonEventPublishData {
public var isSticky: Bool
/**
* Additional information about the common event transferred by the publisher.
*
*/
@!APILevel[
22,
+1 -1
View File
@@ -219,7 +219,7 @@ func getValue(value: ValueType): (Int8, CPointer<Unit>, Int64) {
case ArrayFd(v) =>
throwIfEmpty(v)
return (ARRAYFD_TYPE, createArrPtr<Int32>(v), v.size)
case _ => throw IllegalArgumentException("The type is not supported.")
case _ => throw BusinessException(1500009, "Error obtaining system parameters.")
}
}
}