You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

tcc_resource.go 662 B

3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
123456789101112131415161718192021222324252627282930
  1. package tcc
  2. import (
  3. "github.com/seata/seata-go/pkg/common/model"
  4. )
  5. type TCCResource struct {
  6. TCCServiceBean TCCService
  7. ResourceGroupId string `default:"DEFAULT"`
  8. AppName string
  9. ActionName string
  10. //TargetBean interface{}
  11. //PrepareMethod reflect.Method
  12. //CommitMethodName string
  13. //CommitMethod reflect.Method
  14. //RollbackMethodName string
  15. //RollbackMethod reflect.Method
  16. }
  17. func (t *TCCResource) GetResourceGroupId() string {
  18. return t.ResourceGroupId
  19. }
  20. func (t *TCCResource) GetResourceId() string {
  21. return t.ActionName
  22. }
  23. func (t *TCCResource) GetBranchType() model.BranchType {
  24. return model.BranchTypeTCC
  25. }

Go Implementation For Seata