优化发布群配置与二维码池界面
This commit is contained in:
@@ -234,3 +234,18 @@ export async function updateAutoWelcomeMessage(message: string) {
|
||||
)
|
||||
return data.data
|
||||
}
|
||||
|
||||
export async function fetchListingGroupWelcomeMessage() {
|
||||
const { data } = await apiClient.get<ApiResponse<{ message: string }>>(
|
||||
'/admin/chats/listing-group-welcome'
|
||||
)
|
||||
return data.data.message
|
||||
}
|
||||
|
||||
export async function updateListingGroupWelcomeMessage(message: string) {
|
||||
const { data } = await apiClient.put<ApiResponse<{ updated: boolean }>>(
|
||||
'/admin/chats/listing-group-welcome',
|
||||
{ message }
|
||||
)
|
||||
return data.data
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user