txlcn-tc/src/main/java/com/codingapi/txlcn/tc/txmsg/MessageCreator.java
public static MessageDto releaseLocks(Set<String> locks) {
        DTXLockParams dtxLockParams = new DTXLockParams();
        dtxLockParams.setContextId(Transactions.APPLICATION_ID_WHEN_RUNNING);
        dtxLockParams.setLocks(locks);
        MessageDto messageDto = new MessageDto();
        messageDto.setAction(MessageConstants.ACTION_RELEASE_DTX_LOCK);
        messageDto.setData(dtxLockParams);
        return messageDto;
    }
public static MessageDto releaseLocks(Set<String> locks) {
        DTXLockParams dtxLockParams = new DTXLockParams();
        dtxLockParams.setContextId(Transactions.APPLICATION_ID_WHEN_RUNNING);
        dtxLockParams.setLocks(locks);
        MessageDto messageDto = new MessageDto();
        messageDto.setAction(MessageConstants.ACTION_RELEASE_DTX_LOCK);
        messageDto.setData(dtxLockParams);
        return messageDto;
    }
释放锁消息

@param locks locks
@return message