mirror of
https://github.com/langgenius/dify.git
synced 2025-12-07 16:31:00 +00:00
Co-authored-by: Joel <iamjoel007@gmail.com> Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com> Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com> Co-authored-by: crazywoola <100913391+crazywoola@users.noreply.github.com>
20 lines
488 B
TypeScript
20 lines
488 B
TypeScript
import { useMutation } from '@tanstack/react-query'
|
|
import { put } from './base'
|
|
|
|
const NAME_SPACE = 'billing'
|
|
|
|
export const useBindPartnerStackInfo = () => {
|
|
return useMutation({
|
|
mutationKey: [NAME_SPACE, 'bind-partner-stack'],
|
|
mutationFn: (data: { partnerKey: string; clickId: string }) => {
|
|
return put(`/billing/partners/${data.partnerKey}/tenants`, {
|
|
body: {
|
|
click_id: data.clickId,
|
|
},
|
|
}, {
|
|
silent: true,
|
|
})
|
|
},
|
|
})
|
|
}
|